mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed error with showing channel-url and popstatelistener not being updated to the current view
This commit is contained in:
@@ -19,8 +19,8 @@
|
||||
<a href="/" class="brand-logo brand-logo-navigate hide-on-med-and-down noselect">
|
||||
<img id="zicon" src="static/images/squareicon_small.png" alt="zöff" title="Zöff" />
|
||||
</a>
|
||||
<div class="brand-logo brand-logo-navigate truncate zbrand">
|
||||
<a href="/" class="hide-on-large-only">Zöff</a>
|
||||
<div class="brand-logo truncate zbrand">
|
||||
<a href="/" class="hide-on-large-only brand-logo-navigate">Zöff</a>
|
||||
<span class="hide-on-large-only">/</span>
|
||||
<span id="chan" class="chan clickable" title="Show big URL"><?php echo(ucfirst($list));?></span>
|
||||
</div>
|
||||
|
||||
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -54,6 +54,11 @@ $().ready(function(){init();});
|
||||
|
||||
function init(){
|
||||
|
||||
|
||||
window.onpopstate = function(e){
|
||||
onepage_load();
|
||||
}
|
||||
|
||||
chan = $("#chan").html();
|
||||
if(window.location.hostname == "zoff.no") add = "https://zoff.no";
|
||||
else add = "localhost";
|
||||
@@ -389,9 +394,6 @@ $(document).on("click", ".brand-logo-navigate", function(e){
|
||||
onepage_load();
|
||||
});
|
||||
|
||||
window.onpopstate = function(e){
|
||||
onepage_load();
|
||||
}
|
||||
|
||||
function onepage_load(){
|
||||
|
||||
|
||||
@@ -256,16 +256,6 @@ var Nochan = {
|
||||
|
||||
}
|
||||
|
||||
window.onpopstate = function(e){
|
||||
var url_split = window.location.href.split("/");
|
||||
|
||||
if(url_split[3] != "" && url_split[3].substring(0,1) != "#"){
|
||||
Nochan.to_channel(url_split[3], true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
String.prototype.capitalizeFirstLetter = function() {
|
||||
return this.charAt(0).toUpperCase() + this.slice(1);
|
||||
}
|
||||
@@ -273,6 +263,16 @@ String.prototype.capitalizeFirstLetter = function() {
|
||||
$().ready(initfp);
|
||||
|
||||
function initfp(){
|
||||
|
||||
|
||||
window.onpopstate = function(e){
|
||||
var url_split = window.location.href.split("/");
|
||||
|
||||
if(url_split[3] != "" && url_split[3].substring(0,1) != "#"){
|
||||
Nochan.to_channel(url_split[3], true);
|
||||
}
|
||||
}
|
||||
|
||||
channel_list = $("#channel-list-container").html();
|
||||
|
||||
var connection_options = {
|
||||
|
||||
Reference in New Issue
Block a user