mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-42752-master' of git://github.com/phalacee/moodle
This commit is contained in:
commit
c5afe577c9
2 changed files with 10 additions and 6 deletions
|
@ -1266,12 +1266,16 @@ M.core_filepicker.init = function(Y, options) {
|
|||
var viewbar = this.fpnode.one('.fp-viewbar')
|
||||
if (viewbar) {
|
||||
if (mode) {
|
||||
viewbar.addClass('enabled').removeClass('disabled')
|
||||
viewbar.addClass('enabled').removeClass('disabled');
|
||||
this.fpnode.all('.fp-vb-icons,.fp-vb-tree,.fp-vb-details').setAttribute("aria-disabled", "false");
|
||||
this.fpnode.all('.fp-vb-icons,.fp-vb-tree,.fp-vb-details').setAttribute("tabindex", "");
|
||||
} else {
|
||||
viewbar.removeClass('enabled').addClass('disabled')
|
||||
viewbar.removeClass('enabled').addClass('disabled');
|
||||
this.fpnode.all('.fp-vb-icons,.fp-vb-tree,.fp-vb-details').setAttribute("aria-disabled", "true");
|
||||
this.fpnode.all('.fp-vb-icons,.fp-vb-tree,.fp-vb-details').setAttribute("tabindex", "-1");
|
||||
}
|
||||
}
|
||||
this.fpnode.all('.fp-vb-icons,.fp-vb-tree,.fp-vb-details').removeClass('checked')
|
||||
this.fpnode.all('.fp-vb-icons,.fp-vb-tree,.fp-vb-details').removeClass('checked');
|
||||
var modes = {1:'icons', 2:'tree', 3:'details'};
|
||||
this.fpnode.all('.fp-vb-'+modes[this.viewmode]).addClass('checked');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue