SAAS-1017: Move top nav bar to side
Reload datatable if user clicks the browser's back button
This commit is contained in:
parent
e90fe728a2
commit
3e66363cdd
1 changed files with 8 additions and 0 deletions
|
@ -1262,6 +1262,14 @@ $(document).ready(function() {
|
||||||
}
|
}
|
||||||
$("a[href$='"+location.hash+"']").parent().addClass("selected");
|
$("a[href$='"+location.hash+"']").parent().addClass("selected");
|
||||||
|
|
||||||
|
$(window).on('hashchange', function() {
|
||||||
|
$(".media_type_selector").each(function () {
|
||||||
|
$(this).removeClass("selected");
|
||||||
|
});
|
||||||
|
$("a[href$='"+location.hash+"']").parent().addClass("selected");
|
||||||
|
oTable.fnDraw();
|
||||||
|
});
|
||||||
|
|
||||||
$(".media_type_selector").on("click", function() {
|
$(".media_type_selector").on("click", function() {
|
||||||
if (!$(this).hasClass("selected")) {
|
if (!$(this).hasClass("selected")) {
|
||||||
AIRTIME.library.selectNone();
|
AIRTIME.library.selectNone();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue