Rahul Bhargava wrote:
Anyway, if you do this instead, it does work (remove that arguments
check, add in the suggestion made in previous emails):
enterEditMode: function(evt) {
if (this.saving) return;
if (this.editing) return;
this.editing = true;
this.onEnterEditMode();
if (this.options.externalControl) {
Element.hide(this.options.externalControl);
}
Element.hide(this.element);
this.form = this.getForm();
this.element.parentNode.insertBefore(this.form, this.element);
Field.focus(this.editField);
// stop the event to avoid a page refresh in Safari
if(evt) Event.stop(evt);
},
That worked perfectly for me in Firefox and IE on Windows.
Really? Not me - I get "Error: this.getForm is not a function" on line
502 of controls.js, Firefox 1.0.7.
Jay
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs