problem display none for adding tag form
This commit is contained in:
parent
8b27b18fc1
commit
a2b074e707
|
@ -51,6 +51,7 @@ function deviceSelect() {
|
||||||
$("#datawipeModal .btn-primary").show();
|
$("#datawipeModal .btn-primary").show();
|
||||||
|
|
||||||
$("#addingTagModal .pol").hide();
|
$("#addingTagModal .pol").hide();
|
||||||
|
$("#addingTagModal .btn-primary").show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +65,11 @@ function removeTag() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function addTag() {
|
||||||
|
deviceSelect();
|
||||||
|
$("#addingTagModal").click();
|
||||||
|
}
|
||||||
|
|
||||||
function newTrade(action) {
|
function newTrade(action) {
|
||||||
var title = "Trade "
|
var title = "Trade "
|
||||||
var user_to = $("#user_to").data("email");
|
var user_to = $("#user_to").data("email");
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
<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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" aria-labelledby="btnTags">
|
<ul class="dropdown-menu" aria-labelledby="btnTags">
|
||||||
<li>
|
<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>
|
<i class="bi bi-plus"></i>
|
||||||
Add Tag to selected Devices
|
Add Tag to selected Devices
|
||||||
</a>
|
</a>
|
||||||
|
|
Reference in a new issue