-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.js
30 lines (30 loc) · 804 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$(document).ready(function () {
$.editable.packageCustomPlugin("text",function (settings,self) {
alert("Plugin called!");
});
$.editable.packageCustomOnsubmit(function (settings,self) {
alert("Onsubmit!");
});
$('#testDiv-text').editable(function (value) {
return value;
});
$('#testDiv-textarea').editable(function (value) {
return value;
},{
type:"textarea",
submit:"save"
});
$('#testDiv-select').editable(function (value) {
return value;
},{
type:'select',
submit:'save',
data:{"opt1":"Editable with select","opt2":"I've been edited with select","opt3":"I've been edited with select again"}
});
$('#undoButton').click(function () {
$.undoManager.undo();
});
$('#redoButton').click(function() {
$.undoManager.redo();
});
});