1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-02 12:05:23 +02:00

Make popups close on doble-click + quote @size attrs

1. Popups should close on subsequent trigger clicks
2. @attrs should be quoted as oper linter warnings.
This commit is contained in:
McMatts 2019-05-28 10:59:48 +01:00
parent c65eb97948
commit c49707d160
41 changed files with 84 additions and 81 deletions

View file

@ -1,4 +1,4 @@
<Ui::UiSpacer @size=300 />
<Ui::UiSpacer @size="300" />
<div class="document-meta">
<div class="title {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEditCategory"}}>CATEGORY / TAG</div>

View file

@ -2,7 +2,7 @@
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
{{#if permissions.documentEdit}}
{{#ui/ui-toolbar-dropdown label="Actions" arrow=true}}
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
{{#attach-popover class="ember-attacher-popper" hideOn="click clickout" showOn="click" isShown=false}}
<ul class="menu">
<li class="item" {{action "onShowRequestContributionModal"}}>Request contribution</li>
<li class="item" {{action "onShowRequestFeedbackModal"}}>Request feedback</li>
@ -20,7 +20,7 @@
{{/if}}
{{#ui/ui-toolbar-dropdown label="Content" arrow=true}}
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
{{#attach-popover class="ember-attacher-popper" hideOn="click clickout" showOn="click" isShown=false}}
<ul class="menu">
{{#if pinState.isPinned}}
<li class="item" {{action "onUnpin"}}>Remove bookmark</li>
@ -47,7 +47,7 @@
{{#if (or showActivity showRevisions)}}
{{#ui/ui-toolbar-dropdown label="History" arrow=true}}
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
{{#attach-popover class="ember-attacher-popper" hideOn="click clickout" showOn="click" isShown=false}}
<ul class="menu">
{{#if showActivity}}
{{#link-to "document.activity" class="item"}}Activity summary{{/link-to}}

View file

@ -3,7 +3,7 @@
icon=constants.Icon.ArrowLeft label=space.name onClick=(action "onSpace")}}
{{#if docs}}
{{#ui/ui-toolbar-icon icon=constants.Icon.ArrowSmallDown}}
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false placement="bottom-middle"}}
{{#attach-popover class="ember-attacher-popper" hideOn="click clickout" showOn="click" isShown=false placement="bottom-middle" }}
<ul class="menu">
{{#each docs as |doc|}}
{{#if (not-eq doc.id docId)}}

View file

@ -73,7 +73,7 @@
<label>Destination Document</label>
{{focus-input type="text" value=docSearchFilter class="form-control" placeholder="a OR b, x AND y, 'phrase mat*'"}}
</div>
<Ui::UiSpacer @size=100 />
<Ui::UiSpacer @size="100" />
<div class="document-copy-move">
{{#if emptySearch}}
<p>No matching documents found.</p>

View file

@ -1,5 +1,5 @@
{{#if editMode}}
<Ui::UiSpacer @size=200 />
<Ui::UiSpacer @size="200" />
{{ui/ui-button color=constants.Color.Gray label=uploadLabel id=uploadId}}
{{/if}}
@ -17,7 +17,7 @@
{{#attach-popover class="ember-attacher-popper" hideOn="escapekey, clickout" showOn="click" isShown=false}}
<div class="form">
<p>Are you sure you want to delete this file?</p>
<Ui::UiSpacer @size=100 />
<Ui::UiSpacer @size="100" />
{{ui/ui-button
light=false
label=constants.Label.Delete

View file

@ -6,7 +6,7 @@
{{#if categories}}
{{ui/ui-list-picker items=categories nameField="category" singleSelect=false}}
<Ui::UiSpacer @size=300 />
<Ui::UiSpacer @size="300" />
{{ui/ui-button
color=constants.Color.Green

View file

@ -12,10 +12,10 @@
</div>
{{input type="text" id=(concat "add-tag-field-" tag.number) class="form-control mousetrap tag-input" placeholder="Tag name" value=tag.value}}
</div>
<Ui::UiSpacer @size=200 />
<Ui::UiSpacer @size="200" />
{{/each}}
<Ui::UiSpacer @size=300 />
<Ui::UiSpacer @size="300" />
{{ui/ui-button
color=constants.Color.Green

View file

@ -1,9 +1,9 @@
<div class="title center">attachments</div>
{{#if canEdit}}
<div class="text-center">
<Ui::UiSpacer @size=100 />
<Ui::UiSpacer @size="100" />
{{ui/ui-button color=constants.Color.Gray label="Upload" id="upload-document-files"}}
<Ui::UiSpacer @size=100 />
<Ui::UiSpacer @size="100" />
</div>
{{/if}}
@ -23,7 +23,7 @@
{{#attach-popover class="ember-attacher-popper" hideOn="escapekey, clickout" showOn="click" isShown=false}}
<div class="form">
<p>Are you sure you want to delete this file?</p>
<Ui::UiSpacer @size=100 />
<Ui::UiSpacer @size="100" />
{{ui/ui-button
light=false
label=constants.Label.Delete

View file

@ -4,7 +4,7 @@
{{#if (gt versions.length 0)}}
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
{{ui/ui-toolbar-label label=document.versionId color=constants.Color.Gray}}
{{#attach-popover class="ember-attacher-popper" hideOn="clickout" showOn="click" isShown=false}}
{{#attach-popover class="ember-attacher-popper" hideOn="click clickout" showOn="click" isShown=false}}
<div class="menu">
<li class="item header">Select version to view</li>
{{#each versions as |version|}}
@ -23,7 +23,7 @@
{{/if}}
{{/if}}
<Ui::UiSpacer @size=200 />
<Ui::UiSpacer @size="200" />
{{/if}}
<div class="title {{if permissions.documentEdit "cursor-pointer"}}" {{action "onEditStatus"}}>STATUS</div>

View file

@ -17,7 +17,7 @@
</div>
</div>
{{else}}
<Ui::UiSpacer @size=100 />
<Ui::UiSpacer @size="100" />
{{/if}}
<div class="document-sidebar-toc">

View file

@ -1,6 +1,6 @@
{{#if hasPages}}
{{#each pages key="id" as |item|}}
<Ui::UiSpacer @size=100 />
<Ui::UiSpacer @size="100" />
{{document/document-page
roles=roles
pages=pages
@ -41,7 +41,7 @@
<div class="thanks">Thanks for the feedback!</div>
{{else}}
<div class="prompt">{{folder.likes}}</div>
<Ui::UiSpacer @size=200 />
<Ui::UiSpacer @size="200" />
<div class="buttons">
{{ui/ui-button color=constants.Color.Yellow light=true label="Yes, thanks!" onClick=(action "onVote" 1)}}
{{ui/ui-button-gap}}

View file

@ -6,7 +6,7 @@
{{#if hasDiff}}
<h1>{{revision.title}}</h1>
<h2>Changed by {{revision.firstname}} {{revision.lastname}}</h2>
<Ui::UiSpacer @size=200 />
<Ui::UiSpacer @size="200" />
<div class="diff-zone wysiwyg">
{{{diff}}}
</div>
@ -14,7 +14,7 @@
</div>
{{#if canRollback}}
<Ui::UiSpacer @size=400 />
<Ui::UiSpacer @size="400" />
{{ui/ui-button color=constants.Color.Red icon=constants.Icon.TimeBack light=true label=constants.Label.Restore onClick=(action "onShowModal")}}
{{/if}}