mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 23:45:45 +01:00
fixed bootbox3 issue in categories
This commit is contained in:
@@ -153,3 +153,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fa-icons .col-md-3 {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
@@ -29,10 +29,12 @@ function select_icon(el) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery('.bootbox .span3').on('click', function() {
|
setTimeout(function() { //bootbox was rewritten for BS3 and I had to add this timeout for the previous code to work. TODO: to look into
|
||||||
jQuery('.bootbox .selected').removeClass('selected');
|
jQuery('.bootbox .col-md-3').on('click', function() {
|
||||||
jQuery(this).addClass('selected');
|
jQuery('.bootbox .selected').removeClass('selected');
|
||||||
});
|
jQuery(this).addClass('selected');
|
||||||
|
});
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -46,7 +48,7 @@ jQuery('.blockclass').each(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//DRY Failure. this needs to go into an ajaxify onready style fn. Currently is copy pasted into every single function so after ACP is off the ground fix asap
|
//DRY Failure. this needs to go into an ajaxify onready style fn. Currently is copy pasted into every single function so after ACP is off the ground fix asap
|
||||||
(function() {
|
(function() {
|
||||||
jQuery('document').ready(function() {
|
jQuery('document').ready(function() {
|
||||||
var url = window.location.href,
|
var url = window.location.href,
|
||||||
@@ -99,5 +101,5 @@ jQuery('.blockclass').each(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}());
|
}());
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user