Changed id to class
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
$(document).ready(function() {
|
||||
$('#historyback').click(function() {
|
||||
$('#historyback, .historyback').click(function() {
|
||||
parent.history.back();
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:right;">
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" id="historyback" />
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" class="historyback" />
|
||||
<input type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<img src="templates/{$theme}/assets/img/{$image}" alt="{$title}" /> <strong>{$title}</strong>
|
||||
</td>
|
||||
<td style="text-align:right;">
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" id="historyback" />
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" class="historyback" />
|
||||
<input type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
2
templates/Sparkle/assets/js/main.js
vendored
2
templates/Sparkle/assets/js/main.js
vendored
@@ -20,7 +20,7 @@ $(document).ready(function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#historyback').click(function() {
|
||||
$('#historyback, .historyback').click(function() {
|
||||
parent.history.back();
|
||||
return false;
|
||||
});
|
||||
|
||||
2
templates/Sparkle/misc/form/table_end.tpl
vendored
2
templates/Sparkle/misc/form/table_end.tpl
vendored
@@ -1,7 +1,7 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:right;">
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" id="historyback" />
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" class="historyback" />
|
||||
<input type="submit" value="{$lng['panel']['save']}" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{$title}
|
||||
</th>
|
||||
<th style="text-align:right;">
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" id="historyback" />
|
||||
<input type="reset" value="{$lng['panel']['cancel']}" class="historyback" />
|
||||
<input type="submit" value="{$lng['panel']['save']}" />
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user