Ajax.InPlaceCheckboxEditor = Class.create(); Object.extend(Ajax.InPlaceCheckboxEditor.prototype, Ajax.InPlaceEditor.prototype); Object.extend(Ajax.InPlaceCheckboxEditor.prototype, { createEditField: function() { if (!this.cached_collectionTag) { var collection = this.options.collection || []; var collectionTag = document.createElement("div"); var checkboxTag; collection.each(function(e,i) { checkboxTag = document.createElement("input"); checkboxTag.type = "checkbox"; checkboxTag.value = (e instanceof Array) ? e[0] : e; for(var index=0; index