Subversion Repositories SmartDukaan

Rev

Rev 5527 | Rev 23989 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5527 Rev 23988
Line 64... Line 64...
64
            url       : '/Support/bulk-order',
64
            url       : '/Support/bulk-order',
65
            data      : $('form#bulk-order').serialize(),
65
            data      : $('form#bulk-order').serialize(),
66
            success   : function(response) {
66
            success   : function(response) {
67
                if ($(response).attr('id') == 'error') {
67
                if ($(response).attr('id') == 'error') {
68
                    $('div#error').html(response);
68
                    $('div#error').html(response);
-
 
69
                    $('table#bulk-order-items tbody>tr').each(function(rowIndex, rowElement) {
-
 
70
                        // Skipping first sample row
-
 
71
                        if (rowIndex != 0) {
-
 
72
                            $(rowElement).find('input').each(function(inputIndex, inputElement) {
-
 
73
                                if ($(inputElement).attr('name').indexOf('lineItems[') > 0) {
-
 
74
                                    $(inputElement).attr('name', $(inputElement).attr('name').split('.')[1]);
-
 
75
                                }
-
 
76
                            });
-
 
77
                        }
-
 
78
                    });
69
                }
79
                }
70
                else {
80
                else {
71
                    document.write(response);
81
                    document.write(response);
72
                }
82
                }
73
            }
83
            }