mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Flatta and Diman fixes
This commit is contained in:
commit
3bed87ba15
98 changed files with 5260 additions and 3031 deletions
|
@ -113,7 +113,7 @@
|
|||
<table style="display:<?php if ($v_proxy == 'off') { echo 'none';} else {echo 'block';}?>;" id="proxytable" >
|
||||
<tr>
|
||||
<td class="vst-text input-label step-left">
|
||||
<?php print __('Proxy Extentions');?>
|
||||
<?php print __('Proxy Extensions');?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -389,49 +389,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<?php insert_scripts(); ?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('#v_domain').change(function() {
|
||||
var prefix = 'www.';
|
||||
document.getElementById('v_aliases').value = prefix + document.getElementById('v_domain').value;
|
||||
});
|
||||
});
|
||||
|
||||
function WEBrandom() {
|
||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||
var string_length = 10;
|
||||
var webrandom = '';
|
||||
for (var i = 0; i < string_length; i++) {
|
||||
var rnum = Math.floor(Math.random() * chars.length);
|
||||
webrandom += chars.substr(rnum, 1);
|
||||
}
|
||||
document.v_add_web.v_stats_password.value = webrandom;
|
||||
}
|
||||
|
||||
function FTPrandom(elm) {
|
||||
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
||||
var string_length = 10;
|
||||
var ftprandomstring = '';
|
||||
for (var i = 0; i < string_length; i++) {
|
||||
var rnum = Math.floor(Math.random() * chars.length);
|
||||
ftprandomstring += chars.substr(rnum, 1);
|
||||
}
|
||||
$(elm).parents('.ftptable').find('.v-ftp-user-psw').val(ftprandomstring);
|
||||
}
|
||||
|
||||
function elementHideShow(elementToHideOrShow){
|
||||
var el = document.getElementById(elementToHideOrShow);
|
||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||
}
|
||||
|
||||
$('#vstobjects').bind('submit', function(evt) {
|
||||
$('input[disabled]').each(function(i, elm) {
|
||||
$(elm).removeAttr('disabled');
|
||||
});
|
||||
});
|
||||
|
||||
GLOBAL.FTP_USER_PREFIX = <?=json_encode($user)?>;
|
||||
GLOBAL.FTP_USER_PREPATH = <?=json_encode($v_ftp_user_prepath)?>;
|
||||
</script>
|
||||
<script src="/js/pages/add.web.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue