some work towards editing places
This commit is contained in:
parent
ab8e876609
commit
c6c1c9b15b
6 changed files with 58 additions and 15 deletions
|
|
@ -36,8 +36,26 @@ pandora.ui.eventsDialog = function() {
|
|||
}, function(result) {
|
||||
that.options({
|
||||
content: Ox.ListCalendar({
|
||||
height: height - 48,
|
||||
addEvent: function(event, callback) {
|
||||
pandora.api.addEvent(event, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
editEvent: function(event, callback) {
|
||||
pandora.api.editEvent(event, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
events: result.data.items,
|
||||
height: height - 48,
|
||||
removeEvent: function(event, callback) {
|
||||
pandora.api.removeEvent(event, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
width: width
|
||||
})
|
||||
});
|
||||
|
|
|
|||
|
|
@ -202,6 +202,7 @@ pandora.ui.navigationView = function(type, videoRatio) {
|
|||
})
|
||||
.bindEvent({
|
||||
resize: function(data) {
|
||||
// triggered by SplitPanel
|
||||
$element.resizeCalendar();
|
||||
},
|
||||
select: selectItem
|
||||
|
|
|
|||
|
|
@ -23,18 +23,18 @@ pandora.ui.placesDialog = function() {
|
|||
}, data), callback);
|
||||
},
|
||||
addPlace: function(place, callback) {
|
||||
Ox.print('ADDPLACE', place);
|
||||
pandora.api.addPlace(place, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
editPlace: function(place, callback) {
|
||||
Ox.print('EDITPLACE', place);
|
||||
pandora.api.editPlace(place, callback);
|
||||
pandora.api.editPlace(place, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
});
|
||||
},
|
||||
removePlace: function(place, callback) {
|
||||
Ox.print('REMOVEPLACE', place);
|
||||
pandora.api.removePlace(place, function(result) {
|
||||
Ox.Request.clearCache(); // fixme: remove
|
||||
callback(result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue