MDL-34139 filemanager select-file dialogue should update file on Enter

This commit is contained in:
Marina Glancy
2012-07-10 12:24:08 +12:00
committed by Sam Hemelryk
parent bd75b67885
commit 2eb66f3500
+6
View File
@@ -736,6 +736,12 @@ M.form_filemanager.init = function(Y, options) {
e.preventDefault();
this.update_file();
}, this);
selectnode.all('form').on('keydown', function(e) {
if (e.keyCode == 13) {
e.preventDefault();
this.update_file();
}
}, this);
selectnode.one('.fp-file-download').on('click', function(e) {
e.preventDefault();
if (this.selectui.fileinfo.type != 'folder') {