Created calendar service and moved the context menu creation there
This commit is contained in:
parent
230d1a6aa9
commit
418bf0b5ff
6 changed files with 218 additions and 139 deletions
|
@ -379,7 +379,7 @@ $(document).ready(function() {
|
|||
|
||||
//edit a single instance
|
||||
callback = function() {
|
||||
$.get(edit.instance.url, {format: "json", id: data.id, type: "instance"}, function(json){
|
||||
$.get(edit.instance.url, {format: "json", showId: data.showId, instanceId: data.id, type: "instance"}, function(json){
|
||||
beginEditShow(json);
|
||||
});
|
||||
};
|
||||
|
@ -497,11 +497,11 @@ $(document).ready(function() {
|
|||
|
||||
items = oItems;
|
||||
}
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: baseUrl+"schedule/make-context-menu",
|
||||
type: "GET",
|
||||
data: {id : data.id, format: "json"},
|
||||
data: {instanceId : data.id, showId: data.showId, format: "json"},
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue