mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-43281-master' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
9b94e327d3
4 changed files with 13 additions and 4 deletions
|
@ -802,7 +802,7 @@ BLOCKREGION.prototype = {
|
|||
Y.log('Block region `'+this.get('region')+'` initialising', 'info');
|
||||
if (!node) {
|
||||
Y.log('block region known about but no HTML structure found for it. Guessing structure.', 'warn');
|
||||
this.create_and_add_node();
|
||||
node = this.create_and_add_node();
|
||||
}
|
||||
var body = Y.one('body'),
|
||||
hasblocks = node.all('.'+CSS.BLOCK).size() > 0,
|
||||
|
@ -818,6 +818,7 @@ BLOCKREGION.prototype = {
|
|||
* Creates a generic block region node and adds it to the DOM at the best guess location.
|
||||
* Any calling of this method is an unfortunate circumstance.
|
||||
* @method create_and_add_node
|
||||
* @return Node The newly created Node
|
||||
*/
|
||||
create_and_add_node : function() {
|
||||
var c = Y.Node.create,
|
||||
|
@ -860,6 +861,8 @@ BLOCKREGION.prototype = {
|
|||
Y.one('body').append(node);
|
||||
}
|
||||
this.set('node', node);
|
||||
|
||||
return node;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -798,7 +798,7 @@ BLOCKREGION.prototype = {
|
|||
initializer : function() {
|
||||
var node = this.get('node');
|
||||
if (!node) {
|
||||
this.create_and_add_node();
|
||||
node = this.create_and_add_node();
|
||||
}
|
||||
var body = Y.one('body'),
|
||||
hasblocks = node.all('.'+CSS.BLOCK).size() > 0,
|
||||
|
@ -814,6 +814,7 @@ BLOCKREGION.prototype = {
|
|||
* Creates a generic block region node and adds it to the DOM at the best guess location.
|
||||
* Any calling of this method is an unfortunate circumstance.
|
||||
* @method create_and_add_node
|
||||
* @return Node The newly created Node
|
||||
*/
|
||||
create_and_add_node : function() {
|
||||
var c = Y.Node.create,
|
||||
|
@ -856,6 +857,8 @@ BLOCKREGION.prototype = {
|
|||
Y.one('body').append(node);
|
||||
}
|
||||
this.set('node', node);
|
||||
|
||||
return node;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
5
lib/yui/src/blocks/js/blockregion.js
vendored
5
lib/yui/src/blocks/js/blockregion.js
vendored
|
@ -27,7 +27,7 @@ BLOCKREGION.prototype = {
|
|||
Y.log('Block region `'+this.get('region')+'` initialising', 'info');
|
||||
if (!node) {
|
||||
Y.log('block region known about but no HTML structure found for it. Guessing structure.', 'warn');
|
||||
this.create_and_add_node();
|
||||
node = this.create_and_add_node();
|
||||
}
|
||||
var body = Y.one('body'),
|
||||
hasblocks = node.all('.'+CSS.BLOCK).size() > 0,
|
||||
|
@ -43,6 +43,7 @@ BLOCKREGION.prototype = {
|
|||
* Creates a generic block region node and adds it to the DOM at the best guess location.
|
||||
* Any calling of this method is an unfortunate circumstance.
|
||||
* @method create_and_add_node
|
||||
* @return Node The newly created Node
|
||||
*/
|
||||
create_and_add_node : function() {
|
||||
var c = Y.Node.create,
|
||||
|
@ -85,6 +86,8 @@ BLOCKREGION.prototype = {
|
|||
Y.one('body').append(node);
|
||||
}
|
||||
this.set('node', node);
|
||||
|
||||
return node;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue