Lines Matching refs:element
22 // this.element.value. This is to allow incremental tokenized
42 baseInitialize: function(element, update, options) {
43 element = $(element);
44 this.element = element;
51 this.oldElementValue = this.element.value;
58 this.options.paramName = this.options.paramName || this.element.name;
63 function(element, update){
66 Position.clone(element, update, {
68 offsetTop: element.offsetHeight
74 function(element, update){ new Effect.Fade(update,{duration:0.15}) };
84 this.element.setAttribute('autocomplete','off');
88 Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this));
89 Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this));
93 if(Element.getStyle(this.update, 'display')=='none') this.options.onShow(this.element, this.update);
115 if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update);
172 var element = Event.findElement(event, 'LI');
173 if(this.index != element.autocompleteIndex)
175 this.index = element.autocompleteIndex;
182 var element = Event.findElement(event, 'LI');
183 this.index = element.autocompleteIndex;
250 var newValue = this.element.value.substr(0, bounds[0]);
251 var whitespace = this.element.value.substr(bounds[0]).match(/^\s+/);
254 this.element.value = newValue + value + this.element.value.substr(bounds[1]);
256 this.element.value = value;
258 this.oldElementValue = this.element.value;
259 this.element.focus();
262 this.options.afterUpdateElement(this.element, selectedElement);
295 addObservers: function(element) {
296 Event.observe(element, "mouseover", this.onHover.bindAsEventListener(this));
297 Event.observe(element, "click", this.onClick.bindAsEventListener(this));
309 this.oldElementValue = this.element.value;
314 return this.element.value.substring(bounds[0], bounds[1]).strip();
319 var value = this.element.value;
344 initialize: function(element, update, url, options) {
345 this.baseInitialize(element, update, options);
359 this.options.callback(this.element, entry) : entry;
408 initialize: function(element, update, array, options) {
409 this.baseInitialize(element, update, options);
480 initialize: function(element, url, options) {
482 this.element = element = $(element);
487 if (!this.options.formId && this.element.id) {
488 this.options.formId = this.element.id + '-inplaceeditor';
496 this._originalBackground = this.element.getStyle('background-color') || 'transparent';
497 this.element.title = this.options.clickToEditText;
583 this.element.innerHTML = this._oldInnerHTML;
593 this.element.hide();
595 this.element.parentNode.insertBefore(this._form, this.element);
602 this.element.addClassName(this.options.hoverClassName);
607 return this.element.innerHTML.unescapeHTML();
612 this.element.innerHTML = this._oldInnerHTML;
627 params.editorId = this.element.id;
635 new Ajax.Updater({ success: this.element }, this.url, options);
648 this.element.removeClassName(this.options.savingClassName);
651 this.element.style.backgroundColor = this._originalBackground;
652 this.element.show();
662 this.element.removeClassName(this.options.hoverClassName);
671 parameters: 'editorId=' + encodeURIComponent(this.element.id),
711 this.element.observe(pair.key, listener);
723 this._oldInnerHTML = this.element.innerHTML;
724 this.element.innerHTML = this.options.savingText;
725 this.element.addClassName(this.options.savingClassName);
726 this.element.style.backgroundColor = this._originalBackground;
727 this.element.show();
737 this.element.stopObserving(pair.key, pair.value);
745 // binding + direct element
746 this._boundComplete(transport, this.element);
755 initialize: function($super, element, url, options) {
757 $super(element, url, options);
778 parameters: 'editorId=' + encodeURIComponent(this.element.id),
816 parameters: 'editorId=' + encodeURIComponent(this.element.id),
904 onComplete: function(transport, element) {
906 // the element directly. It was too often customized, so we don't break it.
907 new Effect.Highlight(element, {
912 ipe.element.style.backgroundColor = ipe.options.highlightColor;
922 ipe._effect = new Effect.Highlight(ipe.element, {
945 initialize: function(element, delay, callback) {
947 this.element = $(element);
950 this.lastValue = $F(this.element);
951 Event.observe(this.element,'keyup',this.delayedListener.bindAsEventListener(this));
954 if(this.lastValue == $F(this.element)) return;
957 this.lastValue = $F(this.element);
961 this.callback(this.element, $F(this.element));