modified javascript and binary values to make dynamic default

This commit is contained in:
Robbt 2018-12-11 21:34:06 -05:00
parent c7767c8a8d
commit 4abe301fbb
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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"));