Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 174... Línea 174...
174
         * message)
174
         * message)
175
         */
175
         */
176
        init_page_events: function() {
176
        init_page_events: function() {
177
            this.Y.on('dragenter', this.drag_enter_page, 'body', this);
177
            this.Y.on('dragenter', this.drag_enter_page, 'body', this);
178
            this.Y.on('dragleave', this.drag_leave_page, 'body', this);
178
            this.Y.on('dragleave', this.drag_leave_page, 'body', this);
-
 
179
            this.Y.on('dragover', function(e) {
-
 
180
                e.preventDefault();
-
 
181
            }, 'body', this);
179
            this.Y.on('drop', function() {
182
            this.Y.on('drop', function() {
180
                this.pageentercount = 0;
183
                this.pageentercount = 0;
181
                this.hide_drop_target();
184
                this.hide_drop_target();
182
            }.bind(this));
185
            }, 'body', this);
183
        },
186
        },
Línea 184... Línea 187...
184
 
187
 
185
        /**
188
        /**
186
         * Check if the filemanager / filepicker is disabled
189
         * Check if the filemanager / filepicker is disabled
Línea 538... Línea 541...
538
                    dispfilename = dispfilename.substr(0, 49) + '…';
541
                    dispfilename = dispfilename.substr(0, 49) + '…';
539
                }
542
                }
540
                var progressouter = this.container.create('<div>' + dispfilename +
543
                var progressouter = this.container.create('<div>' + dispfilename +
541
                    '<div class="progress">' +
544
                    '<div class="progress">' +
542
                    '   <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">' +
545
                    '   <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">' +
543
                    '       <span class="sr-only"></span>' +
546
                    '       <span class="visually-hidden"></span>' +
544
                    '   </div>' +
547
                    '   </div>' +
545
                    '</div></div>');
548
                    '</div></div>');
546
                var progressinner = progressouter.one('.progress-bar');
549
                var progressinner = progressouter.one('.progress-bar');
547
                var progressinnertext = progressinner.one('.sr-only');
550
                var progressinnertext = progressinner.one('.visually-hidden');
548
                var progresscontainer = this.container.one('.dndupload-progressbars');
551
                var progresscontainer = this.container.one('.dndupload-progressbars');
549
                progresscontainer.appendChild(progressouter);
552
                progresscontainer.appendChild(progressouter);
Línea 550... Línea 553...
550
 
553
 
551
                this.progressbars[filename] = {
554
                this.progressbars[filename] = {