Merge branch 'devel' of dev.sourcefabric.org:airtime into devel

This commit is contained in:
martin 2011-07-06 13:55:04 -04:00
commit eaba145d6d
4 changed files with 11 additions and 9 deletions

View File

@ -6,7 +6,7 @@
</dt>
<dd id="storageFolder-element" class="block-display">
<?php echo $this->element->getElement('storageFolder') ?>
<input id="storageFolder-selection" type="button" value="choose folder"></input>
<input id="storageFolder-selection" type="button" value="Choose folder"></input>
<input id="storageFolder-ok" type="button" value="Set"></input>
<?php if($this->element->getElement('storageFolder')->hasErrors()) : ?>
<ul class='errors'>
@ -23,7 +23,7 @@
</dt>
<dd id="watchedFolder-element" class="block-display">
<?php echo $this->element->getElement('watchedFolder') ?>
<input id="watchedFolder-selection" type="button" value="choose folder"></input>
<input id="watchedFolder-selection" type="button" value="Choose folder"></input>
<input id="watchedFolder-ok" type="button" value="Add"></input>
<?php if($this->element->getElement('watchedFolder')->hasErrors()) : ?>
<ul class='errors'>

View File

@ -405,8 +405,8 @@ function deleteSPL() {
url = '/Playlist/delete-active/format/json';
$.post(url, function(){
noOpenPL;
$.post(url, function(json){
noOpenPL(json);
//redraw the library list
redrawDataTablePage();
});

View File

@ -426,10 +426,12 @@ $(document).ready(function() {
$(window).resize(function(){
var windowWidth = $(this).width();
// margin on showform are 16 px on each side
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 6))/windowWidth*100);
var widthPercent = parseInt(calendarWidth)+"%";
$("#schedule_calendar").css("width", widthPercent);
$("#schedule_calendar").fullCalendar('render');
if(!$("#schedule-add-show").is(':hidden')){
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 4))/windowWidth*100);
var widthPercent = parseInt(calendarWidth)+"%";
$("#schedule_calendar").css("width", widthPercent);
$("#schedule_calendar").fullCalendar('render');
}
});
$(window).load(function() {

View File

@ -15,7 +15,7 @@ function openAddShowForm() {
$("#add-show-form").show();
var windowWidth = $(window).width();
// margin on showform are 16 px on each side
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 6))/windowWidth*100);
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 4))/windowWidth*100);
var widthPercent = parseInt(calendarWidth)+"%";
$("#schedule_calendar").css("width", widthPercent);
$("#schedule_calendar").fullCalendar('render');