diff --git a/app/app/components/dropdown-dialog.js b/app/app/components/dropdown-dialog.js index 09c6e1f9..c63c9b1f 100644 --- a/app/app/components/dropdown-dialog.js +++ b/app/app/components/dropdown-dialog.js @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com @@ -30,6 +30,8 @@ export default Ember.Component.extend({ onAction2: null, offset: "5px 0", targetOffset: "10px 0", + constrainToWindow: true, + constrainToScrollParent: true, hasSecondButton: Ember.computed('button2', 'color2', function() { return is.not.empty(this.get('button2')) && is.not.empty(this.get('color2')); @@ -106,4 +108,4 @@ export default Ember.Component.extend({ } } } -}); \ No newline at end of file +}); diff --git a/app/app/components/folder/start-document.js b/app/app/components/folder/start-document.js index f6b5b322..e4376e1c 100644 --- a/app/app/components/folder/start-document.js +++ b/app/app/components/folder/start-document.js @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com @@ -13,17 +13,24 @@ import Ember from 'ember'; import NotifierMixin from '../../mixins/notifier'; export default Ember.Component.extend(NotifierMixin, { - tagName: 'span', selectedTemplate: { id: "0" }, canEditTemplate: "", + drop: null, didReceiveAttrs() { this.send('setTemplate', this.get('savedTemplates')[0]); }, + willDestroyElement() { + if (is.not.null(this.get('drop'))) { + this.get('drop').destroy(); + this.set('drop', null); + } + }, + actions: { setTemplate(chosen) { if (is.undefined(chosen)) { @@ -58,10 +65,16 @@ export default Ember.Component.extend(NotifierMixin, { }, onOpenCallback() { - let self = this; + if (is.not.null(this.get('drop'))) { + return; + } + + let self = this; let folderId = this.get('folder.id'); let importUrl = this.session.appMeta.getUrl('import/folder/' + folderId); + Dropzone.options.uploadDocuments = false; + let dzone = new Dropzone("#upload-documents", { headers: { 'Authorization': 'Bearer ' + self.session.getSessionItem('token') @@ -86,7 +99,8 @@ export default Ember.Component.extend(NotifierMixin, { console.log("Conversion failed for ", x.name, " obj ", x); // TODO proper error handling }); - this.on("queuecomplete", function() {}); + this.on("queuecomplete", function() { + }); this.on("addedfile", function(file) { self.attrs.onDocumentImporting(file.name); @@ -98,6 +112,8 @@ export default Ember.Component.extend(NotifierMixin, { dzone.on("complete", function(file) { dzone.removeFile(file); }); + + this.set('drop', dzone); } } -}); \ No newline at end of file +}); diff --git a/app/app/styles/view/layout.scss b/app/app/styles/view/layout.scss index d077322e..741ac8cd 100644 --- a/app/app/styles/view/layout.scss +++ b/app/app/styles/view/layout.scss @@ -1,5 +1,6 @@ .page-container { padding-top: 60px; + min-height: 500px; //ensure dropdowns render in viewport } .copyright { diff --git a/app/app/templates/components/folder/start-document.hbs b/app/app/templates/components/folder/start-document.hbs index d0b949fe..c62c9505 100644 --- a/app/app/templates/components/folder/start-document.hbs +++ b/app/app/templates/components/folder/start-document.hbs @@ -4,6 +4,7 @@

Or use a template:

+
    {{#each savedTemplates key="id" as |template|}}
  • diff --git a/documize/api/endpoint/router.go b/documize/api/endpoint/router.go index 59b34d33..95a66337 100644 --- a/documize/api/endpoint/router.go +++ b/documize/api/endpoint/router.go @@ -30,7 +30,7 @@ const ( // AppVersion does what it says // Versioning scheme major.minor where "minor" is optional // e.g. 1, 2, 3, 4.1, 4.2, 5, 6, 7, 7.1, 8, 9, 10, ..... 127, 127.1, 128 - AppVersion = "12.1" + AppVersion = "12.3" ) var port, certFile, keyFile, forcePort2SSL string diff --git a/documize/section/table.go b/documize/section/table.go index 4d33f289..041f67ee 100644 --- a/documize/section/table.go +++ b/documize/section/table.go @@ -26,8 +26,8 @@ func (*table) Meta() TypeMeta { section := TypeMeta{} section.ID = "81a2ea93-2dfc-434d-841e-54b832492c92" - section.Title = "Table" - section.Description = "Table with rows, columns and formatting" + section.Title = "Tabular" + section.Description = "Rows, columns and formatting for tabular data" section.ContentType = "table" section.Order = 9996