Subversion Repositories SmartDukaan

Rev

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

Rev 28022 Rev 28023
Line 109... Line 109...
109
</section>
109
</section>
110
 
110
 
111
 
111
 
112
<script type="text/javascript">
112
<script type="text/javascript">
113
 
113
 
-
 
114
  
-
 
115
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
-
 
116
      {
-
 
117
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
118
        return $('input', td).val();
-
 
119
    } );
-
 
120
  }
-
 
121
 
-
 
122
/* Create an array with the values of all the input boxes in a column, parsed as numbers */
-
 
123
$.fn.dataTable.ext.order['dom-text-numeric'] = function  ( settings, col )
-
 
124
{
-
 
125
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
126
    return $('input', td).val() * 1;
-
 
127
    } );
-
 
128
}  
-
 
129
    
114
 
130
 
115
    $(document).ready(function () {
131
    $(document).ready(function () {
116
    
132
    
117
    
133
    
118
		
134
		
Line 159... Line 175...
159
                  { "targets": 28, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
175
                  { "targets": 28, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
160
                { "targets": 29, "orderDataType": "dom-text", "type": "string" }
176
                { "targets": 29, "orderDataType": "dom-text", "type": "string" }
161
                
177
                
162
                        ],
178
                        ],
163
                        
179
                        
164
                      
-
 
165
        
-
 
166
                 
-
 
167
                   
-
 
168
         
-
 
169
                        
-
 
170
                });
180
                });
171
        
181
        
172
 
-
 
173
  
-
 
174
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
-
 
175
      {
-
 
176
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
177
        return $('input', td).val();
-
 
178
    } );
-
 
179
  }
-
 
180
 
-
 
181
/* Create an array with the values of all the input boxes in a column, parsed as numbers */
-
 
182
$.fn.dataTable.ext.order['dom-text-numeric'] = function  ( settings, col )
-
 
183
{
-
 
184
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
185
    return $('input', td).val() * 1;
-
 
186
    } );
-
 
187
}  
-
 
188
    
-
 
189
 
-
 
190
 
-
 
191
 
-
 
192
    });
182
    });
193
</script>
183
</script>
194
 
184
 
195
 
185
 
196
<style>
186
<style>