Lines 140-154
Link Here
|
140 |
"data": function( row, meta, val, type ) { |
140 |
"data": function( row, meta, val, type ) { |
141 |
let filter = row; |
141 |
let filter = row; |
142 |
let filter_buttons = '<a class="btn btn-default btn-xs edit_filter" onclick="edit_filter(this)"'; |
142 |
let filter_buttons = '<a class="btn btn-default btn-xs edit_filter" onclick="edit_filter(this)"'; |
143 |
filter_buttons += ' data-filter_id="'+ filter.search_filter_id; |
143 |
filter_buttons += ' data-filter_id="'+ escape_str(filter.search_filter_id); |
144 |
filter_buttons += '" data-filter_name="'+ filter.name; |
144 |
filter_buttons += '" data-filter_name="'+ escape_str(filter.name); |
145 |
filter_buttons += '" data-filter_opac="'+ filter.opac; |
145 |
filter_buttons += '" data-filter_opac="'+ escape_str(filter.opac); |
146 |
filter_buttons += '" data-filter_staff_client="'+ filter.staff_client; |
146 |
filter_buttons += '" data-filter_staff_client="'+ escape_str(filter.staff_client); |
147 |
filter_buttons += '" ><i class="fa fa-pencil"></i> Edit filter</a>'; |
147 |
filter_buttons += '" ><i class="fa fa-pencil"></i> '+_("Edit filter")+'</a>'; |
148 |
filter_buttons += '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/catalogue/search.pl?edit_filter='+filter.search_filter_id+'"><i class="fa fa-search"></i> Edit search</a>'; |
148 |
filter_buttons += '<a class="btn btn-default btn-xs" href="/cgi-bin/koha/catalogue/search.pl?edit_filter='+encodeURIComponent(filter.search_filter_id)+'"><i class="fa fa-search"></i> '+ _("Edit search") + '</a>'; |
149 |
filter_buttons += '<a class="btn btn-default btn-xs delete_filter" onclick="delete_filter(this)"'; |
149 |
filter_buttons += '<a class="btn btn-default btn-xs delete_filter" onclick="delete_filter(this)"'; |
150 |
filter_buttons += ' data-filter_id="'+ filter.search_filter_id; |
150 |
filter_buttons += ' data-filter_id="'+ escape_str(filter.search_filter_id); |
151 |
filter_buttons += '"><i class="fa fa-trash"></i> Delete</a>'; |
151 |
filter_buttons += '"><i class="fa fa-trash"></i> '+_("Delete")+'</a>'; |
152 |
return filter_buttons; |
152 |
return filter_buttons; |
153 |
}, |
153 |
}, |
154 |
"searchable": false, |
154 |
"searchable": false, |
155 |
- |
|
|