forked from 0x2620/pandora
fix document creation
This commit is contained in:
parent
385bf61084
commit
620c8a7d96
3 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ pandora.ui.embedDocumentDialog = function(id, position) {
|
|||
marginTop: '8px'
|
||||
})
|
||||
.val(
|
||||
'<a href="/documents/' + id
|
||||
'<a href="/document/' + id
|
||||
+ (position ? '/' + position : '')
|
||||
+ '"><img src="/documents/' + id + '/256p'
|
||||
+ (position || '') + '.jpg"></a>'
|
||||
|
|
|
|||
|
|
@ -386,7 +386,7 @@ pandora.ui.textHTML = function(text) {
|
|||
? pandora.user.ui.documents[pandora.user.ui.part.document]
|
||||
: pandora.user.ui.section == 'documents'
|
||||
? pandora.user.ui.documents[pandora.user.ui.document]
|
||||
: {}),
|
||||
: {}) || {},
|
||||
position = settings.position || 0,
|
||||
element,
|
||||
scrollTop;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue