CC-84: Smart Playlists
-switched action names for static/dynamic
This commit is contained in:
parent
fe75ba0e93
commit
5fb0364f2d
2 changed files with 5 additions and 5 deletions
|
@ -117,7 +117,7 @@ class Application_Form_SmartPlaylistCriteria extends Zend_Form_SubForm
|
||||||
$save = new Zend_Form_Element_Button('save_button');
|
$save = new Zend_Form_Element_Button('save_button');
|
||||||
$save->setAttrib('class', 'ui-button ui-state-default right-floated');
|
$save->setAttrib('class', 'ui-button ui-state-default right-floated');
|
||||||
$save->setIgnore(true);
|
$save->setIgnore(true);
|
||||||
$save->setLabel('Save');
|
$save->setLabel('Generate');
|
||||||
$this->addElement($save);
|
$this->addElement($save);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -47,8 +47,8 @@ function setSmartPlaylistEvents() {
|
||||||
form.find('button[id="save_button"]').click(function(event){
|
form.find('button[id="save_button"]').click(function(event){
|
||||||
var playlist_type = form.find('input:radio[name=sp_type]:checked').val(),
|
var playlist_type = form.find('input:radio[name=sp_type]:checked').val(),
|
||||||
data = $('form').serializeArray(),
|
data = $('form').serializeArray(),
|
||||||
static_action = 'Playlist/smart-playlist-criteria-save',
|
static_action = 'Playlist/smart-playlist-criteria-generate',
|
||||||
dynamic_action ='Playlist/smart-playlist-criteria-generate',
|
dynamic_action ='Playlist/smart-playlist-criteria-save',
|
||||||
action,
|
action,
|
||||||
callback;
|
callback;
|
||||||
|
|
||||||
|
@ -66,9 +66,9 @@ function setSmartPlaylistEvents() {
|
||||||
var playlist_type = $('input:radio[name=sp_type]:checked').val(),
|
var playlist_type = $('input:radio[name=sp_type]:checked').val(),
|
||||||
button_text;
|
button_text;
|
||||||
if (playlist_type == "0") {
|
if (playlist_type == "0") {
|
||||||
button_text = 'Save';
|
|
||||||
} else {
|
|
||||||
button_text = 'Generate';
|
button_text = 'Generate';
|
||||||
|
} else {
|
||||||
|
button_text = 'Save';
|
||||||
}
|
}
|
||||||
$('button[id="save_button"]').text(button_text);
|
$('button[id="save_button"]').text(button_text);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue