Ignore:
Timestamp:
Nov 3, 2014 1:45:13 PM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

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

    r377 r380  
    2424            return false;
    2525        });
     26                /*
     27                $('#keyword').keyup(function (event) {
     28            if (event.keyCode == '13') {
     29                filter();
     30            }
     31            return false;
     32        });*/
     33                $('#keyword').bind('input', function(){
     34                        filter();
     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        });
    2664        }
    2765       
     
    3674                                $("#content").html(data);
    3775                                init_page();
    38                                 //$("#keyword").focus();
    39                                 //$("#keyword").setCursorToTextEnd();
     76                                $("#keyword").focus();
     77                                $("#keyword").setCursorToTextEnd();
    4078
    4179                        },
Note: See TracChangeset for help on using the changeset viewer.