I'm using the example shown in this post. It's working great, but I have trouble getting the indicator to show. Is there anyone that can explain why it doesn't work? Here's my code, mostly the same as above link:
<script type="text/javascript">
$(document).ready(function() {
$('.edit').editable(submitEdit, {
tooltip: "Click...",
indicator: "Saving...",
type: "text",
});
function submitEdit(value, settings){
var edits = new Object();
var origvalue = this.revert;
var textbox = this;
var result = value;
edits[settings.name] = value;
edits[settings.id] = this.id;
var returned = $.ajax({
url: '/account/venues/rename/',
type: "POST",
data : edits,
dataType : "json",
complete: function(xhr, textStatus){
var response = xhr.responseText;
}
});
return(result);
};
});
</script>
I should mention that the code insubmitEdit is not finished by any means, since I'd like the indicator to work first. Also, I've been trying both 1.6.2 and 1.7.2-dev of jeditable.
Thank you!