Merge branch 'MDL-51956-master' of git://github.com/ryanwyllie/moodle
This commit is contained in:
@@ -34,3 +34,6 @@ div.availablecolors label input[type="radio"] {
|
||||
margin-left: -15px;
|
||||
}
|
||||
|
||||
input[name="bordersize"], input[name="width"] {
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
|
||||
Vendored
+5
-5
@@ -39,7 +39,7 @@ var COMPONENT = 'atto_table',
|
||||
BORDERWIDTH: '1'
|
||||
},
|
||||
DIALOGUE = {
|
||||
WIDTH: '450px'
|
||||
WIDTH: '480px'
|
||||
},
|
||||
TEMPLATE = '' +
|
||||
'<form class="{{CSS.FORM}}">' +
|
||||
@@ -162,7 +162,7 @@ var COMPONENT = 'atto_table',
|
||||
'{{#if allowWidth}}' +
|
||||
'<label for="{{elementid}}_atto_table_width" class="sameline">' +
|
||||
'{{get_string "width" component}}</label>' +
|
||||
'<input id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" type="number" min="0" max="100"/>' +
|
||||
'<input name="width" id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" type="number" min="0" max="100"/>' +
|
||||
'<label style="display: inline-block;">{{CSS.WIDTHUNIT}}</label>' +
|
||||
'<br>' +
|
||||
'{{/if}}' +
|
||||
@@ -1176,7 +1176,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
}
|
||||
|
||||
if (backgroundcolourvalue !== 'none') {
|
||||
tableNode.setStyle('background-color', backgroundcolourvalue);
|
||||
tableNode.setStyle('backgroundColor', backgroundcolourvalue);
|
||||
}
|
||||
|
||||
if (configuration.width && configuration.width.get('value')) {
|
||||
@@ -1231,8 +1231,8 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
captionpositioninput.set('value', '');
|
||||
}
|
||||
|
||||
if (table.getStyle('background-color') && this.get('allowBackgroundColour')) {
|
||||
hexColour = Y.Color.toHex(table.getStyle('background-color'));
|
||||
if (table.getStyle('backgroundColor') && this.get('allowBackgroundColour')) {
|
||||
hexColour = Y.Color.toHex(table.getStyle('backgroundColor'));
|
||||
matchedInput = backgroundcolours.filter('[value="' + hexColour + '"]');
|
||||
|
||||
if (matchedInput) {
|
||||
|
||||
Vendored
+3
-3
File diff suppressed because one or more lines are too long
Vendored
+5
-5
@@ -39,7 +39,7 @@ var COMPONENT = 'atto_table',
|
||||
BORDERWIDTH: '1'
|
||||
},
|
||||
DIALOGUE = {
|
||||
WIDTH: '450px'
|
||||
WIDTH: '480px'
|
||||
},
|
||||
TEMPLATE = '' +
|
||||
'<form class="{{CSS.FORM}}">' +
|
||||
@@ -162,7 +162,7 @@ var COMPONENT = 'atto_table',
|
||||
'{{#if allowWidth}}' +
|
||||
'<label for="{{elementid}}_atto_table_width" class="sameline">' +
|
||||
'{{get_string "width" component}}</label>' +
|
||||
'<input id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" type="number" min="0" max="100"/>' +
|
||||
'<input name="width" id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" type="number" min="0" max="100"/>' +
|
||||
'<label style="display: inline-block;">{{CSS.WIDTHUNIT}}</label>' +
|
||||
'<br>' +
|
||||
'{{/if}}' +
|
||||
@@ -1176,7 +1176,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
}
|
||||
|
||||
if (backgroundcolourvalue !== 'none') {
|
||||
tableNode.setStyle('background-color', backgroundcolourvalue);
|
||||
tableNode.setStyle('backgroundColor', backgroundcolourvalue);
|
||||
}
|
||||
|
||||
if (configuration.width && configuration.width.get('value')) {
|
||||
@@ -1231,8 +1231,8 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
captionpositioninput.set('value', '');
|
||||
}
|
||||
|
||||
if (table.getStyle('background-color') && this.get('allowBackgroundColour')) {
|
||||
hexColour = Y.Color.toHex(table.getStyle('background-color'));
|
||||
if (table.getStyle('backgroundColor') && this.get('allowBackgroundColour')) {
|
||||
hexColour = Y.Color.toHex(table.getStyle('backgroundColor'));
|
||||
matchedInput = backgroundcolours.filter('[value="' + hexColour + '"]');
|
||||
|
||||
if (matchedInput) {
|
||||
|
||||
@@ -37,7 +37,7 @@ var COMPONENT = 'atto_table',
|
||||
BORDERWIDTH: '1'
|
||||
},
|
||||
DIALOGUE = {
|
||||
WIDTH: '450px'
|
||||
WIDTH: '480px'
|
||||
},
|
||||
TEMPLATE = '' +
|
||||
'<form class="{{CSS.FORM}}">' +
|
||||
@@ -160,7 +160,7 @@ var COMPONENT = 'atto_table',
|
||||
'{{#if allowWidth}}' +
|
||||
'<label for="{{elementid}}_atto_table_width" class="sameline">' +
|
||||
'{{get_string "width" component}}</label>' +
|
||||
'<input id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" type="number" min="0" max="100"/>' +
|
||||
'<input name="width" id="{{elementid}}_atto_table_width" class="{{CSS.WIDTH}}" size="8" type="number" min="0" max="100"/>' +
|
||||
'<label style="display: inline-block;">{{CSS.WIDTHUNIT}}</label>' +
|
||||
'<br>' +
|
||||
'{{/if}}' +
|
||||
@@ -1174,7 +1174,7 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
}
|
||||
|
||||
if (backgroundcolourvalue !== 'none') {
|
||||
tableNode.setStyle('background-color', backgroundcolourvalue);
|
||||
tableNode.setStyle('backgroundColor', backgroundcolourvalue);
|
||||
}
|
||||
|
||||
if (configuration.width && configuration.width.get('value')) {
|
||||
@@ -1229,8 +1229,8 @@ Y.namespace('M.atto_table').Button = Y.Base.create('button', Y.M.editor_atto.Edi
|
||||
captionpositioninput.set('value', '');
|
||||
}
|
||||
|
||||
if (table.getStyle('background-color') && this.get('allowBackgroundColour')) {
|
||||
hexColour = Y.Color.toHex(table.getStyle('background-color'));
|
||||
if (table.getStyle('backgroundColor') && this.get('allowBackgroundColour')) {
|
||||
hexColour = Y.Color.toHex(table.getStyle('backgroundColor'));
|
||||
matchedInput = backgroundcolours.filter('[value="' + hexColour + '"]');
|
||||
|
||||
if (matchedInput) {
|
||||
|
||||
Reference in New Issue
Block a user