Lines 237-248
Link Here
|
237 |
clickableNodeNames: true, |
237 |
clickableNodeNames: true, |
238 |
}); |
238 |
}); |
239 |
|
239 |
|
240 |
$('.add-group').on('click', function() { |
240 |
$('.add-group').on('click', function(e) { |
|
|
241 |
e.preventDefault(); |
241 |
var id = $(this).data('groupId'); |
242 |
var id = $(this).data('groupId'); |
242 |
add_group( id ); |
243 |
add_group( id ); |
243 |
}); |
244 |
}); |
244 |
|
245 |
|
245 |
$('.edit-group').on('click', function() { |
246 |
$('.edit-group').on('click', function(e) { |
|
|
247 |
e.preventDefault(); |
246 |
var id = $(this).data('groupId'); |
248 |
var id = $(this).data('groupId'); |
247 |
var parent_id = $(this).data('groupParentId'); |
249 |
var parent_id = $(this).data('groupParentId'); |
248 |
var title = $(this).data('groupTitle'); |
250 |
var title = $(this).data('groupTitle'); |
Lines 253-265
Link Here
|
253 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff ); |
255 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff ); |
254 |
}); |
256 |
}); |
255 |
|
257 |
|
256 |
$('.delete-group').on('click', function() { |
258 |
$('.delete-group').on('click', function(e) { |
|
|
259 |
e.preventDefault(); |
257 |
var id = $(this).data('groupId'); |
260 |
var id = $(this).data('groupId'); |
258 |
var title = $(this).data('groupTitle'); |
261 |
var title = $(this).data('groupTitle'); |
259 |
delete_group( id, title ); |
262 |
delete_group( id, title ); |
260 |
}); |
263 |
}); |
261 |
|
264 |
|
262 |
$('.remove-library').on('click', function() { |
265 |
$('.remove-library').on('click', function(e) { |
|
|
266 |
e.preventDefault(); |
263 |
var id = $(this).data('groupId'); |
267 |
var id = $(this).data('groupId'); |
264 |
var library = $(this).data('groupLibrary'); |
268 |
var library = $(this).data('groupLibrary'); |
265 |
var parent_title = $(this).data('groupParentTitle'); |
269 |
var parent_title = $(this).data('groupParentTitle'); |
266 |
- |
|
|