Changeset 742 for pro-violet-viettel/sourcecode/application/modules/admin/views/reportAsistant/indexCollaborator.php
- Timestamp:
- Feb 4, 2015 2:58:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/admin/views/reportAsistant/indexCollaborator.php
r490 r742 7 7 function init_page() 8 8 { 9 /* 10 if($('input[name="daterange"]').val() !== ""){ 11 $('#remove').click(function(){ 12 $('input[name="daterange"]').val(""); 13 filter(); 14 }); 15 }*/ 9 16 10 17 $(".ajax_paging").click(function () { … … 18 25 $("#content").html(data); 19 26 init_page(); 20 27 $('.daterangepicker').daterangepicker({ 28 format: 'DD/MM/YYYY' 29 }); 30 21 31 }, 22 32 error: function (jqXHR, textStatus, errorThrown) … … 34 44 }); 35 45 46 $(document).on('click', '.applyBtn', function(){ 47 $('#loading').css('display', 'block'); 48 $('#table_content').hide(); 49 filter(); 50 }); 51 52 $('#daterange').keyup(function (event) { 53 if (event.keyCode == '13') { 54 filter(); 55 } 56 return false; 57 }); 36 58 37 59 $( '.sorting, .sorting_desc, .sorting_asc' ).click(function( index ) { … … 105 127 function filter() 106 128 { 129 daterange = $('input[name="daterange"]').val(); 107 130 $.ajax({ 108 131 url: '<?php echo base_url();?>admin/thong_ke_cong_tac_vien/trang_ctv/<?php echo $id;?>/1', … … 113 136 // $result = jQuery.parseJSON(data); 114 137 $("#content").html(data); 115 init_page();138 116 139 $("#keyword").focus(); 117 140 $("#keyword").setCursorToTextEnd(); 118 141 $('.daterangepicker').daterangepicker({ 142 format: 'DD/MM/YYYY' 143 }); 144 $('input[name="daterange"]').val(daterange); 145 init_page(); 119 146 }, 120 147 error: function (jqXHR, textStatus, errorThrown)
Note: See TracChangeset
for help on using the changeset viewer.