rem: if(dom_element.attributes['item_id']) { item_id= dom_element.attributes['item_id'].value; 
add: if($(dom_element).attr('item_id')) { item_id= $(dom_element).attr('item_id'); } else { alert("Warning: no item id for ajax editing!"); return; }  if(dom_element.attributes['field_name']) { field_name= dom_element.attributes['field_name'].value; } else { field_name= "description"; 
context: function AjaxEdit(dom_element, item_id, field){    this.dom_element    = dom_element;    this.item_id        = item_id || 0;    this.field          = field || 0;    if(!dom_element)        return;    if(dom_element.attributes['item_id']) {        item_id= dom_element.attributes['item_id'].value;    }    this.initEditChapters = function()    {        if(!dom_element) {            alert("no dom element");            return;        }        var chapter_count= 0;        $(dom_element).find('div.chapter').each(function() {            var chapter= this;            var children= $(this).children();            var chapter_name= chapter_count++;            $(this).addClass('edit_chapter');            $(this).editable('index.php?go=itemSaveField&item=' + item_id + '&field=description&chapter=' + chapter_name, {                postload:'index.php?go=itemLoadField&item=' + item_id + '&field=description&chapter=' + chapter_name,                type:'textarea',                submit:'Save',                cancel:'Cancel',                chapter:true            });        });    }    this.initEditChapters();}
meta: 2768	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2768/37409684505cb21e5840e3611f757e358559a44a/misc.js/clean/js/misc.js