File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
ActionBar Changelog
2
- ====================
2
+ ===================
3
3
4
4
Version 1.0.0 July 15, 2014
5
5
---------------------------
@@ -9,4 +9,9 @@ Version 1.0.0 July 15, 2014
9
9
Version 1.1.0 December 09, 2016
10
10
---------------------------
11
11
12
- - Request parameter "ids" change support
12
+ - Update of the ` ids ` request parameter support
13
+
14
+ Version 1.1.1 March 10, 2017
15
+ ---------------------------
16
+
17
+ - Slight refactoring
Original file line number Diff line number Diff line change @@ -214,9 +214,9 @@ protected function renderElements($template)
214
214
$ this ->view ->registerJs ("$('# {$ id } # {$ this ->_bulkActionsId }').change(function() {
215
215
if (this.value) {
216
216
var ids = $('# {$ this ->grid }').yiiGridView('getSelectedRows'),
217
- dataConfirm = this.options[this.selectedIndex].getAttribute('data-confirm') ,
218
- opts = this. options[this.selectedIndex] ,
219
- url = opts .getAttribute('url');
217
+ options = this.options[this.selectedIndex],
218
+ dataConfirm = options.getAttribute('data-confirm') ,
219
+ url = options .getAttribute('url');
220
220
221
221
if (!ids.length) {
222
222
alert(' " . $ this ->t ('widget ' , 'Please select one or more items from the list. ' ) . "');
@@ -233,7 +233,7 @@ protected function renderElements($template)
233
233
form.append('<input type= \"hidden \" name=' + csrfParam + ' value=' + csrfToken + ' />');
234
234
}
235
235
$.each(ids, function(index, id) {
236
- form.append('<input type= \"hidden \" name= \"' + (opts .getAttribute('name') ? opts .getAttribute('name') : 'ids') + '[] \" value=' + id + ' />');
236
+ form.append('<input type= \"hidden \" name= \"' + (options .getAttribute('name') ? options .getAttribute('name') : 'ids') + '[] \" value=' + id + ' />');
237
237
});
238
238
form.appendTo('body').submit();
239
239
}
You can’t perform that action at this time.
0 commit comments