modified javascript and binary values to make dynamic default
This commit is contained in:
parent
c7767c8a8d
commit
4abe301fbb
|
@ -1160,7 +1160,7 @@ SQL;
|
|||
{
|
||||
$data = $this->organizeSmartPlaylistCriteria($p_criteria);
|
||||
// saving dynamic/static flag
|
||||
$blockType = $data['etc']['sp_type'] == 0 ? 'static':'dynamic';
|
||||
$blockType = $data['etc']['sp_type'] == 0 ? 'dynamic':'static';
|
||||
$this->saveType($blockType);
|
||||
$this->storeCriteriaIntoDb($data);
|
||||
|
||||
|
|
|
@ -1277,7 +1277,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
// remove 'Add to smart block' option if the current
|
||||
// block is dynamic
|
||||
if ($('input:radio[name=sp_type]:checked').val() === "1") {
|
||||
if ($('input:radio[name=sp_type]:checked').val() === "0") {
|
||||
delete oItems.pl_add;
|
||||
}
|
||||
items = oItems;
|
||||
|
|
|
@ -473,7 +473,7 @@ function setupUI() {
|
|||
}
|
||||
|
||||
if (activeTab.find('.obj_type').val() == 'block') {
|
||||
if (playlist_type == "0") {
|
||||
if (playlist_type == "1") {
|
||||
shuffleButton.removeAttr("disabled");
|
||||
generateButton.removeAttr("disabled");
|
||||
generateButton.html($.i18n._("Generate"));
|
||||
|
|
Loading…
Reference in New Issue