Editing mode buttons now check for class names instead of titiles when searching for the buttons to be 'ajaxified'.
This commit is contained in:
@@ -561,17 +561,17 @@ resource_class.prototype.init_buttons = function() {
|
||||
var updateButton = null;
|
||||
|
||||
for (var x=0; x<buttons.length; x++) {
|
||||
if (buttons[x].title == main.portal.strings['moveleft']) {
|
||||
if (buttons[x].className == 'editing_moveleft') {
|
||||
moveLeft = true;
|
||||
} else if (buttons[x].title == main.portal.strings['moveright']) {
|
||||
} else if (buttons[x].className == 'editing_moveright') {
|
||||
moveRight = true;
|
||||
} else if (buttons[x].title == main.portal.strings['update']) {
|
||||
} else if (buttons[x].className == 'editing_update') {
|
||||
updateButton = buttons[x].cloneNode(true);
|
||||
} else if (buttons[x].title == strgroupsnone) {
|
||||
} else if (buttons[x].className == 'editing_groupsnone') {
|
||||
this.groupmode = this.NOGROUPS;
|
||||
} else if (buttons[x].title == strgroupsseparate) {
|
||||
} else if (buttons[x].className == 'editing_groupsseparate') {
|
||||
this.groupmode = this.SEPARATEGROUPS;
|
||||
} else if (buttons[x].title == strgroupsvisible) {
|
||||
} else if (buttons[x].className == 'editing_groupsvisible') {
|
||||
this.groupmode = this.VISIBLEGROUPS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user