problem display none for adding tag form

This commit is contained in:
Cayo Puigdefabregas 2022-02-18 11:18:54 +01:00
parent 8b27b18fc1
commit a2b074e707
3 changed files with 8 additions and 2 deletions

View File

@ -51,6 +51,7 @@ function deviceSelect() {
$("#datawipeModal .btn-primary").show();
$("#addingTagModal .pol").hide();
$("#addingTagModal .btn-primary").show();
}
}
@ -64,6 +65,11 @@ function removeTag() {
}
}
function addTag() {
deviceSelect();
$("#addingTagModal").click();
}
function newTrade(action) {
var title = "Trade "
var user_to = $("#user_to").data("email");

View File

@ -24,7 +24,7 @@
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<input type="submit" class="btn btn-primary d-none" value="Save changes" />
<input type="submit" class="btn btn-primary" style="display: none;" value="Save changes" />
</div>
</form>

View File

@ -198,7 +198,7 @@
</button>
<ul class="dropdown-menu" aria-labelledby="btnTags">
<li>
<a href="javascript:void()" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#addingTagModal">
<a href="javascript:addTag()" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#addingTagModal">
<i class="bi bi-plus"></i>
Add Tag to selected Devices
</a>