Changed id to class

This commit is contained in:
BNoiZe
2013-12-06 18:39:55 +01:00
parent 56f8ca47dc
commit ecb9fe9d5c
6 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
$(document).ready(function() { $(document).ready(function() {
$('#historyback').click(function() { $('#historyback, .historyback').click(function() {
parent.history.back(); parent.history.back();
return false; return false;
}); });

View File

@@ -1,6 +1,6 @@
<tr> <tr>
<td colspan="2" style="text-align:right;"> <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']}" /> <input type="submit" value="{$lng['panel']['save']}" />
</td> </td>
</tr> </tr>

View File

@@ -3,7 +3,7 @@
<img src="templates/{$theme}/assets/img/{$image}" alt="{$title}" />&nbsp;<strong>{$title}</strong> <img src="templates/{$theme}/assets/img/{$image}" alt="{$title}" />&nbsp;<strong>{$title}</strong>
</td> </td>
<td style="text-align:right;"> <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']}" /> <input type="submit" value="{$lng['panel']['save']}" />
</td> </td>
</tr> </tr>

View File

@@ -20,7 +20,7 @@ $(document).ready(function() {
return false; return false;
}); });
$('#historyback').click(function() { $('#historyback, .historyback').click(function() {
parent.history.back(); parent.history.back();
return false; return false;
}); });

View File

@@ -1,7 +1,7 @@
<tfoot> <tfoot>
<tr> <tr>
<td colspan="2" style="text-align:right;"> <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']}" /> <input type="submit" value="{$lng['panel']['save']}" />
</td> </td>
</tr> </tr>

View File

@@ -3,7 +3,7 @@
{$title} {$title}
</th> </th>
<th style="text-align:right;"> <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']}" /> <input type="submit" value="{$lng['panel']['save']}" />
</th> </th>
</tr> </tr>