Fix checkbox toggling, add nav tabs, fix broken domain quota when adding a new domain
This commit is contained in:
@@ -2,7 +2,7 @@ $(document).ready(function() {
|
||||
// add.php
|
||||
// Get max. possible quota for a domain when domain field changes
|
||||
$('#addSelectDomain').on('change', function() {
|
||||
$.get("/api/v1/domain/" + this.value, function(data){
|
||||
$.get("/api/v1/get/domain/" + this.value, function(data){
|
||||
var result = jQuery.parseJSON( data );
|
||||
max_new_mailbox_quota = ( result.max_new_mailbox_quota / 1048576);
|
||||
if (max_new_mailbox_quota != '0') {
|
||||
|
1
data/web/js/bootstrap-select.min.js
vendored
1
data/web/js/bootstrap-select.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -329,9 +329,14 @@ $(document).ready(function() {
|
||||
});
|
||||
}
|
||||
});
|
||||
$("tr").on('click',function(event) {
|
||||
var checkbox = $(this).find(':checkbox');
|
||||
checkbox.trigger('click');
|
||||
$("tr").on('click',function(e) {
|
||||
if (e.target.type == "checkbox") {
|
||||
e.stopPropagation();
|
||||
} else {
|
||||
var $checkbox = $(this).find(':checkbox');
|
||||
var checkbox = $(this).find(':checkbox');
|
||||
checkbox.trigger('click');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user