Browse files

Added POST connection for left and right indents.

  • Loading branch information...
1 parent f868caa commit 381fd47442ac1619190d53b5c1600b5b982a52a6 vyshane committed Nov 22, 2006
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;
}

0 comments on commit 381fd47

Please sign in to comment.