bug fix for new html in schedule dialog.
This commit is contained in:
parent
d81a84ca9a
commit
c496546ec0
1 changed files with 3 additions and 22 deletions
|
@ -45,14 +45,14 @@ function setScheduleDialogEvents(dialog) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
dialog.find(".ui-icon-close").parent().click(function(){
|
dialog.find(".ui-icon-close").click(function(){
|
||||||
var groupId, url;
|
var groupId, url;
|
||||||
|
|
||||||
groupId = $(this).parent().parent().attr("id").split("_").pop();
|
groupId = $(this).parent().parent().attr("id").split("_").pop();
|
||||||
url = '/Schedule/remove-group/format/json';
|
url = '/Schedule/remove-group';
|
||||||
|
|
||||||
$.post(url,
|
$.post(url,
|
||||||
{groupId: groupId},
|
{format: "json", groupId: groupId},
|
||||||
function(json){
|
function(json){
|
||||||
var dialog = $("#schedule_playlist_dialog");
|
var dialog = $("#schedule_playlist_dialog");
|
||||||
|
|
||||||
|
@ -84,25 +84,6 @@ function dtDrawCallback() {
|
||||||
|
|
||||||
function makeScheduleDialog(dialog, json) {
|
function makeScheduleDialog(dialog, json) {
|
||||||
|
|
||||||
dialog.find("#schedule_playlist_search").keyup(function(){
|
|
||||||
var url, string;
|
|
||||||
|
|
||||||
url = "/Schedule/find-playlists/format/html";
|
|
||||||
string = $(this).val();
|
|
||||||
|
|
||||||
$.post(url, {search: string}, function(html){
|
|
||||||
|
|
||||||
$("#schedule_playlist_choice")
|
|
||||||
.empty()
|
|
||||||
.append(html)
|
|
||||||
.find('li')
|
|
||||||
.draggable({
|
|
||||||
helper: 'clone'
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
dialog.find('#schedule_playlists').dataTable( {
|
dialog.find('#schedule_playlists').dataTable( {
|
||||||
"bProcessing": true,
|
"bProcessing": true,
|
||||||
"bServerSide": true,
|
"bServerSide": true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue