-
Notifications
You must be signed in to change notification settings - Fork 33
/
custom.js
57 lines (38 loc) · 1.17 KB
/
custom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// icheck line blue and green functions
$('input[type="checkbox"].line-blue, input[type="radio"].line-blue').each(function(){
var self = $(this),
label = self.next(),
label_text = label.text();
label.remove();
self.iCheck({
checkboxClass: 'icheckbox_line-blue',
radioClass: 'iradio_line-blue',
insert: '<div class="icheck_line-icon"></div>' + label_text
});
});
$('input[type="checkbox"].line-green, input[type="radio"].line-green').each(function(){
var self = $(this),
label = self.next(),
label_text = label.text();
label.remove();
self.iCheck({
checkboxClass: 'icheckbox_line-green',
radioClass: 'iradio_line-green',
insert: '<div class="icheck_line-icon"></div>' + label_text
});
});
$(document).ready(function() {
$.fn.editable.defaults.ajaxOptions = {type: "GET"};
$('.editable').editable();
$('#data-table').DataTable( {
dom: 'T<"clear">lfrtip'
,aLengthMenu:[10,50,100,200,500,1000]
} );
$('.input-group.date').datepicker({
format: "yyyy-mm-dd",
autoclose:true,
todayHighlight: true
});
$("abbr.timeago").timeago();
$(".masked").inputmask();
});