diff --git a/appinfo/app.php b/appinfo/app.php index c8963fe..8c1ba22 100755 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -23,8 +23,6 @@ * */ -OCP\App::registerAdmin( 'radio', 'settings' ); - OCP\App::addNavigationEntry( array( 'id' => 'radio', 'order' => 74, diff --git a/appinfo/routes.php b/appinfo/routes.php index ef20c69..c368069 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -8,8 +8,6 @@ /** @var $this \OCP\Route\IRouter */ $this->create('radio_index', '/') ->actionInclude('radio/index.php'); -$this->create('radio_ajax_seturl', 'ajax/seturl.php') - ->actionInclude('radio/ajax/seturl.php'); return [ 'resources' => [ diff --git a/index.php b/index.php index ca97156..cb1da9c 100755 --- a/index.php +++ b/index.php @@ -26,8 +26,6 @@ // Check if we are a user OCP\User::checkLoggedIn(); -$somesetting = OCP\Config::getSystemValue( "somesetting", '' ); OCP\App::setActiveNavigationEntry( 'radio' ); $tmpl = new OCP\Template( 'radio', 'main', 'user' ); -$tmpl->assign( 'somesetting', $somesetting ); $tmpl->printPage(); diff --git a/js/main.js b/js/main.js index f5a82dd..1a8a347 100644 --- a/js/main.js +++ b/js/main.js @@ -5,6 +5,10 @@ $(window).on('load', function(){ play_station(stationid); }); + function station_fav(stationid){ + alert("faving"); + }; + function play_station(stationid){ $.ajax({ method: "GET", @@ -23,7 +27,7 @@ $(window).on('load', function(){ $.each(data, function(i, station) { $('tbody').append('