Subversion Repositories SmartDukaan

Rev

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

Rev 7399 Rev 7572
Line 133... Line 133...
133
                        break;
133
                        break;
134
                    }
134
                    }
135
                }
135
                }
136
            }
136
            }
137
 
137
 
138
            $('#user-orders tr').removeClass('selected');
138
            $('#user-orders tr, #orders-without-user tr').removeClass('selected');
139
            $('#order-row-' + orderId).addClass('selected');
139
            $('#order-row-' + orderId).addClass('selected');
140
        }
140
        }
141
    });
141
    });
142
}
142
}
143
 
143
 
Line 1012... Line 1012...
1012
        },
1012
        },
1013
        error : function() {
1013
        error : function() {
1014
        	location.reload();
1014
        	location.reload();
1015
        }
1015
        }
1016
    });
1016
    });
1017
	
-
 
1018
}
1017
}
-
 
1018
 
-
 
1019
function loadOrdersByMobile(domId) {
-
 
1020
    orderTable = $('#orders-without-user').dataTable({
-
 
1021
      "aaSorting" : [ [ 1, 'desc' ] ],
-
 
1022
      "bAutoWidth": false,
-
 
1023
      "aoColumns" : [{ "sWidth": "13%" },//order id
-
 
1024
                     { "sWidth": "13%" },//Source
-
 
1025
                     { "sWidth": "26%" },//item desc
-
 
1026
                     { "sWidth": "16%" },//created
-
 
1027
                     { "sWidth": "7%" },//amount
-
 
1028
                     { "sWidth": "15%" },//status
-
 
1029
                     { "sWidth": "10%" }],//mobile no.
-
 
1030
        "fnDrawCallback": function() { truncateText(125); },
-
 
1031
        "iDisplayLength" : 10,
-
 
1032
        "sDom" : 'T<"clear">lfrtip',
-
 
1033
        "oTableTools" : {
-
 
1034
            "sSwfPath" : "swf/copy_cvs_xls_pdf.swf"
-
 
1035
        },
-
 
1036
        "aLengthMenu" : [ [ 5, 10, 20, -1 ], [ 5, 10, 20, "All" ] ]
-
 
1037
    });
-
 
1038
}
1019
1039