@@ -172,7 +172,7 @@ public function parameterize($attributes = [])
172
172
list ($ ajaxDataFunction , $ parameters ) = $ this ->encodeAjaxDataFunction ($ parameters );
173
173
list ($ columnFunctions , $ parameters ) = $ this ->encodeColumnFunctions ($ parameters );
174
174
list ($ callbackFunctions , $ parameters ) = $ this ->encodeCallbackFunctions ($ parameters );
175
- list ($ editorButtons , $ parameters ) = $ this ->encodeEditorButtons ($ parameters );
175
+ list ($ editorButtons , $ parameters ) = $ this ->encodeEditorButtons ($ parameters );
176
176
177
177
$ json = json_encode ($ parameters );
178
178
@@ -186,7 +186,6 @@ public function parameterize($attributes = [])
186
186
return $ json ;
187
187
}
188
188
189
-
190
189
/**
191
190
* Encode DataTables editor buttons.
192
191
*
@@ -199,11 +198,12 @@ protected function encodeEditorButtons(array $parameters)
199
198
if (isset ($ parameters ['buttons ' ])) {
200
199
foreach ($ parameters ['buttons ' ] as $ i => $ button ) {
201
200
if (isset ($ button ['editor ' ])) {
202
- $ editorButtons [$ i ] = $ this ->compileCallback ($ button ['editor ' ]);
201
+ $ editorButtons [$ i ] = $ this ->compileCallback ($ button ['editor ' ]);
203
202
$ parameters ['buttons ' ][$ i ]['editor ' ] = "#editor_button. {$ i }# " ;
204
203
}
205
204
}
206
205
}
206
+
207
207
return [$ editorButtons , $ parameters ];
208
208
}
209
209
@@ -219,6 +219,7 @@ protected function decodeEditorButtons(array $editorButtons, $json)
219
219
foreach ($ editorButtons as $ i => $ function ) {
220
220
$ json = str_replace ("\"#editor_button. {$ i }# \"" , $ function , $ json );
221
221
}
222
+
222
223
return $ json ;
223
224
}
224
225
0 commit comments