0.3.0 • Published 10 years ago

jedit v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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);
});
0.3.0

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago