// Some improvements on BackOffice orders

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9810 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2011-11-02 19:19:03 +00:00
parent 12aa189913
commit fe7dfe0460
8 changed files with 105 additions and 56 deletions
@@ -26,7 +26,8 @@
<script type="text/javascript">
$(document).ready(function() {
$('#formAdd{$table}').submit(function() {
$('#formAdd{$table}').submit(function(e) {
e.preventDefault();
var form_datas = new Object;
form_datas['liteDisplaying'] = 1;
var form_inputs = $('#formAdd{$table} input, #formAdd{$table} textarea, #formAdd{$table} button');
@@ -38,7 +39,7 @@
form_datas[this.name] = this.value;
});
$.each(form_selects, function() {
form_datas[this.name] = $(this+' option:selected').val();
form_datas[this.name] = this.options.selectedIndex;
});
$.ajax({
type: this.method,
@@ -48,10 +49,9 @@
data : form_datas,
success : function(res)
{
$('#content').html(res);
$('#fancybox-content').html(res);
}
});
return false;
});
});
</script>