Lines 152-157
Link Here
|
152 |
Is local hold group |
152 |
Is local hold group |
153 |
</label> |
153 |
</label> |
154 |
</p> |
154 |
</p> |
|
|
155 |
<p> |
156 |
<label> |
157 |
<input type="checkbox" name="ft_local_float_group" id="add-group-modal-ft_local_float_group" value="1" /> |
158 |
Is local float group |
159 |
</label> |
160 |
</p> |
155 |
</div> |
161 |
</div> |
156 |
</div> |
162 |
</div> |
157 |
</div> |
163 |
</div> |
Lines 216-221
Link Here
|
216 |
Is local hold group |
222 |
Is local hold group |
217 |
</label> |
223 |
</label> |
218 |
</p> |
224 |
</p> |
|
|
225 |
<p> |
226 |
<label> |
227 |
<input type="checkbox" id="edit-group-modal-ft_local_float_group" name="ft_local_float_group" value="1" /> |
228 |
Is local float group |
229 |
</label> |
230 |
</p> |
219 |
</div> |
231 |
</div> |
220 |
</div> |
232 |
</div> |
221 |
</div> |
233 |
</div> |
Lines 296-302
Link Here
|
296 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
308 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
297 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
309 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
298 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_group'); |
310 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_group'); |
299 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group ); |
311 |
var ft_local_float_group = $(this).data('groupFt_local_float_group'); |
|
|
312 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_local_float_group ); |
300 |
}); |
313 |
}); |
301 |
|
314 |
|
302 |
$('.delete-group').on('click', function(e) { |
315 |
$('.delete-group').on('click', function(e) { |
Lines 332-337
Link Here
|
332 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
345 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
333 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
346 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
334 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
347 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
348 |
$('#add-group-modal-ft_local_float_group').prop('checked', false); |
335 |
if ( parent_id ) { |
349 |
if ( parent_id ) { |
336 |
$('#root-group-features-add').hide(); |
350 |
$('#root-group-features-add').hide(); |
337 |
} else { |
351 |
} else { |
Lines 341-362
Link Here
|
341 |
|
355 |
|
342 |
} |
356 |
} |
343 |
|
357 |
|
344 |
function edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group ) { |
358 |
function edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_local_float_group ) { |
345 |
$('#edit-group-modal-id').val( id ); |
359 |
$('#edit-group-modal-id').val( id ); |
346 |
$('#edit-group-modal-title').val( title ); |
360 |
$('#edit-group-modal-title').val( title ); |
347 |
$('#edit-group-modal-description').val( description ); |
361 |
$('#edit-group-modal-description').val( description ); |
348 |
|
362 |
console.log(ft_local_float_group); |
349 |
if ( parent_id ) { |
363 |
if ( parent_id ) { |
350 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
364 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
351 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
365 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
352 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
366 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
353 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
367 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
368 |
$('#edit-group-modal-ft_local_float_group').prop('checked', false); |
354 |
$('#root-group-features-edit').hide(); |
369 |
$('#root-group-features-edit').hide(); |
355 |
} else { |
370 |
} else { |
356 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
371 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
357 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
372 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
358 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
373 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
359 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
374 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
|
|
375 |
$('#edit-group-modal-ft_local_float_group').prop('checked', ft_local_float_group ? true : false ); |
360 |
$('#root-group-features-edit').show(); |
376 |
$('#root-group-features-edit').show(); |
361 |
} |
377 |
} |
362 |
|
378 |
|
Lines 412-417
Link Here
|
412 |
[% IF group.ft_local_hold_group %] |
428 |
[% IF group.ft_local_hold_group %] |
413 |
<li>Is local hold group</li> |
429 |
<li>Is local hold group</li> |
414 |
[% END %] |
430 |
[% END %] |
|
|
431 |
[% IF group.ft_local_float_group %] |
432 |
<li>Is local float group</li> |
433 |
[% END %] |
415 |
</ul> |
434 |
</ul> |
416 |
[% END %] |
435 |
[% END %] |
417 |
</td> |
436 |
</td> |
Lines 429-435
Link Here
|
429 |
</li> |
448 |
</li> |
430 |
|
449 |
|
431 |
<li> |
450 |
<li> |
432 |
<a class="edit-group" id="edit-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-parent-id="[% group.parent_id | html %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]" data-group-ft_local_hold_group="[% group.ft_local_hold_group | html %]" > |
451 |
<a class="edit-group" id="edit-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-parent-id="[% group.parent_id | html %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]" data-group-ft_local_hold_group="[% group.ft_local_hold_group | html %]" data-group-ft_local_float_group="[% group.ft_local_float_group | html %]" > |
433 |
<i class="fa fa-pencil"></i> Edit |
452 |
<i class="fa fa-pencil"></i> Edit |
434 |
</a> |
453 |
</a> |
435 |
</li> |
454 |
</li> |