Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added POST connection for left and right indents.

  • Loading branch information...
commit 381fd47442ac1619190d53b5c1600b5b982a52a6 1 parent f868caa
vyshane authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/ajax/section_classes.js
View
6 lib/ajax/section_classes.js
@@ -647,7 +647,7 @@ resource_class.prototype.indent_left = function() {
var spacer = YAHOO.util.Dom.getElementsByClassName('spacer',
'img', this.getEl())[0];
if (!spacer) {
- return;
+ return false;
}
if (spacer.width > 20) {
spacer.width -= 20;
@@ -665,7 +665,8 @@ resource_class.prototype.indent_left = function() {
commandContainer.removeChild(indentLeftBtn);
}
- return;
+ main.connect('POST', 'class=resource&field=indentleft', null, 'id='+this.id);
+ return true;
}
@@ -702,6 +703,7 @@ resource_class.prototype.indent_right = function() {
YAHOO.util.Event.addListener(button, 'click', this.indent_left, this, true);
commandContainer.insertBefore(button, indentRightBtn);
}
+ main.connect('POST', 'class=resource&field=indentright', null, 'id='+this.id);
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.