File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,9 @@ public function exportOptions($value)
172
172
*/
173
173
public function actionSubmit ()
174
174
{
175
- return $ this ->action ('function() { this.submit(); } ' );
175
+ $ this ->attributes ['action ' ] = 'function() { this.submit(); } ' ;
176
+
177
+ return $ this ;
176
178
}
177
179
178
180
/**
@@ -183,7 +185,7 @@ public function actionSubmit()
183
185
*/
184
186
public function action ($ value )
185
187
{
186
- $ this ->attributes ['action ' ] = $ value ;
188
+ $ this ->attributes ['action ' ] = " function(e, dt, node, config) { $ value } " ;
187
189
188
190
return $ this ;
189
191
}
@@ -196,7 +198,9 @@ public function action($value)
196
198
*/
197
199
public function actionHandler ($ action )
198
200
{
199
- return $ this ->action ("function() { this.submit(null, null, function(data) { data.action = ' {$ action }'; return data; }) } " );
201
+ $ this ->attributes ['action ' ] = "function() { this.submit(null, null, function(data) { data.action = ' {$ action }'; return data; }) } " ;
202
+
203
+ return $ this ;
200
204
}
201
205
202
206
/**
@@ -206,6 +210,8 @@ public function actionHandler($action)
206
210
*/
207
211
public function actionClose ()
208
212
{
209
- return $ this ->action ('function() { this.close(); } ' );
213
+ $ this ->attributes ['action ' ] = 'function() { this.close(); } ' ;
214
+
215
+ return $ this ;
210
216
}
211
217
}
You can’t perform that action at this time.
0 commit comments