Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
eaba145d6d
|
@ -6,7 +6,7 @@
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="storageFolder-element" class="block-display">
|
<dd id="storageFolder-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('storageFolder') ?>
|
<?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>
|
<input id="storageFolder-ok" type="button" value="Set"></input>
|
||||||
<?php if($this->element->getElement('storageFolder')->hasErrors()) : ?>
|
<?php if($this->element->getElement('storageFolder')->hasErrors()) : ?>
|
||||||
<ul class='errors'>
|
<ul class='errors'>
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
</dt>
|
</dt>
|
||||||
<dd id="watchedFolder-element" class="block-display">
|
<dd id="watchedFolder-element" class="block-display">
|
||||||
<?php echo $this->element->getElement('watchedFolder') ?>
|
<?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>
|
<input id="watchedFolder-ok" type="button" value="Add"></input>
|
||||||
<?php if($this->element->getElement('watchedFolder')->hasErrors()) : ?>
|
<?php if($this->element->getElement('watchedFolder')->hasErrors()) : ?>
|
||||||
<ul class='errors'>
|
<ul class='errors'>
|
||||||
|
|
|
@ -405,8 +405,8 @@ function deleteSPL() {
|
||||||
|
|
||||||
url = '/Playlist/delete-active/format/json';
|
url = '/Playlist/delete-active/format/json';
|
||||||
|
|
||||||
$.post(url, function(){
|
$.post(url, function(json){
|
||||||
noOpenPL;
|
noOpenPL(json);
|
||||||
//redraw the library list
|
//redraw the library list
|
||||||
redrawDataTablePage();
|
redrawDataTablePage();
|
||||||
});
|
});
|
||||||
|
|
|
@ -426,10 +426,12 @@ $(document).ready(function() {
|
||||||
$(window).resize(function(){
|
$(window).resize(function(){
|
||||||
var windowWidth = $(this).width();
|
var windowWidth = $(this).width();
|
||||||
// margin on showform are 16 px on each side
|
// margin on showform are 16 px on each side
|
||||||
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 6))/windowWidth*100);
|
if(!$("#schedule-add-show").is(':hidden')){
|
||||||
var widthPercent = parseInt(calendarWidth)+"%";
|
var calendarWidth = 100-(($("#schedule-add-show").width() + (16 * 4))/windowWidth*100);
|
||||||
$("#schedule_calendar").css("width", widthPercent);
|
var widthPercent = parseInt(calendarWidth)+"%";
|
||||||
$("#schedule_calendar").fullCalendar('render');
|
$("#schedule_calendar").css("width", widthPercent);
|
||||||
|
$("#schedule_calendar").fullCalendar('render');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).load(function() {
|
$(window).load(function() {
|
||||||
|
|
|
@ -15,7 +15,7 @@ function openAddShowForm() {
|
||||||
$("#add-show-form").show();
|
$("#add-show-form").show();
|
||||||
var windowWidth = $(window).width();
|
var windowWidth = $(window).width();
|
||||||
// margin on showform are 16 px on each side
|
// 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)+"%";
|
var widthPercent = parseInt(calendarWidth)+"%";
|
||||||
$("#schedule_calendar").css("width", widthPercent);
|
$("#schedule_calendar").css("width", widthPercent);
|
||||||
$("#schedule_calendar").fullCalendar('render');
|
$("#schedule_calendar").fullCalendar('render');
|
||||||
|
|
Loading…
Reference in New Issue