Skip to content

Commit

Permalink
[cmd:resize] show confirm dialog on save with ENTER key
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Jul 3, 2013
1 parent fcb46be commit 0cf0e72
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion js/commands/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,20 @@ elFinder.prototype.commands.resize = function() {
}

if (c == 13) {
save();
fm.confirm({
title : $('input:checked', uitype).val(),
text : 'confirmReq',
accept : {
label : 'btnApply',
callback : function() {
save();
}
},
cancel : {
label : 'btnCancel',
callback : function(){}
}
});
return;
}

Expand Down

0 comments on commit 0cf0e72

Please sign in to comment.