Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Made time work on scheduling modal
Browse files Browse the repository at this point in the history
  • Loading branch information
connor642 committed Apr 16, 2018
1 parent f2255a6 commit 886b973
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sustainer/schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function formatRepoSelection (repo) {
<select id=\"playlist-id\" name=\"playlist-id\" data-width=\"100%\">
".$playlistOptions."
</select>
<p class=\"help-block\">Select the playlist to be scheduled for <hh>.</p>
<p class=\"help-block\">Select the playlist to be scheduled for <span class='schedule-time'></span>.</p>
</div>
</div>
</fieldset>
Expand All @@ -176,7 +176,7 @@ function formatRepoSelection (repo) {
<div class=\"controls\">
<select id=\"prerecord-id\" name=\"prerecord-id\" data-width=\"100%\">
</select>
<p class=\"help-block\">Select the prerecorded content to be played out at <hh>.</p>
<p class=\"help-block\">Select the prerecorded content to be played out at <span class='schedule-time'></span>.</p>
</div>
</div>
</fieldset>
Expand All @@ -189,6 +189,11 @@ function formatRepoSelection (repo) {
boxes.dblclick(function(){
$('#update-modal').modal('show');
$('.update-id').val($(this).attr('id'));
splitTimeslot = $(this).attr('id').split('-');
days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
day = (days[splitTimeslot[1]]);
time = splitTimeslot[2] + ':00';
$('.schedule-time').text(day + ' ' + time);
$.ajax({
url: '".LINK_ABS."ajax/get-slot-status.php',
data: { updateid: $('.update-id').val() },
Expand Down

0 comments on commit 886b973

Please sign in to comment.