|
@@ -1520,6 +1520,13 @@ var MakeChart = function(type, data, container, categoryField, valueField) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+//DISABLE BUTTONS WHEN AN AJAX REQUEST IS GOING TROUGH
|
|
|
|
|
+$(document).bind("ajaxSend", function(){
|
|
|
|
|
+ $('.disable-when-ajax').prop('disabled', true);
|
|
|
|
|
+}).bind("ajaxComplete", function(){
|
|
|
|
|
+ $('.disable-when-ajax').prop('disabled', false);
|
|
|
|
|
+});
|
|
|
|
|
+
|
|
|
$(document).on("page:change", function() {
|
|
$(document).on("page:change", function() {
|
|
|
Layout.init();
|
|
Layout.init();
|
|
|
$(document).ajaxError(function(event,xhr,options,exc) {
|
|
$(document).ajaxError(function(event,xhr,options,exc) {
|