~ubuntu-branches/ubuntu/utopic/moodle/utopic-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2014-05-12 16:10:38 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20140512161038-2039l24hvvlan3hs
Tags: 2.6.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
var DIALOGUE_PREFIX,
4
4
    BASE,
5
 
    COUNT,
6
5
    CONFIRMYES,
7
6
    CONFIRMNO,
8
7
    TITLE,
11
10
 
12
11
DIALOGUE_PREFIX = 'moodle-dialogue',
13
12
BASE = 'notificationBase',
14
 
COUNT = 0,
15
13
CONFIRMYES = 'yesLabel',
16
14
CONFIRMNO = 'noLabel',
17
15
TITLE = 'title',
62
60
            delay = this.get('hideTimeoutDelay');
63
61
        this.get(BASE).addClass('moodle-dialogue-exception');
64
62
        this.setStdModContent(Y.WidgetStdMod.HEADER,
65
 
                '<h1 id="moodle-dialogue-'+COUNT+'-header-text">' + config.name + '</h1>', Y.WidgetStdMod.REPLACE);
 
63
                '<h1 id="moodle-dialogue-'+config.COUNT+'-header-text">' + config.name + '</h1>', Y.WidgetStdMod.REPLACE);
66
64
        content = Y.Node.create('<div class="moodle-exception"></div>')
67
65
                .append(Y.Node.create('<div class="moodle-exception-message">'+this.get('message')+'</div>'))
68
66
                .append(Y.Node.create('<div class="moodle-exception-param hidden param-filename"><label>File:</label> ' +