Make select all checkbox on users list work with turbo
This commit is contained in:
parent
4f2789c73c
commit
6d49bc6ebb
3 changed files with 35 additions and 4 deletions
|
@ -1,5 +1,11 @@
|
|||
//= require leaflet.locatecontrol/src/L.Control.Locate
|
||||
|
||||
(function () {
|
||||
$(document).on("change", "#user_all", function () {
|
||||
$("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked"));
|
||||
});
|
||||
}());
|
||||
|
||||
$(document).ready(function () {
|
||||
var defaultHomeZoom = 12;
|
||||
var map, marker, deleted_lat, deleted_lon;
|
||||
|
@ -200,10 +206,6 @@ $(document).ready(function () {
|
|||
enableAuth();
|
||||
}
|
||||
|
||||
$("#user_all").change(function () {
|
||||
$("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked"));
|
||||
});
|
||||
|
||||
$("#content.user_confirm").each(function () {
|
||||
$(this).hide();
|
||||
$(this).find("#confirm").submit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue