initial commit
This commit is contained in:
17
static/vendor/common/common.js
vendored
Normal file
17
static/vendor/common/common.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Tooltip and Popover
|
||||
(function($) {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
$('[data-toggle="popover"]').popover();
|
||||
})(jQuery);
|
||||
|
||||
// Tabs
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
$(this).parents('.nav-tabs').find('.active').removeClass('active');
|
||||
$(this).parents('.nav-pills').find('.active').removeClass('active');
|
||||
$(this).addClass('active').parent().addClass('active');
|
||||
});
|
||||
|
||||
// Bootstrap Datepicker
|
||||
if (typeof($.fn.datepicker) != 'undefined') {
|
||||
$.fn.bootstrapDP = $.fn.datepicker.noConflict();
|
||||
}
|
Reference in New Issue
Block a user