File tree Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Expand file tree Collapse file tree 6 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 40
40
. click ( function ( ) {
41
41
$ ( ".sample" ) . editable ( "start" ) ;
42
42
} ) ;
43
- $ ( "#submit -all" )
43
+ $ ( "#save -all" )
44
44
. button ( )
45
45
. click ( function ( ) {
46
- $ ( ".sample" ) . editable ( "submit " ) ;
46
+ $ ( ".sample" ) . editable ( "save " ) ;
47
47
} ) ;
48
48
$ ( "#cancel-all" )
49
49
. button ( )
58
58
< div class ="demo ">
59
59
60
60
< button id ="start-all "> Edit all</ button >
61
- < button id ="submit -all "> Submit all changes</ button >
61
+ < button id ="save -all "> Submit all changes</ button >
62
62
< button id ="cancel-all "> Skip all changes</ button >
63
63
64
64
< p >
86
86
Click at text to edit it.
87
87
</ p >
88
88
< p >
89
- Save your changes by submiting ( pressing Enter or clicking the save button) .
89
+ Save your changes by pressing Enter or clicking the save button.
90
90
</ p >
91
91
< p >
92
92
Abort your changes by pressing Esc or clicking the cancel button.
Original file line number Diff line number Diff line change 22
22
}
23
23
24
24
$ ( "#editable" )
25
- . bind ( "editsubmit " , function ( ev , ui ) {
26
- log ( "submit : " + ui . value ) ;
25
+ . bind ( "editsave " , function ( ev , ui ) {
26
+ log ( "save : " + ui . value ) ;
27
27
} )
28
28
. bind ( "editchange" , function ( ev , ui ) {
29
29
log ( "change: " + ui . value ) ;
57
57
Click at 'John Doe' text to edit it.
58
58
</ p >
59
59
< p >
60
- Save your changes by submiting ( pressing Enter or clicking the save button) .
60
+ Save your changes by pressing Enter or clicking the save button.
61
61
</ p >
62
62
< p >
63
63
Abort your changes by pressing Esc or clicking the cancel button.
Original file line number Diff line number Diff line change 46
46
. click ( function ( ) {
47
47
$ ( ".sample" ) . editable ( "start" ) ;
48
48
} ) ;
49
- $ ( "#submit -all" )
49
+ $ ( "#save -all" )
50
50
. button ( )
51
51
. click ( function ( ) {
52
- $ ( ".sample" ) . editable ( "submit " ) ;
52
+ $ ( ".sample" ) . editable ( "save " ) ;
53
53
} ) ;
54
54
$ ( "#cancel-all" )
55
55
. button ( )
64
64
< div class ="demo ">
65
65
66
66
< button id ="start-all "> Edit all</ button >
67
- < button id ="submit -all "> Submit all changes</ button >
67
+ < button id ="save -all "> Submit all changes</ button >
68
68
< button id ="cancel-all "> Skip all changes</ button >
69
69
70
70
< p >
88
88
Click at text to edit it.
89
89
</ p >
90
90
< p >
91
- Save your changes by submiting ( pressing Enter or clicking the save button) .
91
+ Save your changes by pressing Enter or clicking the save button.
92
92
</ p >
93
93
< p >
94
94
Abort your changes by pressing Esc or clicking the cancel button.
Original file line number Diff line number Diff line change 24
24
event : 'mouseenter'
25
25
} ) ;
26
26
$ ( "#editable" )
27
- . bind ( "editsubmit " , function ( ev , ui ) {
28
- log ( "submit : " + ui . value ) ;
27
+ . bind ( "editsave " , function ( ev , ui ) {
28
+ log ( "save : " + ui . value ) ;
29
29
} )
30
30
. bind ( "editchange" , function ( ev , ui ) {
31
31
log ( "change: " + ui . value ) ;
53
53
54
54
< div class ="demo-description ">
55
55
< p >
56
- Save your changes by submiting ( pressing Enter or clicking the save button) .
56
+ Save your changes by pressing Enter or clicking the save button.
57
57
</ p >
58
58
< p >
59
59
Abort your changes by pressing Esc or clicking the cancel button.
Original file line number Diff line number Diff line change 38
38
}
39
39
40
40
$ ( "#editable" )
41
- . bind ( "editsubmit " , function ( ev , ui ) {
42
- log ( "submit : " + ui . value ) ;
41
+ . bind ( "editsave " , function ( ev , ui ) {
42
+ log ( "save : " + ui . value ) ;
43
43
cleanError ( ) ;
44
44
} )
45
45
. bind ( "editchange" , function ( ev , ui ) {
86
86
Click at the number to edit it, try odd and even numbers to check it out.
87
87
</ p >
88
88
< p >
89
- Save your changes by submiting ( pressing Enter or clicking the save button) .
89
+ Save your changes by pressing Enter or clicking the save button.
90
90
</ p >
91
91
< p >
92
92
Abort your changes by pressing Esc or clicking the cancel button.
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ $.widget( "ui.editable", {
48
48
}
49
49
} ,
50
50
51
- submit : function ( ) {
51
+ save : function ( ) {
52
52
$ ( "form" , this . element ) . submit ( ) ;
53
53
} ,
54
54
@@ -105,7 +105,7 @@ $.widget( "ui.editable", {
105
105
106
106
if ( ! this . _editing ) { }
107
107
else if ( $this . hasClass ( saveClass ) || $this . parent ( ) . hasClass ( saveClass ) ) {
108
- this . submit ( ) ;
108
+ this . save ( ) ;
109
109
return false ;
110
110
}
111
111
else if ( $this . hasClass ( cancelClass ) || $this . parent ( ) . hasClass ( cancelClass ) ) {
@@ -128,7 +128,7 @@ $.widget( "ui.editable", {
128
128
if ( this . _skipEnterSubmit ) {
129
129
break ;
130
130
}
131
- this . submit ( ) ;
131
+ this . save ( ) ;
132
132
return false ;
133
133
case keyCode . ESCAPE :
134
134
this . _cancel ( ) ;
@@ -257,7 +257,7 @@ $.widget( "ui.editable", {
257
257
value : newValue
258
258
} ;
259
259
260
- if ( this . _trigger ( "submit " , event , hash ) === false ) {
260
+ if ( this . _trigger ( "save " , event , hash ) === false ) {
261
261
return ;
262
262
}
263
263
if ( this . value ( ) !== newValue ) {
You can’t perform that action at this time.
0 commit comments