mirror of https://github.com/ColorlibHQ/AdminLTE
Fixed issue #328
parent
ba23ea0a11
commit
ffe1d9ced5
|
@ -180,7 +180,7 @@ $(function () {
|
||||||
|
|
||||||
//Activate direct chat widget
|
//Activate direct chat widget
|
||||||
if (o.directChat.enable) {
|
if (o.directChat.enable) {
|
||||||
$(o.directChat.contactToggleSelector).click(function () {
|
$(o.directChat.contactToggleSelector).on('click', function () {
|
||||||
var box = $(this).parents('.direct-chat').first();
|
var box = $(this).parents('.direct-chat').first();
|
||||||
box.toggleClass('direct-chat-contacts-open');
|
box.toggleClass('direct-chat-contacts-open');
|
||||||
});
|
});
|
||||||
|
@ -192,7 +192,7 @@ $(function () {
|
||||||
*/
|
*/
|
||||||
$('.btn-group[data-toggle="btn-toggle"]').each(function () {
|
$('.btn-group[data-toggle="btn-toggle"]').each(function () {
|
||||||
var group = $(this);
|
var group = $(this);
|
||||||
$(this).find(".btn").click(function (e) {
|
$(this).find(".btn").on('click', function (e) {
|
||||||
group.find(".btn.active").removeClass("active");
|
group.find(".btn.active").removeClass("active");
|
||||||
$(this).addClass("active");
|
$(this).addClass("active");
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
@ -282,7 +282,7 @@ function _init() {
|
||||||
var screenSizes = this.options.screenSizes;
|
var screenSizes = this.options.screenSizes;
|
||||||
|
|
||||||
//Enable sidebar toggle
|
//Enable sidebar toggle
|
||||||
$(toggleBtn).click(function (e) {
|
$(toggleBtn).on('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
//Enable sidebar push menu
|
//Enable sidebar push menu
|
||||||
|
@ -320,7 +320,7 @@ function _init() {
|
||||||
$.AdminLTE.tree = function (menu) {
|
$.AdminLTE.tree = function (menu) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
$("li a", $(menu)).click(function (e) {
|
$("li a", $(menu)).on('click', function (e) {
|
||||||
//Get the clicked link and the next element
|
//Get the clicked link and the next element
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
var checkElement = $this.next();
|
var checkElement = $this.next();
|
||||||
|
@ -383,7 +383,7 @@ function _init() {
|
||||||
var btn = $(o.toggleBtnSelector);
|
var btn = $(o.toggleBtnSelector);
|
||||||
|
|
||||||
//Listen to the click event
|
//Listen to the click event
|
||||||
btn.click(function (e) {
|
btn.on('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
//If the sidebar is not open
|
//If the sidebar is not open
|
||||||
if (!sidebar.hasClass('control-sidebar-open')
|
if (!sidebar.hasClass('control-sidebar-open')
|
||||||
|
@ -543,7 +543,7 @@ function _init() {
|
||||||
var rBtn = box.find(settings.trigger).first();
|
var rBtn = box.find(settings.trigger).first();
|
||||||
|
|
||||||
//On trigger click
|
//On trigger click
|
||||||
rBtn.click(function (e) {
|
rBtn.on('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
//Add loading overlay
|
//Add loading overlay
|
||||||
start(box);
|
start(box);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue