Skip to content

Commit

Permalink
Merge pull request #282 from hkulekci/opencart
Browse files Browse the repository at this point in the history
admin customer_form history text cleared after clicked "Add History" but...
  • Loading branch information
danielkerr committed Dec 16, 2012
2 parents 99636ce + d0cb04d commit f791e69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload/admin/view/template/sale/customer_form.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
<td><textarea name="comment" cols="40" rows="8" style="width: 99%;"></textarea></td>
</tr>
<tr>
<td colspan="2" style="text-align: right;"><a id="button-history" class="button" onclick="addHistory();"><span><?php echo $button_add_history; ?></span></a></td>
<td colspan="2" style="text-align: right;"><a id="button-history" class="button"><span><?php echo $button_add_history; ?></span></a></td>
</tr>
</table>
</div>
Expand Down Expand Up @@ -463,6 +463,7 @@ $('#button-history').bind('click', function() {
complete: function() {
$('#button-history').attr('disabled', false);
$('.attention').remove();
$('#tab-history textarea[name=\'comment\']').val('');
},
success: function(html) {
$('#history').html(html);
Expand Down

0 comments on commit f791e69

Please sign in to comment.