Charactercount now dynamic

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-09 18:41:52 +01:00
parent 4eec51e271
commit 0ccdda4815
3 changed files with 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -432,6 +432,10 @@ function initfp(){
//Frontpage.start_snowfall(); //Frontpage.start_snowfall();
} }
if(Helper.mobilecheck()){
$('input#searchFrontpage').characterCounter();
}
window['__onGCastApiAvailable'] = function(loaded, errorInfo) { window['__onGCastApiAvailable'] = function(loaded, errorInfo) {
if (loaded) { if (loaded) {
chromecastReady = true; chromecastReady = true;

View File

@@ -237,7 +237,9 @@ function init(){
//} //}
if(Helper.mobilecheck()) Mobile_remote.initiate_volume(); if(Helper.mobilecheck()) Mobile_remote.initiate_volume();
else {
$('input#chan_description').characterCounter();
}
setup_admin_listener(); setup_admin_listener();
setup_list_listener(); setup_list_listener();