mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-55071 theme_boost: Fix relevant JS warnings
Part of MDL-55071
This commit is contained in:
parent
841d25a984
commit
e8272e748c
@ -553,10 +553,10 @@ M.form_dndupload.init = function(Y, options) {
|
||||
this.msg_dlg_node.generateID();
|
||||
|
||||
this.msg_dlg = new M.core.dialogue({
|
||||
bodyContent : this.msg_dlg_node,
|
||||
centered : true,
|
||||
modal : true,
|
||||
visible : false
|
||||
bodyContent: this.msg_dlg_node,
|
||||
centered: true,
|
||||
modal: true,
|
||||
visible: false
|
||||
});
|
||||
this.msg_dlg.plug(Y.Plugin.Drag,{handles:['#'+this.msg_dlg_node.get('id')+' .yui3-widget-hd']});
|
||||
this.msg_dlg_node.one('.fp-msg-butok').on('click', function(e) {
|
||||
@ -710,11 +710,11 @@ M.form_dndupload.init = function(Y, options) {
|
||||
var node = process_dlg_node;
|
||||
node.generateID();
|
||||
var process_dlg = new M.core.dialogue({
|
||||
bodyContent : node,
|
||||
bodyContent: node,
|
||||
headerContent: M.util.get_string('fileexistsdialogheader', 'repository'),
|
||||
centered : true,
|
||||
modal : true,
|
||||
visible : false
|
||||
centered: true,
|
||||
modal: true,
|
||||
visible: false
|
||||
});
|
||||
process_dlg.plug(Y.Plugin.Drag,{handles:['#'+node.get('id')+' .yui3-widget-hd']});
|
||||
|
||||
|
@ -277,7 +277,8 @@ if (typeof M.form.dependencyManager === 'undefined') {
|
||||
isFilePicker: function(el) {
|
||||
if (!this._fileinputs) {
|
||||
var fileinputs = {};
|
||||
var els = this.get('form').all('.fitem [data-fieldtype="filepicker"] input,.fitem [data-fieldtype="filemanager"] input');
|
||||
var selector = '.fitem [data-fieldtype="filepicker"] input,.fitem [data-fieldtype="filemanager"] input';
|
||||
var els = this.get('form').all(selector);
|
||||
els.each(function(node) {
|
||||
fileinputs[node.getAttribute('name')] = true;
|
||||
});
|
||||
|
10
mod/feedback/yui/dragdrop/dragdrop.js
vendored
10
mod/feedback/yui/dragdrop/dragdrop.js
vendored
@ -1,11 +1,11 @@
|
||||
YUI.add('moodle-mod_feedback-dragdrop', function(Y) {
|
||||
var DRAGDROPNAME = 'mod_feedback_dragdrop';
|
||||
var CSS = {
|
||||
DRAGAREA : '#feedback_dragarea',
|
||||
DRAGITEMCLASS : 'feedback_itemlist',
|
||||
DRAGITEM : 'div.feedback_itemlist',
|
||||
DRAGLIST : '#feedback_dragarea form',
|
||||
DRAGHANDLE : 'itemhandle'
|
||||
DRAGAREA: '#feedback_dragarea',
|
||||
DRAGITEMCLASS: 'feedback_itemlist',
|
||||
DRAGITEM: 'div.feedback_itemlist',
|
||||
DRAGLIST: '#feedback_dragarea form',
|
||||
DRAGHANDLE: 'itemhandle'
|
||||
};
|
||||
|
||||
var DRAGDROP = function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user