@@ -530,7 +530,6 function initMyPageSortable(list, url) { | |||||
530 | var warnLeavingUnsavedMessage; |
|
530 | var warnLeavingUnsavedMessage; | |
531 | function warnLeavingUnsaved(message) { |
|
531 | function warnLeavingUnsaved(message) { | |
532 | warnLeavingUnsavedMessage = message; |
|
532 | warnLeavingUnsavedMessage = message; | |
533 |
|
||||
534 | $('form').submit(function(){ |
|
533 | $('form').submit(function(){ | |
535 | $('textarea').removeData('changed'); |
|
534 | $('textarea').removeData('changed'); | |
536 | }); |
|
535 | }); | |
@@ -549,14 +548,11 function warnLeavingUnsaved(message) { | |||||
549 | } |
|
548 | } | |
550 |
|
549 | |||
551 | function setupAjaxIndicator() { |
|
550 | function setupAjaxIndicator() { | |
552 |
|
||||
553 | $('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) { |
|
551 | $('#ajax-indicator').bind('ajaxSend', function(event, xhr, settings) { | |
554 |
|
||||
555 | if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') { |
|
552 | if ($('.ajax-loading').length === 0 && settings.contentType != 'application/octet-stream') { | |
556 | $('#ajax-indicator').show(); |
|
553 | $('#ajax-indicator').show(); | |
557 | } |
|
554 | } | |
558 | }); |
|
555 | }); | |
559 |
|
||||
560 | $('#ajax-indicator').bind('ajaxStop', function() { |
|
556 | $('#ajax-indicator').bind('ajaxStop', function() { | |
561 | $('#ajax-indicator').hide(); |
|
557 | $('#ajax-indicator').hide(); | |
562 | }); |
|
558 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now