Browse files

Merge branch 's8_MDL-26919_search_dialog_event' of git://github.com/d…

…ongsheng/moodle
  • Loading branch information...
2 parents d96b0a9 + e4e9e85 commit 949fe7154ca8ac0dabfe1e7557547a987d8febde @skodak skodak committed Mar 21, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 repository/filepicker.js
View
9 repository/filepicker.js
@@ -1117,7 +1117,7 @@ M.core_filepicker.init = function(Y, options) {
var dlg_title = document.createElement('DIV');
dlg_title.className = 'hd';
- dlg_title.innerHTML = 'filepicker';
+ dlg_title.innerHTML = M.str.repository.search;
var dlg_body = document.createElement('DIV');
dlg_body.className = 'bd';
@@ -1147,11 +1147,18 @@ M.core_filepicker.init = function(Y, options) {
}, true);
search_dialog.cancel();
}
+ Y.one('#fp-search-form').on('keydown', function(e){
+ if (e.keyCode == 13) {
+ dialog_handler();
+ e.preventDefault();
+ }
+ }, this);
search_dialog = new YAHOO.widget.Dialog("fp-search-dlg", {
postmethod: 'async',
draggable: true,
width : "30em",
+ modal: true,
fixedcenter : true,
zindex: 9999991,
visible : false,

0 comments on commit 949fe71

Please sign in to comment.