rem: $.post(settings.target, submitdata, function(str) { 
add: form.submit(function(e) {  if (t) { clearTimeout(t); }  /* do no submit */ e.preventDefault();  /* if this input type has a call before submit hook, call it */ submit.apply(form, [settings, self]);  /* check if given target is function */ if ($.isFunction(settings.target)) { var str = settings.target.apply(self, [input.val(), settings]); $(self).html(str); self.editing = false; callback.apply(self, [self.innerHTML, settings]); } else { /* add edited content and id of edited element to POST */ var submitdata = {}; submitdata[settings.name] = input.val(); submitdata[settings.id] = self.id; /* add extra data to be POST:ed */ if ($.isFunction(settings.submitdata)) { $.extend(submitdata, settings.submitdata.apply(self, [self.revert, settings])); } else { $.extend(submitdata, settings.submitdata); }  /* show the saving indicator */ $(self).html(settings.indicator); $.post(settings.target, submitdata, function(str) { 
context:                         $.post(settings.target, submitdata, function(str) {                            $(self).html(str);                            self.editing = false;                            callback.apply(self, [self.innerHTML, settings]);                            /* TODO: this is not dry */                                                          if (!$.trim($(self).html())) {                                $(self).html(settings.placeholder);                            }                        });
meta: 8486	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8486/c146ad7fb8f8ea76e00b86a098fa854eb6f9754c/jquery.jeditable.js/buggy/jquery.jeditable.js