Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-35924_m23' of https://github.com/markn86/moodle int…

…o MOODLE_23_STABLE
  • Loading branch information...
commit ee7411c4b60fa6bf46d393a5055f5e09d547eae2 2 parents fd843c7 + a12d510
@stronk7 stronk7 authored
Showing with 5 additions and 1 deletion.
  1. +4 −1 files/renderer.php
  2. +1 −0  lib/form/filemanager.js
View
5 files/renderer.php
@@ -304,7 +304,10 @@ private function fm_js_template_listfilename() {
private function fm_js_template_mkdir() {
$rv = '
<div class="filemanager fp-mkdir-dlg">
- <div class="fp-mkdir-dlg-text">'.get_string('newfoldername','repository').'<br/><input type="text" /></div>
+ <div class="fp-mkdir-dlg-text">
+ <label>' . get_string('newfoldername', 'repository') . '</label><br/>
+ <input type="text" />
+ </div>
<button class="{!}fp-dlg-butcreate">'.get_string('makeafolder').'</button>
<button class="{!}fp-dlg-butcancel">'.get_string('cancel').'</button>
</div>';
View
1  lib/form/filemanager.js
@@ -316,6 +316,7 @@ M.form_filemanager.init = function(Y, options) {
on('keydown', function(e){
if (e.keyCode == 13) {Y.bind(perform_action, this)(e);}
}, this);
+ node.one('label').set('for', 'fm-newname-' + this.client_id);
node.all('.fp-dlg-butcancel').on('click', function(e){e.preventDefault();this.mkdir_dialog.hide();}, this);
node.all('.fp-dlg-curpath').set('id', 'fm-curpath-'+this.client_id);
}
Please sign in to comment.
Something went wrong with that request. Please try again.