* Add input checks
* Add connections without certificate * Fix bug with credentials update
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
a.btn-danger span {
|
||||
color: #eee;
|
||||
}
|
||||
|
||||
a.btn-danger:hover span {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
a.not-allowed {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
input.allowed {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
a.btn-disabled, a.btn-disabled:hover, a.btn-disabled:active {
|
||||
background-color: #999;
|
||||
background-image: none;
|
||||
border-color: #888;
|
||||
}
|
||||
|
||||
a.btn-disabled:hover span {
|
||||
color: #eee;
|
||||
}
|
||||
|
@@ -3,12 +3,40 @@ $(document).ready(function() {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
$('.fileinput').click(function() {
|
||||
var realinputid = '#' + $(this).attr('id').replace(/_chooser.*/, '');
|
||||
$(realinputid).click();
|
||||
if(!$(this).hasClass('btn-danger')) {
|
||||
var realinputid = '#' + $(this).attr('id').replace(/_chooser.*/, '');
|
||||
|
||||
$(realinputid).click();
|
||||
}
|
||||
});
|
||||
|
||||
$('.deletefile').click(function() {
|
||||
var chooserbtnid = '#' + $(this).attr('id').replace(/_deletebtn$/, '_chooserbtn');
|
||||
var choosertxtid = '#' + $(this).attr('id').replace(/_deletebtn$/, '_choosertxt');
|
||||
var fileinputid = '#' + $(this).attr('id').replace(/_deletebtn$/, '');
|
||||
var deleteinputid = '#' + $(this).attr('id').replace(/btn$/, '');
|
||||
|
||||
$(deleteinputid).click();
|
||||
$(chooserbtnid).toggleClass('btn-danger');
|
||||
$(chooserbtnid).toggleClass('not-allowed');
|
||||
$(choosertxtid).toggleClass('btn-danger');
|
||||
$(choosertxtid).val($(choosertxtid).hasClass('btn-danger') ? 'Removal requested' : '');
|
||||
$(fileinputid).val('');
|
||||
|
||||
if($(this).attr('id').search('_key') >= 0) {
|
||||
if($(choosertxtid).hasClass('btn-danger') != $('#crt_client_choosertxt').hasClass('btn-danger')) {
|
||||
$('#crt_client_deletebtn').click();
|
||||
}
|
||||
} else {
|
||||
if($(choosertxtid).hasClass('btn-danger') != $('#crt_client_key_choosertxt').hasClass('btn-danger')) {
|
||||
$('#crt_client_key_deletebtn').click();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('input[type="file"]').change(function() {
|
||||
var choosertxtid = '#' + $(this).attr('id') + '_choosertxt';
|
||||
|
||||
$(choosertxtid).val($(this).val());
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user