Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
Merge branch 'MDL-48620-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
Conflicts:
	lib/editor/atto/plugins/undo/yui/build/moodle-atto_undo-button/moodle-atto_undo-button-min.js
  • Loading branch information
stronk7 committed Jan 28, 2015
2 parents 215c370 + 557f44d commit 8181ab5
Show file tree
Hide file tree
Showing 221 changed files with 919 additions and 603 deletions.
49 changes: 27 additions & 22 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,48 +1,53 @@
{
"browser": true,
"yui": true,
"bitwise": true,
"curly": true,
"eqeqeq": true,
"forin": false,
"immed": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nomen": false,
"onevar": false,
"plusplus": false,
"regexp": false,
"strict": false,
"trailing": true,
"unused": true,
"white": false,
"asi": false,
"bitwise": true,
"boss": false,
"browser": true,
"curly": true,
"debug": false,
"eqeqeq": false,
"eqnull": false,
"es5": false,
"esnext": false,
"evil": false,
"expr": false,
"forin": false,
"funcscope": false,
"globalstrict": false,
"immed": true,
"indent": 4,
"iterator": false,
"lastsemic": false,
"latedef": true,
"laxbreak": true,
"laxcomma": false,
"loopfunc": false,
"maxerr": 500,
"maxlen": 132,
"multistr": false,
"newcap": true,
"noarg": true,
"noempty": true,
"nomen": false,
"onecase": false,
"onevar": false,
"passfail": false,
"plusplus": false,
"predef": [
"M"
],
"proto": false,
"regexdash": false,
"regexp": false,
"scripturl": false,
"shadow": false,
"smarttabs": false,
"strict": false,
"sub": false,
"supernew": false,
"maxerr": 500,
"maxlen": 180,
"passfail": false,
"latedef": true
"trailing": true,
"unused": true,
"undef": true,
"white": false,
"yui": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ M.availability_completion.form.getNode = function(json) {
// String has already been escaped using format_string.
html += '<option value="' + cm.id + '">' + cm.name + '</option>';
}
html += '</select></label> <label><span class="accesshide">' + M.util.get_string('label_completion', 'availability_completion') +
html += '</select></label> <label><span class="accesshide">' +
M.util.get_string('label_completion', 'availability_completion') +
' </span><select name="e" title="' + M.util.get_string('label_completion', 'availability_completion') + '">' +
'<option value="1">' + M.util.get_string('option_complete', 'availability_completion') + '</option>' +
'<option value="0">' + M.util.get_string('option_incomplete', 'availability_completion') + '</option>' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ M.availability_completion.form.getNode = function(json) {
// String has already been escaped using format_string.
html += '<option value="' + cm.id + '">' + cm.name + '</option>';
}
html += '</select></label> <label><span class="accesshide">' + M.util.get_string('label_completion', 'availability_completion') +
html += '</select></label> <label><span class="accesshide">' +
M.util.get_string('label_completion', 'availability_completion') +
' </span><select name="e" title="' + M.util.get_string('label_completion', 'availability_completion') + '">' +
'<option value="1">' + M.util.get_string('option_complete', 'availability_completion') + '</option>' +
'<option value="0">' + M.util.get_string('option_incomplete', 'availability_completion') + '</option>' +
Expand Down
3 changes: 2 additions & 1 deletion availability/condition/completion/yui/src/form/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ M.availability_completion.form.getNode = function(json) {
// String has already been escaped using format_string.
html += '<option value="' + cm.id + '">' + cm.name + '</option>';
}
html += '</select></label> <label><span class="accesshide">' + M.util.get_string('label_completion', 'availability_completion') +
html += '</select></label> <label><span class="accesshide">' +
M.util.get_string('label_completion', 'availability_completion') +
' </span><select name="e" title="' + M.util.get_string('label_completion', 'availability_completion') + '">' +
'<option value="1">' + M.util.get_string('option_complete', 'availability_completion') + '</option>' +
'<option value="0">' + M.util.get_string('option_incomplete', 'availability_completion') + '</option>' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ M.core_availability.List.prototype.clickAdd = function() {
*/
M.core_availability.List.prototype.getAddHandler = function(type, dialogRef) {
return function() {
var newItem;
if (type) {
// Create an Item object to represent the child.
newItem = new M.core_availability.Item({ type: type, creating: true }, this.root);
Expand Down Expand Up @@ -926,7 +927,7 @@ M.core_availability.Item = function(json, root) {
* @return {Object} JavaScript object containing value of this item
*/
M.core_availability.Item.prototype.getValue = function() {
value = { 'type' : this.pluginType };
var value = { 'type' : this.pluginType };
if (this.plugin) {
this.plugin.fillValue(value, this.pluginNode);
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ M.core_availability.List.prototype.clickAdd = function() {
*/
M.core_availability.List.prototype.getAddHandler = function(type, dialogRef) {
return function() {
var newItem;
if (type) {
// Create an Item object to represent the child.
newItem = new M.core_availability.Item({ type: type, creating: true }, this.root);
Expand Down Expand Up @@ -926,7 +927,7 @@ M.core_availability.Item = function(json, root) {
* @return {Object} JavaScript object containing value of this item
*/
M.core_availability.Item.prototype.getValue = function() {
value = { 'type' : this.pluginType };
var value = { 'type' : this.pluginType };
if (this.plugin) {
this.plugin.fillValue(value, this.pluginNode);
}
Expand Down
3 changes: 2 additions & 1 deletion availability/yui/src/form/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ M.core_availability.List.prototype.clickAdd = function() {
*/
M.core_availability.List.prototype.getAddHandler = function(type, dialogRef) {
return function() {
var newItem;
if (type) {
// Create an Item object to represent the child.
newItem = new M.core_availability.Item({ type: type, creating: true }, this.root);
Expand Down Expand Up @@ -924,7 +925,7 @@ M.core_availability.Item = function(json, root) {
* @return {Object} JavaScript object containing value of this item
*/
M.core_availability.Item.prototype.getValue = function() {
value = { 'type' : this.pluginType };
var value = { 'type' : this.pluginType };
if (this.plugin) {
this.plugin.fillValue(value, this.pluginNode);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ Y.extend(TREE, Y.Base, TREE.prototype, {
* @constructor
* @extends Base
*/
BRANCH = function() {
var BRANCH = function() {
BRANCH.superclass.constructor.apply(this, arguments);
};
BRANCH.prototype = {
Expand Down Expand Up @@ -634,7 +634,7 @@ BRANCH.prototype = {

Y.io(M.cfg.wwwroot + ajaxfile, {
method:'POST',
data: build_querystring(params),
data: params,
on: {
complete: this.ajaxProcessResponse
},
Expand Down Expand Up @@ -672,8 +672,10 @@ BRANCH.prototype = {
this.addChild(object.children[i]);
}
}
if ((this.get('type') === NODETYPE.CATEGORY || this.get('type') === NODETYPE.ROOTNODE || this.get('type') === NODETYPE.MYCATEGORY)
&& coursecount >= M.block_navigation.courselimit) {
if ((this.get('type') === NODETYPE.CATEGORY ||
this.get('type') === NODETYPE.ROOTNODE ||
this.get('type') === NODETYPE.MYCATEGORY)
&& coursecount >= M.block_navigation.courselimit) {
this.addViewAllCoursesChild(this);
}
Y.log('AJAX loading complete.', 'note', 'moodle-block_navigation');
Expand Down
Loading

0 comments on commit 8181ab5

Please sign in to comment.