- Timestamp:
- Oct 30, 2014 12:29:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/views/layout/admin/footer.php
r338 r343 22 22 23 23 <!-- page specific plugin scripts --> 24 25 <script src="<?php echo $base_url;?>assets/js/jquery.dataTables.min.js"></script>26 <script src="<?php echo $base_url;?>assets/js/jquery.dataTables.bootstrap.js"></script>27 24 28 25 <!--[if lte IE 8]> … … 135 132 }); 136 133 137 $('[data-rel=tooltip]').tooltip();138 $('[data-rel=popover]').popover();139 140 jQuery(function($) {141 var oTable1 = $('#sample-table-2').dataTable( {142 "aoColumns": [143 { "bSortable": false },144 null, null,null, null, null,145 { "bSortable": false }146 ] } );147 148 149 $('table th input:checkbox').on('click' , function(){150 var that = this;151 $(this).closest('table').find('tr > td:first-child input:checkbox')152 .each(function(){153 this.checked = that.checked;154 $(this).closest('tr').toggleClass('selected');155 });156 157 });158 159 160 $('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});161 function tooltip_placement(context, source) {162 var $source = $(source);163 var $parent = $source.closest('table')164 var off1 = $parent.offset();165 var w1 = $parent.width();166 167 var off2 = $source.offset();168 var w2 = $source.width();169 170 if( parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2) ) return 'right';171 return 'left';172 }173 });174 134 function show_box(id) { 175 135 jQuery('.widget-box.visible').removeClass('visible');
Note: See TracChangeset
for help on using the changeset viewer.