Ignore:
Timestamp:
Nov 3, 2014 9:51:10 AM (11 years ago)
Author:
quyenla
Message:

collaborator order sourcecode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/views/collaborator/index.php

    r366 r371  
    3333            return false;
    3434        });
     35       
     36       
     37$( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) {
     38            var current_class=$( this ).attr('class');
     39            $(".sorting_desc").attr("class","sorting");
     40            $(".sorting_asc").attr("class","sorting");
     41     
     42            if(current_class=='sorting')
     43            {
     44                $(this).attr("class","sorting_desc");
     45            }
     46            else
     47            {
     48                if(current_class=='sorting_desc')
     49                {
     50                    $(this).attr("class","sorting_asc");
     51                }
     52                else
     53                    {
     54                    if(current_class=='sorting_asc')
     55                    {
     56                        $(this).attr("class","sorting");
     57                    }
     58                }
     59            }
     60            $("#sorting_field").val($(this).attr("id"));
     61            $("#sorting_order").val($(this).attr("class"));
     62            filter();
     63        });
     64
     65
    3566    }
    3667
Note: See TracChangeset for help on using the changeset viewer.