From 6d65873e7b3adbde85f444e27a0068e40d7b1efa Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 20 Sep 2012 21:52:16 +0100 Subject: [PATCH] Added cookie --- static/js/app/views/mix.js | 5 +++++ templates/base.html | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/app/views/mix.js b/static/js/app/views/mix.js index dda634c..fcbc45c 100644 --- a/static/js/app/views/mix.js +++ b/static/js/app/views/mix.js @@ -182,6 +182,11 @@ window.MixCreateView = DSSEditableView.extend({ 'upload-hash':this.guid, 'sessionid': $.cookie('sessionid') }, + 'onUploadFile': function(file){ + $(window).on('beforeunload', function(){ + alert('Go on outta that..'); + }); + }, 'onAddQueueItem':function (file) { $('#upload-extension', this.el).val(file.name.split('.').pop()); $('#mix-details', this.el).show(); diff --git a/templates/base.html b/templates/base.html index abfd730..32f083e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -91,7 +91,6 @@ {% else %} -