1 parent
084625fe7c
commit
ab59bd4421
1 file changed
+3
-3
@@ -770,7 +770,7 @@ $(function () {
|
||||
$(".reload_nonconflicts", self.settingsUpdatedDialog).click(function (e) {
|
||||
e.preventDefault();
|
||||
self.settingsUpdatedDialog.modal("hide");
|
||||
self.requestData(undefined, true);
|
||||
self.requestData(true);
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -839,14 +839,14 @@ $(function () {
|
||||
self.requestData = function (local) {
|
||||
// handle old parameter format
|
||||
var callback = undefined;
|
||||
if (arguments.length == 2 || _.isFunction(local)) {
|
||||
if (arguments.length === 2 || _.isFunction(local)) {
|
||||
var exc = new Error();
|
||||
log.warn(
|
||||
"The callback parameter of SettingsViewModel.requestData is deprecated, the method now returns a promise, please use that instead. Stacktrace:",
|
||||
exc.stack || exc.stacktrace || "<n/a>"
|
||||
);
|
||||
|
||||
if (arguments.length == 2) {
|
||||
if (arguments.length === 2) {
|
||||
callback = arguments[0];
|
||||
local = arguments[1];
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user