CC-4148: Playlist Builder: Please add a 'Processing' for generating Smart playlist
- added processing box
This commit is contained in:
parent
2f8d0b77fa
commit
171825e19a
1 changed files with 19 additions and 3 deletions
|
@ -178,9 +178,10 @@ function setSmartPlaylistEvents() {
|
|||
var data = $('form').serializeArray(),
|
||||
save_action = 'Playlist/smart-block-criteria-save',
|
||||
obj_id = $('input[id="obj_id"]').val();
|
||||
|
||||
enableLoadingIcon();
|
||||
$.post(save_action, {format: "json", data: data, obj_id: obj_id}, function(data){
|
||||
callback(data, "save");
|
||||
disableLoadingIcon();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -189,9 +190,10 @@ function setSmartPlaylistEvents() {
|
|||
var data = $('form').serializeArray(),
|
||||
generate_action = 'Playlist/smart-block-generate',
|
||||
obj_id = $('input[id="obj_id"]').val();
|
||||
|
||||
enableLoadingIcon();
|
||||
$.post(generate_action, {format: "json", data: data, obj_id: obj_id}, function(data){
|
||||
callback(data, "generate");
|
||||
disableLoadingIcon();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -200,9 +202,10 @@ function setSmartPlaylistEvents() {
|
|||
var data = $('form').serializeArray(),
|
||||
shuffle_action = 'Playlist/smart-block-shuffle',
|
||||
obj_id = $('input[id="obj_id"]').val();
|
||||
|
||||
enableLoadingIcon();
|
||||
$.post(shuffle_action, {format: "json", data: data, obj_id: obj_id}, function(data){
|
||||
callback(data, "shuffle");
|
||||
disableLoadingIcon();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -527,6 +530,19 @@ function removeButtonCheck() {
|
|||
}
|
||||
}
|
||||
|
||||
function enableLoadingIcon() {
|
||||
$("#side_playlist").block({
|
||||
message: "Processing...",
|
||||
theme: true,
|
||||
allowBodyStretch: true,
|
||||
applyPlatformOpacityRules: false
|
||||
});
|
||||
}
|
||||
|
||||
function disableLoadingIcon() {
|
||||
$("#side_playlist").unblock()
|
||||
}
|
||||
|
||||
var criteriaTypes = {
|
||||
0 : "",
|
||||
"album_title" : "s",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue