small updates for easier use

    • small updates for easier use

      Hi folks,

      I made some updates to the source (only 4 my use, but maybe this finds a way to updates), because I think it makes the work easier:

      1. Reseller Manage Alias:

      Source Code: /var/www/easyscp/gui/themes/default/reseller/alias.tpl

      1. {block name=BODY}
      2. <h2 class="users"><span>{$TR_MANAGE_ALIAS}</span></h2>
      3. // Kuerbis42 added this:
      4. <form action="alias_add.php" method="post" id="admin_alias_add1">
      5. <fieldset>
      6. <input type="submit" name="Submit" value="{$TR_ADD_ALIAS}" />
      7. </fieldset>
      8. </form>
      9. // End Kuerbis42
      Creates a new button at the beginning of "manage alias" - otherwise, if there are too much alias', you 've allways to scroll down



      2. Reseller Add Alias:

      Source Code: /var/www/easyscp/gui/themes/default/reseller/alias_add.tpl

      1. {block name=CUSTOM_JS}
      2. <script type="text/javascript">
      3. /* <![CDATA[ */
      4. $(document).ready(function(){
      5. // Tooltips - begin
      6. $('#dmn_help').EasySCPtooltips({ msg:"{$TR_DMN_HELP}"});
      7. // Kuerbis42 added this:
      8. document.getElementById("usraccounts").focus();
      9. // End Kuerbis42
      10. // Tooltips - end
      11. });
      12. function makeUser() {
      13. var dname = document.getElementById('reseller_alias_add').elements['ndomain_name'].value;
      14. dname = dname.toLowerCase();
      15. document.getElementById('reseller_alias_add').elements['ndomain_mpoint'].value = "/" + dname;
      16. }
      17. function setForwardReadonly(obj){
      18. if(obj.value == 1) {
      19. document.forms[0].elements['forward'].readOnly = false;
      20. document.forms[0].elements['forward_prefix'].disabled = false;
      21. } else {
      22. document.forms[0].elements['forward'].readOnly = true;
      23. document.forms[0].elements['forward'].value = '';
      24. document.forms[0].elements['forward_prefix'].disabled = true;
      25. }
      26. }
      27. /* ]]> */
      28. </script>
      29. {/block}
      Display All
      Reason: If you click to "add alias" the focus at the next window is "somewehre" - you need the mouse to enter "user account". With the additional line 12, the SELECT gets the focus an you can go on by using the keyboard. :thumbup: