Cleaning up unnessesary js code, removing inline js
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
<tr>
|
||||||
<td>{$row['domain']}
|
<td>{$row['domain']}
|
||||||
<if (isset($row['standardsubdomain']) && $row['standardsubdomain'] == $row['id'])>
|
<if (isset($row['standardsubdomain']) && $row['standardsubdomain'] == $row['id'])>
|
||||||
({$lng['admin']['stdsubdomain']})
|
({$lng['admin']['stdsubdomain']})
|
||||||
|
|||||||
4
templates/Sparkle/assets/css/main.css
vendored
4
templates/Sparkle/assets/css/main.css
vendored
@@ -542,6 +542,10 @@ table {
|
|||||||
box-shadow:0 0 0 #000!important;
|
box-shadow:0 0 0 #000!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.bradius tbody tr:hover {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
table tr.top td {
|
table tr.top td {
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|||||||
15
templates/Sparkle/assets/js/main.js
vendored
15
templates/Sparkle/assets/js/main.js
vendored
@@ -20,6 +20,7 @@ $(document).ready(function() {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Back buttons
|
||||||
$('#historyback, .historyback').click(function() {
|
$('#historyback, .historyback').click(function() {
|
||||||
parent.history.back();
|
parent.history.back();
|
||||||
return false;
|
return false;
|
||||||
@@ -84,14 +85,6 @@ $(document).ready(function() {
|
|||||||
// set focus on username-field if on loginpage
|
// set focus on username-field if on loginpage
|
||||||
$("#loginname").focus();
|
$("#loginname").focus();
|
||||||
|
|
||||||
if ($("table.bradius").length !== 0) {
|
|
||||||
$("table.bradius tbody tr").hover(function() {
|
|
||||||
$(this).css("background-color", "#f5f5f5");
|
|
||||||
}, function() {
|
|
||||||
$(this).css("background-color", "#fff");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Auto-select next field in configfile - wizard
|
// Auto-select next field in configfile - wizard
|
||||||
$('#config_distribution').change(function (){
|
$('#config_distribution').change(function (){
|
||||||
window.location.href=window.location.href + '&distribution=' + this.options[ this.selectedIndex ].value;
|
window.location.href=window.location.href + '&distribution=' + this.options[ this.selectedIndex ].value;
|
||||||
@@ -103,11 +96,7 @@ $(document).ready(function() {
|
|||||||
window.location.href=window.location.href + '&daemon=' + this.options[ this.selectedIndex ].value;
|
window.location.href=window.location.href + '&daemon=' + this.options[ this.selectedIndex ].value;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Back-button
|
// Speciallogfile popup dialog
|
||||||
$('#yesnobutton').click(function() {
|
|
||||||
history.back();
|
|
||||||
});
|
|
||||||
|
|
||||||
$('input[name=speciallogfile]').click(function () {
|
$('input[name=speciallogfile]').click(function () {
|
||||||
if($.getQueryVariable("page") == "domains" && $.getQueryVariable("action") == "edit") {
|
if($.getQueryVariable("page") == "domains" && $.getQueryVariable("action") == "edit") {
|
||||||
$speciallogdialog.dialog("open");
|
$speciallogdialog.dialog("open");
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
<tr>
|
||||||
<td><a href="http://{$row['domain']}" target="_blank">{$row['domain']}</a></td>
|
<td><a href="http://{$row['domain']}" target="_blank">{$row['domain']}</a></td>
|
||||||
<td>
|
<td>
|
||||||
<if $row['aliasdomain'] == ''>{$row['documentroot']}</if>
|
<if $row['aliasdomain'] == ''>{$row['documentroot']}</if>
|
||||||
|
|||||||
2
templates/Sparkle/misc/question_yesno.tpl
vendored
2
templates/Sparkle/misc/question_yesno.tpl
vendored
@@ -10,7 +10,7 @@ $header
|
|||||||
<input type="hidden" name="send" value="send" />
|
<input type="hidden" name="send" value="send" />
|
||||||
{$hiddenparams}
|
{$hiddenparams}
|
||||||
<input type="submit" name="submitbutton" value="{$lng['panel']['yes']}" />
|
<input type="submit" name="submitbutton" value="{$lng['panel']['yes']}" />
|
||||||
<input type="button" class="nobutton" value="{$lng['panel']['no']}" id="yesnobutton" />
|
<input type="button" class="nobutton" value="{$lng['panel']['no']}" id="historyback" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ $header
|
|||||||
<input type="hidden" name="send" value="send" />
|
<input type="hidden" name="send" value="send" />
|
||||||
{$hiddenparams}
|
{$hiddenparams}
|
||||||
<input type="submit" name="submitbutton" value="{$lng['panel']['yes']}" />
|
<input type="submit" name="submitbutton" value="{$lng['panel']['yes']}" />
|
||||||
<input type="button" class="nobutton" value="{$lng['panel']['no']}" id="yesnobutton" />
|
<input type="button" class="nobutton" value="{$lng['panel']['no']}" id="historyback" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user