Changeset 57058
- Timestamp:
- 29/06/08 14:26:54 (2 months ago)
- Location:
- modules/sapphire/branches/roa
- Files:
-
- 4 modified
-
forms/Form.php (modified) (1 diff)
-
forms/HtmlEditorField.php (modified) (4 diffs)
-
javascript/FieldEditor.js (modified) (1 diff)
-
javascript/TreeSelectorField.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/sapphire/branches/roa/forms/Form.php
r55910 r57058 458 458 function FormName() { 459 459 if($this->htmlID) return $this->htmlID; 460 else return $this->class . '_' . str_replace( '.','',$this->name);460 else return $this->class . '_' . str_replace(array('.','/'),'',$this->name); 461 461 } 462 462 -
modules/sapphire/branches/roa/forms/HtmlEditorField.php
r50783 r57058 263 263 * @subpackage fields-formattedinput 264 264 */ 265 class HtmlEditorField_Toolbar extends ViewableData {265 class HtmlEditorField_Toolbar extends RequestHandlingData { 266 266 protected $controller, $name; 267 267 … … 354 354 $form = new Form( 355 355 $this->controller, 356 "{$this->name} .LinkForm",356 "{$this->name}/LinkForm", 357 357 new FieldSet( 358 358 new LiteralField('Heading', '<h2><img src="cms/images/closeicon.gif" alt="'._t('HtmlEditorField.CLOSE', 'close').'" title="'._t('HtmlEditorField.CLOSE', 'close').'" />'._t('HtmlEditorField.LINK', 'Link').'</h2>'), … … 386 386 $form = new Form( 387 387 $this->controller, 388 "{$this->name} .ImageForm",388 "{$this->name}/ImageForm", 389 389 new FieldSet( 390 390 new LiteralField('Heading', '<h2><img src="cms/images/closeicon.gif" alt="'._t('HtmlEditorField.CLOSE', 'close').'" title="'._t('HtmlEditorField.CLOSE', 'close').'" />'._t('HtmlEditorField.IMAGE', 'Image').'</h2>'), … … 426 426 $form = new Form( 427 427 $this->controller, 428 "{$this->name} .FlashForm",428 "{$this->name}/FlashForm", 429 429 new FieldSet( 430 430 new LiteralField('Heading', '<h2><img src="cms/images/closeicon.gif" alt="'._t('HtmlEditorField.CLOSE', 'close').'" title="'._t('HtmlEditorField.CLOSE', 'close').'" />'._t('HtmlEditorField.FLASH', 'Flash').'</h2>'), -
modules/sapphire/branches/roa/javascript/FieldEditor.js
r44200 r57058 496 496 497 497 urlForFieldMethod: function(methodName) { 498 return this.ownerForm().action + ' &action_callfieldmethod=1&fieldName=' + 'Fields' + '&ajax=1&methodName=' + methodName + '&NewID=' + this.numNewFields;498 return this.ownerForm().action + '/field/Fields/' + methodName + '?NewID=' + this.numNewFields; 499 499 }, 500 500 ownerForm: function() { -
modules/sapphire/branches/roa/javascript/TreeSelectorField.js
r43883 r57058 37 37 38 38 helperURLBase: function() { 39 return this.ownerForm().action + ' &action_callfieldmethod=1&fieldName=' + this.inputTag.name + '&ajax=1' + ($('SecurityID') ? '&SecurityID=' + $('SecurityID').value : '');39 return this.ownerForm().action + '/field/' + this.inputTag.name + '/'; 40 40 }, 41 41 ownerForm: function() { … … 130 130 131 131 ajaxGetTree: function(after) { 132 var ajaxURL = this.helperURLBase() + '&methodName=gettree&forceValues=' + this.inputTag.value; 132 var ajaxURL = this.helperURLBase() + 'gettree?forceValues=' + this.inputTag.value; 133 ajaxURL += $('SecurityID') ? '&SecurityID=' + $('SecurityID').value : ''; 133 134 new Ajax.Request(ajaxURL, { 134 135 method : 'get', … … 175 176 ul.innerHTML = 'loading...'; 176 177 177 new Ajax.Request(this.options.dropdownField.helperURLBase() + '&methodName=getsubtree&SubtreeRootID=' + this.getIdx(), { 178 var ajaxURL = this.options.dropdownField.helperURLBase() + 'getsubtree?&SubtreeRootID=' + this.getIdx(); 179 ajaxURL += $('SecurityID') ? '&SecurityID=' + $('SecurityID').value : ''; 180 181 new Ajax.Request(ajaxURL, { 178 182 onSuccess : this.installSubtree.bind(this), 179 183 onFailure : function(response) { errorMessage('error loading subtree', response); }
