Skip to content

cizar/jedit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jedit

Asynchronous jQuery in-place edit plugin

$('.editable').jedit('http://example.com/save.php');

Sync

$('.editable').jedit(function(value) {
  return value;
});

Custom AJAX call

$('.editable').jedit(function(value) {
  return $.post('http://example.com/save.php', { value: value });
});

Custom promise

$('.editable').jedit(function(value) {
  var d = $.Deferred();
  setTimeout(function() {
    d.resolve(value);
  }, 2000);
  return d.promise();
});

Callback styled

$('.editable').jedit(function(value, done) {
  setTimeout(function() {
    done(null, value);
  }, 2000);
});

About

Asynchronous jQuery in-place edit plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published