File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,23 @@ $(document).ready(function(){
133133 document . getElementById ( 'default-sort' ) . click ( ) ;
134134 $ ( '.context-menu.sort-order' ) . toggle ( ) ;
135135 } ;
136+
137+ $ ( '#objects' ) . submit ( function ( e ) {
138+ if ( ! e . originalEvent ) {
139+ return ;
140+ }
141+ e . preventDefault ( ) ;
142+ $ ( '.ch-toggle' ) . each ( function ( ) {
143+ if ( $ ( this ) . prop ( 'checked' ) ) {
144+ key = this . name ;
145+ div = $ ( '<input type="hidden" name="' + key + '[]" value="' + this . value + '"/>' ) ;
146+ $ ( '#objects' ) . append ( div ) ;
147+ }
148+ } ) ;
149+
150+ $ ( '#objects' ) . submit ( ) ;
151+ return true ;
152+ } ) ;
136153
137154 // Shortcuts
138155
Original file line number Diff line number Diff line change 4848 </ select >
4949 </ div >
5050 < button type ="submit " class ="l-sort-toolbar__filter-apply " value ="" title ="<?=_('apply to selected')?> "> < i class ="fas fa-arrow-right "> </ i > </ button >
51+ </ form >
5152 </ td >
5253 </ tr >
5354 </ table >
You can’t perform that action at this time.
0 commit comments