Currently ajax dataType is constantly set to 'html'.
Would be create to allow ajax as well.
New setting:
ajax_data_type: "html", // string: dataType (html|script) for ajax call to save
updated value
success: function(data){
if (that.settings.ajax_data_type == 'html') {
var new_text = data || that.settings.default_text;
/* put the newly updated info into the original element */
// FIXME: should be affected by the preferences switch
that.dom.html(new_text);
// REFACT: remove dom parameter, already in this, not documented, should be easy to remove
// REFACT: callback should be able to override what gets put into the DOM
}
that.triggerCallback(that.settings.success,data);
},
Original issue reported on code.google.com by MrBana...@googlemail.com on 21 Jul 2010 at 3:29
Original issue reported on code.google.com by
MrBana...@googlemail.com
on 21 Jul 2010 at 3:29