~ubuntu-branches/ubuntu/trusty/moodle/trusty

« back to all changes in this revision

Viewing changes to lib/yui/build/moodle-core-notification/moodle-core-notification-debug.js

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-01-21 13:40:52 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20140121134052-ym2qvsp2cd9vq0p6
Tags: 2.5.4-1
* New upstream release, fixing security issues:
  - MSA-14-0001 Config passwords visibility issue [CVE-2014-0008]
  - MSA-14-0002 Group constraints lacking in "login as" [CVE-2014-0009]
  - MSA-14-0003 CSRF vulnerability in profile fields [CVE-2014-0010]
* Move /var/lib/moodle directory into package.
* Revert back to bundled yui3. Unfortunately, version in Debian and
  of upstream are not compatible (closes: #735312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
                            .append(yes));
156
156
        this.get(BASE).addClass('moodle-dialogue-confirm');
157
157
        this.setStdModContent(Y.WidgetStdMod.BODY, content, Y.WidgetStdMod.REPLACE);
158
 
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">' + this.get(TITLE) + '</h1>', Y.WidgetStdMod.REPLACE);
 
158
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">'
 
159
                + this.get(TITLE) + '</h1>', Y.WidgetStdMod.REPLACE);
159
160
        this.after('destroyedChange', function(){this.get(BASE).remove();}, this);
160
161
        this._enterKeypress = Y.on('key', this.submit, window, 'down:13', this);
161
162
        yes.on('click', this.submit, this);
210
211
                            .append(no));
211
212
        this.get(BASE).addClass('moodle-dialogue-confirm');
212
213
        this.setStdModContent(Y.WidgetStdMod.BODY, content, Y.WidgetStdMod.REPLACE);
213
 
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">' + this.get(TITLE) + '</h1>', Y.WidgetStdMod.REPLACE);
 
214
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">'
 
215
                + this.get(TITLE) + '</h1>', Y.WidgetStdMod.REPLACE);
214
216
        this.after('destroyedChange', function(){this.get(BASE).remove();}, this);
215
217
        this._enterKeypress = Y.on('key', this.submit, window, 'down:13', this, true);
216
218
        this._escKeypress = Y.on('key', this.submit, window, 'down:27', this, false);
266
268
            self = this,
267
269
            delay = this.get('hideTimeoutDelay');
268
270
        this.get(BASE).addClass('moodle-dialogue-exception');
269
 
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">' + config.name + '</h1>', Y.WidgetStdMod.REPLACE);
 
271
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">'
 
272
                + config.name + '</h1>', Y.WidgetStdMod.REPLACE);
270
273
        content = Y.Node.create('<div class="moodle-exception"></div>')
271
274
                .append(Y.Node.create('<div class="moodle-exception-message">'+this.get('message')+'</div>'))
272
 
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-filename"><label>File:</label> '+this.get('fileName')+'</div>'))
273
 
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-linenumber"><label>Line:</label> '+this.get('lineNumber')+'</div>'))
274
 
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-stacktrace"><label>Stack trace:</label> <pre>'+this.get('stack')+'</pre></div>'));
 
275
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-filename"><label>File:</label> '
 
276
                        + this.get('fileName')+'</div>'))
 
277
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-linenumber"><label>Line:</label> '
 
278
                        + this.get('lineNumber')+'</div>'))
 
279
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-stacktrace"><label>Stack trace:</label> <pre>'
 
280
                        + this.get('stack')+'</pre></div>'));
275
281
        if (M.cfg.developerdebug) {
276
282
            content.all('.moodle-exception-param').removeClass('hidden');
277
283
        }
342
348
            self = this,
343
349
            delay = this.get('hideTimeoutDelay');
344
350
        this.get(BASE).addClass('moodle-dialogue-exception');
345
 
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">' + config.name + '</h1>', Y.WidgetStdMod.REPLACE);
 
351
        this.setStdModContent(Y.WidgetStdMod.HEADER, '<h1 id="moodle-dialogue-'+COUNT+'-header-text">'
 
352
                + config.name + '</h1>', Y.WidgetStdMod.REPLACE);
346
353
        content = Y.Node.create('<div class="moodle-ajaxexception"></div>')
347
354
                .append(Y.Node.create('<div class="moodle-exception-message">'+this.get('error')+'</div>'))
348
 
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-debuginfo"><label>URL:</label> '+this.get('reproductionlink')+'</div>'))
349
 
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-debuginfo"><label>Debug info:</label> '+this.get('debuginfo')+'</div>'))
350
 
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-stacktrace"><label>Stack trace:</label> <pre>'+this.get('stacktrace')+'</pre></div>'));
 
355
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-debuginfo"><label>URL:</label> '
 
356
                        + this.get('reproductionlink')+'</div>'))
 
357
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-debuginfo"><label>Debug info:</label> '
 
358
                        + this.get('debuginfo')+'</div>'))
 
359
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-stacktrace"><label>Stack trace:</label> <pre>'
 
360
                        + this.get('stacktrace')+'</pre></div>'));
351
361
        if (M.cfg.developerdebug) {
352
362
            content.all('.moodle-exception-param').removeClass('hidden');
353
363
        }