mirror of
https://github.com/documize/community.git
synced 2025-08-04 21:15:24 +02:00
space empty state new document
This commit is contained in:
parent
2ea782aaed
commit
de4eb2e507
4 changed files with 57 additions and 36 deletions
|
@ -82,7 +82,12 @@ export default Ember.Component.extend({
|
|||
|
||||
this.set('docId', docId);
|
||||
|
||||
$("#new-document-wizard").insertAfter(`#document-${docId}`);
|
||||
if (docId === '') {
|
||||
$("#new-document-wizard").insertAfter('#wizard-placeholder');
|
||||
} else {
|
||||
$("#new-document-wizard").insertAfter(`#document-${docId}`);
|
||||
}
|
||||
|
||||
$("#new-document-wizard").velocity("transition.slideDownIn", { duration: 300, complete:
|
||||
function() {
|
||||
$("#new-document-name").focus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue