diff --git a/src/legacy/dashboard.js b/src/legacy/dashboard.js index 69c47d3b1f..63c5eb0faa 100644 --- a/src/legacy/dashboard.js +++ b/src/legacy/dashboard.js @@ -3,16 +3,20 @@ Dashboard.confirm = function(message, title, callback) { require(["confirm"], function(confirm) { confirm(message, title).then(function() { callback(!0); - }, function() { + }).catch(function() { callback(!1); }); }); -}, Dashboard.showLoadingMsg = function() { +}; + +Dashboard.showLoadingMsg = function() { "use strict"; require(["loading"], function(loading) { loading.show(); }); -}, Dashboard.hideLoadingMsg = function() { +}; + +Dashboard.hideLoadingMsg = function() { "use strict"; require(["loading"], function(loading) { loading.hide(); diff --git a/src/legacy/fnchecked.js b/src/legacy/fnchecked.js index 1f5a5f6014..b815668f93 100644 --- a/src/legacy/fnchecked.js +++ b/src/legacy/fnchecked.js @@ -4,7 +4,9 @@ define(["jQuery"], function($) { return !0 === value || !1 === value ? $(this).each(function() { this.checked = value; }) : this.length && this[0].checked; - }, $.fn.checkboxradio = function() { + }; + + $.fn.checkboxradio = function() { return this; }; });