Merge branch 'saas-showbuilder' of github.com:sourcefabric/Airtime into saas-showbuilder
This commit is contained in:
commit
974f979bef
7 changed files with 39 additions and 71 deletions
|
@ -48,6 +48,8 @@ class NewPlaylistController extends Zend_Controller_Action
|
||||||
$modified = $this->_getParam('modified', null);
|
$modified = $this->_getParam('modified', null);
|
||||||
if ($obj->getLastModified("U") !== $modified) {
|
if ($obj->getLastModified("U") !== $modified) {
|
||||||
$this->createFullResponse($obj);
|
$this->createFullResponse($obj);
|
||||||
|
Logging::info($obj->getLastModified("U"));
|
||||||
|
Logging::info($modified);
|
||||||
throw new PlaylistOutDatedException(sprintf(_("You are viewing an older version of %s"), $obj->getName()));
|
throw new PlaylistOutDatedException(sprintf(_("You are viewing an older version of %s"), $obj->getName()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,9 +78,6 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
<?php endif; //suspended ?>
|
<?php endif; //suspended ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php $hint = Application_Common_UsabilityHints::getUsabilityHint(); ?>
|
|
||||||
<div class="usability_hint" <?php if ($hint == "") { echo "style='display:none'"; } ?>><?php echo $hint; ?></div>
|
|
||||||
|
|
||||||
<div id="media_type_nav"> <!-- class="content-pane" -->
|
<div id="media_type_nav"> <!-- class="content-pane" -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button id="new_media_selector" class="btn btn-small dropdown-toggle" data-toggle="dropdown">
|
<button id="new_media_selector" class="btn btn-small dropdown-toggle" data-toggle="dropdown">
|
||||||
|
@ -104,6 +101,9 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
<div class="media_type_selector" selection_id="4"><?php echo _("Webstreams") ?></div>
|
<div class="media_type_selector" selection_id="4"><?php echo _("Webstreams") ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php $hint = Application_Common_UsabilityHints::getUsabilityHint(); ?>
|
||||||
|
<div class="usability_hint" <?php if ($hint == "") { echo "style='display:none'"; } ?>><?php echo $hint; ?></div>
|
||||||
|
|
||||||
<div class="wrapper dropzone" id="content">
|
<div class="wrapper dropzone" id="content">
|
||||||
<?php echo $this->layout()->content ?>
|
<?php echo $this->layout()->content ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,7 +34,7 @@ if (isset($this->obj)) {
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<?php echo $this->form; ?>
|
<?php echo $this->form; ?>
|
||||||
<div class="btn-toolbar spl-no-top-margin clearfix">
|
<div class="btn-toolbar spl-no-margin clearfix left-floated">
|
||||||
<div class='btn-group pull-right'>
|
<div class='btn-group pull-right'>
|
||||||
<button class="btn btn-inverse" title='<?php echo _("Empty smart block content") ?>' type="button" id="pl-bl-clear-content"><?php echo _("Clear") ?></button>
|
<button class="btn btn-inverse" title='<?php echo _("Empty smart block content") ?>' type="button" id="pl-bl-clear-content"><?php echo _("Clear") ?></button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -45,7 +45,7 @@ if (isset($this->obj)) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="crossfade_main" class="crossfade-main clearfix left-floated" style="display:none;">
|
<div id="crossfade_main" class="crossfade-main clearfix" style="display:none;">
|
||||||
<span class="ui-icon ui-icon-closethick"></span>
|
<span class="ui-icon ui-icon-closethick"></span>
|
||||||
<dl id="spl_editor-main" class="inline-list">
|
<dl id="spl_editor-main" class="inline-list">
|
||||||
<dt><?php echo _("Fade in: "); ?><span class='spl_cue_hint'><?php echo _("(ss.t)")?></span></dt>
|
<dt><?php echo _("Fade in: "); ?><span class='spl_cue_hint'><?php echo _("(ss.t)")?></span></dt>
|
||||||
|
@ -61,7 +61,7 @@ if (isset($this->obj)) {
|
||||||
<?php $this->contents = $contents;
|
<?php $this->contents = $contents;
|
||||||
echo $this->render('playlist/update.phtml') ?>
|
echo $this->render('playlist/update.phtml') ?>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="btn-toolbar spl-no-top-margin clearfix">
|
<div class="btn-toolbar spl-no-margin clearfix">
|
||||||
<div class='btn-group pull-right'>
|
<div class='btn-group pull-right'>
|
||||||
<button class="btn btn-inverse" title='Save smart block's title, description, and criteria' type="button" id="save_button"><?php echo _("Save") ?></button>
|
<button class="btn btn-inverse" title='Save smart block's title, description, and criteria' type="button" id="save_button"><?php echo _("Save") ?></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,6 +38,7 @@ div.ColVis_collectionBackground {
|
||||||
/* Usability hint */
|
/* Usability hint */
|
||||||
|
|
||||||
.usability_hint {
|
.usability_hint {
|
||||||
|
left: 130px;
|
||||||
flex: 0 100%;
|
flex: 0 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@ -491,6 +492,10 @@ textarea {
|
||||||
left: 4px;
|
left: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.inner_editor_wrapper {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.spl-no-margin {
|
.spl-no-margin {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,8 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
function playlistError(json) {
|
function playlistError(json) {
|
||||||
alert(json.error);
|
alert(json.error);
|
||||||
closeTab();
|
//closeTab();
|
||||||
openPlaylist(json);
|
//openPlaylist(json);
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopAudioPreview() {
|
function stopAudioPreview() {
|
||||||
|
@ -827,7 +827,10 @@ var AIRTIME = (function(AIRTIME){
|
||||||
if (json.error !== undefined) {
|
if (json.error !== undefined) {
|
||||||
alert(json.error);
|
alert(json.error);
|
||||||
}
|
}
|
||||||
$pl.find(".editor_pane_wrapper").empty().append(json.html);
|
if (json.html !== undefined) {
|
||||||
|
closeTab();
|
||||||
|
openPlaylist(json);
|
||||||
|
}
|
||||||
if (json.result == "0") {
|
if (json.result == "0") {
|
||||||
$pl.find('.success').text($.i18n._('Playlist shuffled'));
|
$pl.find('.success').text($.i18n._('Playlist shuffled'));
|
||||||
$pl.find('.success').show();
|
$pl.find('.success').show();
|
||||||
|
@ -964,7 +967,8 @@ var AIRTIME = (function(AIRTIME){
|
||||||
alert(json.error);
|
alert(json.error);
|
||||||
}
|
}
|
||||||
if (json.html !== undefined) {
|
if (json.html !== undefined) {
|
||||||
AIRTIME.playlist.fnOpenPlaylist(json);
|
closeTab();
|
||||||
|
openPlaylist(json);
|
||||||
}
|
}
|
||||||
setModified(json.modified);
|
setModified(json.modified);
|
||||||
if (obj_type == "block") {
|
if (obj_type == "block") {
|
||||||
|
@ -981,7 +985,7 @@ var AIRTIME = (function(AIRTIME){
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
$pl.find("#pl-bl-clear-content").live("click", function(event) {
|
$pl.find("#pl-bl-clear-content").unbind().on("click", function(event) {
|
||||||
var sUrl = baseUrl+"new-playlist/empty-content",
|
var sUrl = baseUrl+"new-playlist/empty-content",
|
||||||
oData = {};
|
oData = {};
|
||||||
playlistRequest(sUrl, oData);
|
playlistRequest(sUrl, oData);
|
||||||
|
@ -1483,13 +1487,13 @@ var AIRTIME = (function(AIRTIME){
|
||||||
mod.init = function() {
|
mod.init = function() {
|
||||||
AIRTIME.playlist.setAsActive();
|
AIRTIME.playlist.setAsActive();
|
||||||
|
|
||||||
$pl.delegate("#spl_delete", {"click": function(ev){
|
//$pl.delegate("#spl_delete", {"click": function(ev){
|
||||||
AIRTIME.playlist.fnDelete();
|
// AIRTIME.playlist.fnDelete();
|
||||||
}});
|
//}});
|
||||||
|
//
|
||||||
$pl.delegate("#ws_delete", {"click": function(ev){
|
//$pl.delegate("#ws_delete", {"click": function(ev){
|
||||||
AIRTIME.playlist.fnWsDelete();
|
// AIRTIME.playlist.fnWsDelete();
|
||||||
}});
|
//}});
|
||||||
|
|
||||||
$pl.delegate(".pl-waveform-cues-btn", {"click": function(ev){
|
$pl.delegate(".pl-waveform-cues-btn", {"click": function(ev){
|
||||||
AIRTIME.playlist.showCuesWaveform(ev);
|
AIRTIME.playlist.showCuesWaveform(ev);
|
||||||
|
|
|
@ -102,10 +102,11 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
return container;
|
return container;
|
||||||
},
|
},
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
cursorAt: {
|
//cursorAt: {
|
||||||
top: 30,
|
// top: 30,
|
||||||
left: 100
|
// right: 10
|
||||||
},
|
//},
|
||||||
|
distance: 25, // min-distance for dragging
|
||||||
connectToSortable: '#show_builder_table'
|
connectToSortable: '#show_builder_table'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -142,10 +143,11 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
return container;
|
return container;
|
||||||
},
|
},
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
cursorAt: {
|
//cursorAt: {
|
||||||
top: 30,
|
// top: 30,
|
||||||
left: 100
|
// right: 10
|
||||||
},
|
//},
|
||||||
|
distance: 25, // min-distance for dragging
|
||||||
connectToSortable: '.active-tab .spl_sortable'
|
connectToSortable: '.active-tab .spl_sortable'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -775,51 +775,6 @@ var AIRTIME = (function(AIRTIME){
|
||||||
"bScrollCollapseY": false
|
"bScrollCollapseY": false
|
||||||
});
|
});
|
||||||
|
|
||||||
//$sbTable.find("tbody").on("mousedown", "tr:not(.sb-past, .sb-empty)", function(ev) {
|
|
||||||
//
|
|
||||||
// var $tr = $(this),
|
|
||||||
// // Get the ID of the selected row
|
|
||||||
// $rowId = $tr.attr("id");
|
|
||||||
//
|
|
||||||
// if (ev.shiftKey && $previouslySelected !== undefined) {
|
|
||||||
// if ($previouslySelected.attr("id") == $rowId) {
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// // If the selected row comes before the previously selected row,
|
|
||||||
// // we want to select previous rows, otherwise we select next
|
|
||||||
// if ($previouslySelected.prevAll("#"+$rowId).length !== 0) {
|
|
||||||
// $previouslySelected.prevUntil($tr).each(function(i, el){
|
|
||||||
// $(el).addClass(SB_SELECTED_CLASS);
|
|
||||||
// });
|
|
||||||
// } else {
|
|
||||||
// $previouslySelected.nextUntil($tr).each(function(i, el){
|
|
||||||
// $(el).addClass(SB_SELECTED_CLASS);
|
|
||||||
// });
|
|
||||||
// }
|
|
||||||
// $tr.addClass(SB_SELECTED_CLASS);
|
|
||||||
// } else if (ev.ctrlKey && $previouslySelected !== undefined) {
|
|
||||||
// $tr.addClass(SB_SELECTED_CLASS);
|
|
||||||
// } else {
|
|
||||||
// if (!$tr.hasClass(SB_SELECTED_CLASS)) {
|
|
||||||
// $("."+SB_SELECTED_CLASS).removeClass(SB_SELECTED_CLASS);
|
|
||||||
// }
|
|
||||||
// $tr.addClass(SB_SELECTED_CLASS);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// // Remember this row so we can properly multiselect
|
|
||||||
// $previouslySelected = $tr;
|
|
||||||
//
|
|
||||||
// mod.checkToolBarIcons();
|
|
||||||
//});
|
|
||||||
//
|
|
||||||
//$sbTable.find("tbody").on("click", "tr:not(.sb-past, .sb-empty)", function(ev) {
|
|
||||||
// if (!ev.ctrlKey && !ev.shiftKey) {
|
|
||||||
// $("."+SB_SELECTED_CLASS).removeClass(SB_SELECTED_CLASS);
|
|
||||||
// $(this).addClass(SB_SELECTED_CLASS);
|
|
||||||
// }
|
|
||||||
//});
|
|
||||||
|
|
||||||
$sbTable.find("tbody").on("mousedown", "tr:not(.sb-past, .sb-empty)", function(ev) {
|
$sbTable.find("tbody").on("mousedown", "tr:not(.sb-past, .sb-empty)", function(ev) {
|
||||||
var $tr = $(this),
|
var $tr = $(this),
|
||||||
// Get the ID of the selected row
|
// Get the ID of the selected row
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue