Skip to content

Commit 2ac53f8

Browse files
committed
Close prompt immediately after click ok instead of wait ajax request
1 parent 8513dfd commit 2ac53f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/web/mage/adminhtml/browser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ define([
376376
* @param {*} folderName
377377
*/
378378
confirm: function (folderName) {
379-
return $.ajax({
379+
$.ajax({
380380
url: self.options.newFolderUrl,
381381
dataType: 'json',
382382
data: {
@@ -399,6 +399,8 @@ define([
399399
);
400400
}
401401
}, this));
402+
403+
return true;
402404
}
403405
}
404406
});

0 commit comments

Comments
 (0)