|
Lines 206-223
Link Here
|
| 206 |
[% INCLUDE 'datatables.inc' %] |
206 |
[% INCLUDE 'datatables.inc' %] |
| 207 |
<script> |
207 |
<script> |
| 208 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'cities', 'table_cities', 'json' ) | $raw %]; |
208 |
var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'cities', 'table_cities', 'json' ) | $raw %]; |
| 209 |
$(document).ready(function() { |
209 |
var cities_table_url = '/api/v1/cities?'; |
| 210 |
var cities_table_url = '/api/v1/cities?'; |
|
|
| 211 |
|
210 |
|
| 212 |
[% IF city_name_filter %] |
211 |
[% IF city_name_filter %] |
| 213 |
var city_name_filter = { |
212 |
var city_name_filter = { |
| 214 |
'name': { |
213 |
'name': { |
| 215 |
"like": '%[%- city_name_filter | html -%]%' |
214 |
"like": '%[%- city_name_filter | html -%]%' |
| 216 |
} |
215 |
} |
| 217 |
}; |
216 |
}; |
| 218 |
cities_table_url += 'q='+ encodeURIComponent(JSON.stringify(city_name_filter)); |
217 |
cities_table_url += 'q='+ encodeURIComponent(JSON.stringify(city_name_filter)); |
| 219 |
[% END %] |
218 |
[% END %] |
| 220 |
}); |
|
|
| 221 |
</script> |
219 |
</script> |
| 222 |
<script> |
220 |
<script> |
| 223 |
$(document).ready(function () { |
221 |
$(document).ready(function () { |