Fix entries of user table are visible if database has no tags
This commit is contained in:
		
							parent
							
								
									3c8bfc31e4
								
							
						
					
					
						commit
						3b81ea37f4
					
				|  | @ -661,8 +661,8 @@ function move_header_elements() { | |||
|         } | ||||
|     }); | ||||
|     $(".multi_selector").selectpicker(); | ||||
| 
 | ||||
|     if (! $._data($(".multi_head").get(0), "events") ) { | ||||
|     if ($(".multi_head").length) { | ||||
|         if (!$._data($(".multi_head").get(0), "events")) { | ||||
|             // Functions have to be here, otherwise the callbacks are not fired if visible columns are changed
 | ||||
|             $(".multi_head").on("click", function () { | ||||
|                 var val = $(this).data("set"); | ||||
|  | @ -689,6 +689,7 @@ function move_header_elements() { | |||
|                 ); | ||||
|             }); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     $("#user_delete_selection").click(function () { | ||||
|         $("#user-table").bootstrapTable("uncheckAll"); | ||||
|  | @ -699,8 +700,8 @@ function move_header_elements() { | |||
|     $("#select_default_language").on("change", function () { | ||||
|         selectHeader(this, "default_language"); | ||||
|     }); | ||||
| 
 | ||||
|     if (! $._data($(".check_head").get(0), "events") ) { | ||||
|     if ($(".check_head").length) { | ||||
|         if (!$._data($(".check_head").get(0), "events")) { | ||||
|             $(".check_head").on("change", function () { | ||||
|                 var val = $(this).data("set"); | ||||
|                 var name = $(this).data("name"); | ||||
|  | @ -708,7 +709,9 @@ function move_header_elements() { | |||
|                 checkboxHeader(val, name, data); | ||||
|             }); | ||||
|         } | ||||
|     if (! $._data($(".button_head").get(0), "events") ) { | ||||
|     } | ||||
|     if ($(".button_head").length) { | ||||
|         if (!$._data($(".button_head").get(0), "events")) { | ||||
|             $(".button_head").on("click", function () { | ||||
|                 var result = $('#user-table').bootstrapTable('getSelections').map(a => a.id); | ||||
|                 confirmDialog( | ||||
|  | @ -732,6 +735,7 @@ function move_header_elements() { | |||
|                 ); | ||||
|             }); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| function handleListServerResponse (data) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user