forked from 0x2620/pandora
fix resize bugs in calendar, list calendar etc
This commit is contained in:
parent
5449adb7ae
commit
ddf8655959
2 changed files with 13 additions and 1 deletions
|
@ -55,7 +55,8 @@ pandora.ui.eventsDialog = function() {
|
|||
$content && $content.options({height: data.height});
|
||||
},
|
||||
resizeend: function(data) {
|
||||
$content && $content.options(data);
|
||||
Ox.print('RESIZEEND', data)
|
||||
$content && $content.options({height: data.height, width: data.width});
|
||||
}
|
||||
}),
|
||||
$content;
|
||||
|
|
|
@ -226,6 +226,7 @@ pandora.ui.item = function() {
|
|||
clickLink: pandora.clickLink,
|
||||
cuts: result.data.cuts || [],
|
||||
duration: result.data.duration,
|
||||
download: pandora.site.video.download,
|
||||
enableSubtitles: pandora.user.ui.videoSubtitles,
|
||||
find: pandora.user.ui.itemFind.conditions[0]
|
||||
? pandora.user.ui.itemFind.conditions[0].value : '',
|
||||
|
@ -299,6 +300,12 @@ pandora.ui.item = function() {
|
|||
pandora.$ui.placesDialog && pandora.$ui.placesDialog.remove();
|
||||
pandora.$ui.placesDialog = pandora.ui.placesDialog(data).open();
|
||||
},
|
||||
download: function(data) {
|
||||
Ox.print('download', data);
|
||||
document.location.href = '/' + pandora.user.ui.item + '/download';
|
||||
},
|
||||
downloadSelection: function(data) {
|
||||
},
|
||||
editannotation: function(data) {
|
||||
Ox.Log('', 'editAnnotation', data);
|
||||
//fixme: check that edit was successfull
|
||||
|
@ -315,6 +322,10 @@ pandora.ui.item = function() {
|
|||
pandora.$ui.editor.updateAnnotation(result.data);
|
||||
});
|
||||
},
|
||||
embedSelection: function(data) {
|
||||
pandora.$ui.embedDialog && pandora.$ui.embedDialog.remove();
|
||||
pandora.$ui.embedDialog = pandora.ui.embedDialog(data).open();
|
||||
},
|
||||
find: function(data) {
|
||||
pandora.UI.set('itemFind', data.find ? {
|
||||
conditions: [{key: 'annotations', value: data.find, operator: '='}],
|
||||
|
|
Loading…
Reference in a new issue