fixed unterminated JS statements
This commit is contained in:
@@ -91,7 +91,7 @@ var anomaly = (function(){
|
||||
pre: {hasblocks:true,c:'side-pre-only'},
|
||||
post: {hasblocks:true,c:'side-post-only'},
|
||||
noblocksc:'noblocks'
|
||||
}
|
||||
};
|
||||
M.core_dock.Y.all('div.block-region').each(function(blockregion){
|
||||
if (blockregion.hasClass('side-pre') && blockregion.all('.block').size() == 0) {
|
||||
blockregions.pre.hasblocks = false;
|
||||
|
||||
@@ -91,7 +91,7 @@ var fw = (function(){
|
||||
pre: {hasblocks:true,c:'side-pre-only'},
|
||||
post: {hasblocks:true,c:'side-post-only'},
|
||||
noblocksc:'noblocks'
|
||||
}
|
||||
};
|
||||
M.core_dock.Y.all('div.block-region').each(function(blockregion){
|
||||
if (blockregion.hasClass('side-pre') && blockregion.all('.block').size() == 0) {
|
||||
blockregions.pre.hasblocks = false;
|
||||
|
||||
+3
-3
@@ -9,7 +9,7 @@ var COLOURS = ['red','green','blue','orange'];
|
||||
*/
|
||||
var ColourSwitcher = function() {
|
||||
ColourSwitcher.superclass.constructor.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
ColourSwitcher.prototype = {
|
||||
/**
|
||||
* Constructor for this class
|
||||
@@ -43,7 +43,7 @@ ColourSwitcher.prototype = {
|
||||
// Store the users selection (Uses AJAX to save to the database)
|
||||
M.util.set_user_preference('theme_splash_chosen_colour', colour);
|
||||
}
|
||||
}
|
||||
};
|
||||
// Make the colour switcher a fully fledged YUI module
|
||||
Y.extend(ColourSwitcher, Y.Base, ColourSwitcher.prototype, {
|
||||
NAME : 'Splash theme colour switcher',
|
||||
@@ -54,7 +54,7 @@ Y.extend(ColourSwitcher, Y.Base, ColourSwitcher.prototype, {
|
||||
}
|
||||
});
|
||||
// Our splash theme namespace
|
||||
M.theme_splash = M.theme_splash || {}
|
||||
M.theme_splash = M.theme_splash || {};
|
||||
// Initialisation function for the colour switcher
|
||||
M.theme_splash.initColourSwitcher = function(cfg) {
|
||||
return new ColourSwitcher(cfg);
|
||||
|
||||
@@ -15,11 +15,11 @@ M.core_user.user_selectors = [];
|
||||
*/
|
||||
M.core_user.get_user_selector = function (name) {
|
||||
return this.user_selectors[name] || null;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialise a new user selector.
|
||||
*
|
||||
*
|
||||
* @param {YUI} Y The YUI3 instance
|
||||
* @param {string} name the control name/id.
|
||||
* @param {string} hash the hash that identifies this selector in the user's session.
|
||||
@@ -303,7 +303,7 @@ M.core_user.init_user_selector = function (Y, name, hash, extrafields, lastsearc
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
// Augment the user selector with the EventTarget class so that we can use
|
||||
// custom events
|
||||
Y.augment(user_selector, Y.EventTarget, null, null, {});
|
||||
@@ -313,7 +313,7 @@ M.core_user.init_user_selector = function (Y, name, hash, extrafields, lastsearc
|
||||
this.user_selectors[name] = user_selector;
|
||||
// Return the user selector
|
||||
return user_selector;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Initialise a class that updates the user's preferences when they change one of
|
||||
@@ -348,9 +348,9 @@ M.core_user.init_user_selector_options_tracker = function(Y) {
|
||||
set_user_preference : function(e, name) {
|
||||
M.util.set_user_preference(name, Y.one('#'+name+'id').get('checked'));
|
||||
}
|
||||
}
|
||||
};
|
||||
// Initialise the options tracker
|
||||
user_selector_options_tracker.init();
|
||||
// Return it just incase it is ever wanted
|
||||
return user_selector_options_tracker;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user