Subversion Repositories SmartDukaan

Rev

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

Rev 27928 Rev 28051
Line 739... Line 739...
739
 
739
 
740
function downloadNotifyDocument(documentId, cid, documentName) {
740
function downloadNotifyDocument(documentId, cid, documentName) {
741
	doAjaxGetDownload(context + "/notifyDocument/download?cid=" + cid,
741
	doAjaxGetDownload(context + "/notifyDocument/download?cid=" + cid,
742
		documentName);
742
		documentName);
743
}
743
}
-
 
744
 
-
 
745
 
-
 
746
/* Create an array with the values of all the input boxes in a column */
-
 
747
$.fn.dataTable.ext.order['dom-text'] = function  ( settings, col )
-
 
748
{
-
 
749
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
750
        return $('input', td).val();
-
 
751
    } );
-
 
752
}
-
 
753
 
-
 
754
/* Create an array with the values of all the input boxes in a column, parsed as numbers */
-
 
755
$.fn.dataTable.ext.order['dom-text-numeric'] = function  ( settings, col )
-
 
756
{
-
 
757
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
758
        return $('input', td).val() * 1;
-
 
759
    } );
-
 
760
}
-
 
761
 
-
 
762
/* Create an array with the values of all the select options in a column */
-
 
763
$.fn.dataTable.ext.order['dom-select'] = function  ( settings, col )
-
 
764
{
-
 
765
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
766
        return $('select', td).val();
-
 
767
    } );
-
 
768
}
-
 
769
 
-
 
770
/* Create an array with the values of all the checkboxes in a column */
-
 
771
$.fn.dataTable.ext.order['dom-checkbox'] = function  ( settings, col )
-
 
772
{
-
 
773
    return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {
-
 
774
        return $('input', td).prop('checked') ? '1' : '0';
-
 
775
    } );
-
 
776
}
744
777