Implementing the whole template system using Smarty. This commit includes movements of ROOT/js, ROOT/images, etc. to theme specific directories like templates/<THEME>/. If you are attemping to use your own templates you won't need to modify Froxlor's core files. This commit may require additional work.
Signed-off-by: Arnold Bechtoldt <mail@arnoldbechtoldt.com>
This commit is contained in:
25
templates/Classic/js/main.js
Normal file
25
templates/Classic/js/main.js
Normal file
@@ -0,0 +1,25 @@
|
||||
$(document).ready(function() {
|
||||
// make rel="external" links open in a new window
|
||||
$("a[rel='external']").attr('target', '_blank');
|
||||
|
||||
// set focus on username-field if on loginpage
|
||||
if ($(".loginpage").length != 0) {
|
||||
$("#loginname").focus();
|
||||
}
|
||||
|
||||
// Auto-select next field in configfile - wizard
|
||||
$('#config_distribution').change(function (){
|
||||
window.location.href=window.location.href + '&distribution=' + this.options[ this.selectedIndex ].value;
|
||||
});
|
||||
$('#config_service').change(function (){
|
||||
window.location.href=window.location.href + '&service=' + this.options[ this.selectedIndex ].value;
|
||||
});
|
||||
$('#config_daemon').change(function (){
|
||||
window.location.href=window.location.href + '&daemon=' + this.options[ this.selectedIndex ].value;
|
||||
});
|
||||
|
||||
// Back-button
|
||||
$('#yesnobutton').click(function() {
|
||||
history.back();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user