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

« back to all changes in this revision

Viewing changes to lib/yui/src/blocks/js/blockregion.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:
27
27
        Y.log('Block region `'+this.get('region')+'` initialising', 'info');
28
28
        if (!node) {
29
29
            Y.log('block region known about but no HTML structure found for it. Guessing structure.', 'warn');
30
 
            this.create_and_add_node();
 
30
            node = this.create_and_add_node();
31
31
        }
32
32
        var body = Y.one('body'),
33
33
            hasblocks = node.all('.'+CSS.BLOCK).size() > 0,
43
43
     * Creates a generic block region node and adds it to the DOM at the best guess location.
44
44
     * Any calling of this method is an unfortunate circumstance.
45
45
     * @method create_and_add_node
 
46
     * @return Node The newly created Node
46
47
     */
47
48
    create_and_add_node : function() {
48
49
        var c = Y.Node.create,
85
86
            Y.one('body').append(node);
86
87
        }
87
88
        this.set('node', node);
 
89
 
 
90
        return node;
88
91
    },
89
92
 
90
93
    /**
213
216
            }
214
217
        }
215
218
    }
216
 
});
 
 
b'\\ No newline at end of file'
 
219
});