1
0
Fork 0
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:
Harvey Kandola 2017-03-24 18:57:08 +00:00
parent 2ea782aaed
commit de4eb2e507
4 changed files with 57 additions and 36 deletions

View file

@ -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();