CC-6067 - deselect when adding library items
This commit is contained in:
parent
d30e32c2d3
commit
4bfb8fa0cb
|
@ -48,8 +48,6 @@ class NewPlaylistController extends Zend_Controller_Action
|
|||
$modified = $this->_getParam('modified', null);
|
||||
if ($obj->getLastModified("U") !== $modified) {
|
||||
$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()));
|
||||
}
|
||||
}
|
||||
|
@ -199,9 +197,9 @@ class NewPlaylistController extends Zend_Controller_Action
|
|||
$objInfo = Application_Model_Library::getObjInfo($type);
|
||||
Logging::info("editing {$type} {$id}");
|
||||
|
||||
if (!is_null($id)) {
|
||||
Application_Model_Library::changePlaylist($id, $type);
|
||||
}
|
||||
// if (!is_null($id)) {
|
||||
Application_Model_Library::changePlaylist($id, $type);
|
||||
// }
|
||||
|
||||
try {
|
||||
$obj = new $objInfo['className']($id);
|
||||
|
@ -552,8 +550,8 @@ class NewPlaylistController extends Zend_Controller_Action
|
|||
$result['id'] = $bl->getId();
|
||||
$result["modified"] = $bl->getLastModified("U");
|
||||
} else if ($params['type'] == 'playlist') {
|
||||
$result["modified"] = $this->view->modified;
|
||||
$this->setPlaylistNameDescAction();
|
||||
$result["modified"] = $this->view->modified;
|
||||
}
|
||||
|
||||
$this->_helper->json->sendJson($result);
|
||||
|
|
|
@ -534,12 +534,16 @@ li.ui-state-default {
|
|||
|
||||
.spl_sortable {
|
||||
position: relative;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
flex: 1 100%;
|
||||
|
||||
margin: 4px 0;
|
||||
padding: 0;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.spl_sortable .list-item-container {
|
||||
|
@ -551,7 +555,6 @@ li.ui-state-default {
|
|||
|
||||
color: white;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
font-size: 20px;
|
||||
}
|
||||
|
|
|
@ -2627,13 +2627,15 @@ label span {
|
|||
}
|
||||
|
||||
fieldset > legend {
|
||||
font-size: 16px;
|
||||
line-height: 140%;
|
||||
background: #333;
|
||||
width: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
border: 0px;
|
||||
box-sizing: border-box;
|
||||
|
||||
background: #333;
|
||||
font-size: 16px;
|
||||
line-height: 1em;
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 10px 0 10px 10px;
|
||||
}
|
||||
|
||||
fieldset.padded > legend {
|
||||
|
|
|
@ -22,7 +22,6 @@ $(document).ready(function() {
|
|||
var ifr = document.getElementById('livechat-compact-container');
|
||||
if (ifr) {
|
||||
LC_API.on_chat_state_changed = function(data) {
|
||||
console.log('Chat state changed to: ' + data.state);
|
||||
if (data.state == 'offline') {
|
||||
$('.wrapper').css('padding-bottom', 10);
|
||||
} else {
|
||||
|
|
|
@ -1250,6 +1250,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
}
|
||||
|
||||
mod.fnAddItems = function(aItems, iAfter, sAddType) {
|
||||
AIRTIME.library.selectNone();
|
||||
var sUrl = baseUrl+"new-playlist/add-items";
|
||||
oData = {"aItems": aItems, "afterItem": iAfter, "type": sAddType};
|
||||
playlistRequest(sUrl, oData);
|
||||
|
|
|
@ -322,6 +322,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
};
|
||||
|
||||
mod.fnAdd = function(aMediaIds, aSchedIds) {
|
||||
AIRTIME.library.selectNone();
|
||||
mod.disableUI();
|
||||
|
||||
$.post(baseUrl+"showbuilder/schedule-add",
|
||||
|
|
Loading…
Reference in New Issue