diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-09-19 23:45:16 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-09-19 23:45:16 (GMT) |
commit | be89d5f1957d159df4289494c7cab9722e8dc9a5 (patch) | |
tree | 05891bad7bbe320090d01e0715a1e3cd4bb774de | |
parent | 59984c7553efdd0bb27eb932cecc07609c112245 (diff) |
renamed listdropboxes to listshows
loading show list
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | index.html | 25 | ||||
-rwxr-xr-x | listshows.cgi (renamed from listdrobpoxes.cgi) | 0 |
3 files changed, 19 insertions, 8 deletions
@@ -31,7 +31,7 @@ add the following to the virtualhost config: Include /etc/rivendell/apache.conf - <Location /listdrobpoxes.cgi> + <Location /listshows.cgi> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders @@ -42,6 +42,17 @@ $('#alertbox').html('<div class="alert alert-info"><a class="close" data-dismiss="alert" href="#">×</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>'); } + function updateShowsList(data, status, req) { + alert(data); + } + + var shows_list = []; + function app_shows_init() { + shows_list = []; + data = { LOGIN_NAME: username, PASSWORD: token }; + $.post("/listshows.cgi", data, updateShowsList, "xml") + } + function selectApp(app) { switch(app) { case "musicpools": @@ -56,6 +67,7 @@ $('#app-musicpools').hide(); $('#nav-btn-musicpools').removeClass('active'); app = 'shows'; + app_shows_init(); } sessionStorage.setItem("app", app); } @@ -178,8 +190,7 @@ <div class="span10"> <form class="well form-inline"> <label class="control-label" for="select-dropbox"><h3>Sendung auswählen</h3></label> - <select id="select-dropbox"> - <option>Democracy Now!</option> + <select id="show-selector"> </select> </form> </div> @@ -192,22 +203,22 @@ </div> <div class="row-fluid"> <div class="span12"> - <h2 id="show-title">Democracy Now!</h2> + <h2 id="show-title"></h2> </div> </div> <div class="row-fluid" id="show-details"> <div class="span2"> </div> <div class="span2"> - <strong>Tag:</strong> <span id="show-day">Dienstag</span> + <strong>Tag:</strong> <span id="show-dow"></span> </div> <div class="span2"> - <strong>Rythmus:</strong> <span id="show-rhythm">wöchentlich</span> + <strong>Rythmus:</strong> <span id="show-rhythm"></span> </div> <div class="span2"> - <strong>Startzeit:</strong> <span id="show-starttime">00:00</span> + <strong>Startzeit:</strong> <span id="show-starttime"></span> </div> <div class="span2"> - <strong>Dauer:</strong> <span id="show-length">30 Minuten</span> + <strong>Dauer:</strong> <span id="show-length"></span> </div> <div class="span2"> </div> </div> diff --git a/listdrobpoxes.cgi b/listshows.cgi index 7ef0bcf..7ef0bcf 100755 --- a/listdrobpoxes.cgi +++ b/listshows.cgi |