Subversion Repositories SmartDukaan

Rev

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

Rev 28023 Rev 28049
Line 94... Line 94...
94
                <th>OutLet Reject</th>
94
                <th>OutLet Reject</th>
95
            </tr>
95
            </tr>
96
            </thead>
96
            </thead>
97
            <tbody>
97
            <tbody>
98
                #foreach($pob in $partnerOnBoardingPanel )
98
                #foreach($pob in $partnerOnBoardingPanel )
99
                <tr id="trow2">
99
                <tr>
100
                   #parse("partner-onboarding-row-index.vm")
100
                   #parse("partner-onboarding-row-index.vm")
101
 
101
 
102
                </tr>
102
                </tr>
103
                #end
103
                #end
104
 
104
 
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
    
-
 
130
 
-
 
131
    $(document).ready(function () {
114
    $(document).ready(function () {
132
    
115
    
133
    
116
    
134
		
117
		
135
      var dtable = $('#example').DataTable({
118
      var dtable = $('#example').DataTable({
Line 153... Line 136...
153
                  { "targets": 5, "orderDataType": "dom-text", "type": "string" },
136
                  { "targets": 5, "orderDataType": "dom-text", "type": "string" },
154
                  { "targets": 6, "orderDataType": "dom-text", "type": "string" },
137
                  { "targets": 6, "orderDataType": "dom-text", "type": "string" },
155
                  { "targets": 7, "orderDataType": "dom-text", "type": "string" },
138
                  { "targets": 7, "orderDataType": "dom-text", "type": "string" },
156
                   { "targets": 8, "orderDataType": "dom-text", "type": "string" },
139
                   { "targets": 8, "orderDataType": "dom-text", "type": "string" },
157
                  { "targets": 9, "orderDataType": "dom-text", "type": "string" },  
140
                  { "targets": 9, "orderDataType": "dom-text", "type": "string" },  
158
                  { "targets": 10, "orderDataType": "dom-text-numeric"},
141
                  { "targets": 10, "orderDataType": "dom-text-numeric", "type":"number"},
159
                  { "targets": 11, "orderDataType": "dom-text", "type": "string" },
142
                  { "targets": 11, "orderDataType": "dom-text", "type": "string" },
160
                  { "targets": 12, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
143
                  { "targets": 12, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
161
                  { "targets": 13, "orderDataType": "dom-text", "type": "string" },
144
                  { "targets": 13, "orderDataType": "dom-text", "type": "string" },
162
                  { "targets": 14, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
145
                  { "targets": 14, "orderDataType": "date-dd-mmm-yyyy", "type": "string" },
163
                    { "targets": 16, "orderDataType": "dom-text", "type": "string" },
146
                    { "targets": 16, "orderDataType": "dom-text", "type": "string" },