View | Details | Raw Unified | Return to bug 25279
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt (-4 / +2 lines)
Lines 181-187 Link Here
181
                "ajax": {
181
                "ajax": {
182
                    "url": cities_table_url
182
                    "url": cities_table_url
183
                },
183
                },
184
                'dom': 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>',
185
                "order": [[ 1, "asc" ]],
184
                "order": [[ 1, "asc" ]],
186
                "columnDefs": [ {
185
                "columnDefs": [ {
187
                    "targets": [0,1,2,3,4],
186
                    "targets": [0,1,2,3,4],
Lines 221-228 Link Here
221
                    {
220
                    {
222
                        "data": function( row, type, val, meta ) {
221
                        "data": function( row, type, val, meta ) {
223
222
224
                            var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/cities.pl?op=add_form&amp;cityid='+ row.city_id +'"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'+"\n";
223
                            var result = '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/cities.pl?op=add_form&amp;cityid='+ encodeURIComponent(row.city_id) +'"><i class="fa fa-pencil" aria-hidden="true"></i> '+_("Edit")+'</a>'+"\n";
225
                            result += '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/cities.pl?op=delete_confirm&amp;cityid='+ row.city_id +'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Delete")+'</a>';
224
                            result += '<a class="btn btn-default btn-xs" role="button" href="/cgi-bin/koha/admin/cities.pl?op=delete_confirm&amp;cityid='+ encodeURIComponent(row.city_id) +'"><i class="fa fa-trash" aria-hidden="true"></i> '+_("Delete")+'</a>';
226
                            return result;
225
                            return result;
227
226
228
                        },
227
                        },
229
- 

Return to bug 25279