diff --git a/js/build.templates.js b/js/build.templates.js index 3145c55c..b9b6adb8 100644 --- a/js/build.templates.js +++ b/js/build.templates.js @@ -3,7 +3,7 @@ this["Fliplet"]["Widget"] = this["Fliplet"]["Widget"] || {}; this["Fliplet"]["Widget"]["Templates"] = this["Fliplet"]["Widget"]["Templates"] || {}; this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-base"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "
\n \n {{#if filtersInOverlay}}\n
\n
\n
\n
\n
\n \n
\n
\n
\n
Clear
\n
Apply
\n
\n
\n
\n
\n
\n
\n
Filter by
\n
\n \n
\n
\n
\n
\n
\n
\n {{/if}}\n \n\n \n
\n {{#if searchEnabled}}\n
\n \n \n
Search
\n
\n
\n {{/if}}\n {{#ifCond filtersEnabled '||' bookmarksEnabled}}\n
\n {{#ifCond bookmarksEnabled '&&' hasTopBar}}\n
\n \n \n
\n {{/ifCond}}\n
\n {{#if filtersEnabled}}\n \n {{/if}}\n
\n {{/ifCond}}\n
\n \n\n {{#if bookmarksEnabled}}\n {{#unless hasTopBar}}\n
\n
\n \n \n
My Agenda
\n
\n
\n {{/unless}}\n {{/if}}\n\n \n
\n \n
\n\n \n
\n
\n \n
\n \n
\n
\n Loading agenda...\n
\n
\n
\n\n \n
\n \n
\n {{#if searchEnabled}}\n
\n
\n
\n
\n
\n Searching for \n
\n
\n
\n
\n
\n {{/if}}\n {{#if filtersEnabled}}\n
\n
\n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
\n \n
\n {{/if}}\n {{/unless}}\n
\n
\n {{/if}}\n
\n \n
\n
\n
\n\n\n
\n
\n
\n
\n \"close\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n\n{{#if showAddEntry}}\n
\n \n
\n{{/if}}"; + return "
\n \n {{#if filtersInOverlay}}\n
\n
\n
\n
\n
\n \n
\n
\n
\n
Clear
\n
Apply
\n
\n
\n
\n
\n
\n
\n
Filter by
\n
\n \n
\n
\n
\n
\n
\n
\n {{/if}}\n \n\n \n
\n {{#if searchEnabled}}\n
\n \n \n
Search
\n
\n
\n {{/if}}\n {{#ifCond filtersEnabled '||' bookmarksEnabled}}\n
\n {{#ifCond bookmarksEnabled '&&' hasTopBar}}\n
\n \n \n
\n {{/ifCond}}\n
\n {{#if filtersEnabled}}\n \n {{/if}}\n
\n {{/ifCond}}\n
\n \n\n {{#if bookmarksEnabled}}\n {{#unless hasTopBar}}\n
\n
\n \n \n
My Agenda
\n
\n
\n {{/unless}}\n {{/if}}\n\n \n
\n \n
\n\n \n
\n
\n \n
\n \n
\n
\n Loading agenda...\n
\n
\n
\n\n \n
\n \n
\n {{#if searchEnabled}}\n
\n
\n
\n
\n
\n Searching for \n
\n
\n
\n
\n
\n {{/if}}\n {{#if filtersEnabled}}\n
\n
\n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
\n \n
\n {{/if}}\n {{/unless}}\n
\n
\n {{/if}}\n
\n \n
\n
\n
\n\n\n
\n
\n
\n
\n \"close\n
\n
\n
\n \n
\n
\n
\n
\n \"close\n
\n
\n
\n
\n\n{{#if showAddEntry}}\n
\n \n
\n{{/if}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-cards-detail"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -11,7 +11,7 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-cards-detail"] = },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-cards-loop"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#each this}}\n
\n
\n {{#each this}}\n
\n
\n
\n
\n
\n
{{[Start Time]}}
\n {{#ifCond [Start Time] '&&' [End Time]}}\n
|
\n {{/ifCond}}\n
{{[End Time]}}
\n
\n
\n {{#if [Title]}}\n

{{[Title]}}

\n {{/if}}\n
\n {{#if [Location]}}\n

{{{[Location]}}}

\n {{/if}}\n

{{[Start Time]}}{{#ifCond [Start Time] '&&' [End Time]}} - {{/ifCond}}{{[End Time]}}{{#if [Full Date]}} / {{/if}}{{[Full Date]}}

\n
\n\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n {{/each}}\n
\n
Nothing bookmarked for this date
\n
\n {{/each}}"; + return "{{#each this}}\n
\n
\n {{#each this}}\n
\n
\n
\n
\n
\n
{{[Start Time]}}
\n {{#ifCond [Start Time] '&&' [End Time]}}\n
|
\n {{/ifCond}}\n
{{[End Time]}}
\n
\n
\n {{#if [Title]}}\n

{{[Title]}}

\n {{/if}}\n
\n {{#if [Location]}}\n

{{{[Location]}}}

\n {{/if}}\n

{{[Start Time]}}{{#ifCond [Start Time] '&&' [End Time]}} - {{/ifCond}}{{[End Time]}}{{#if [Full Date]}} / {{/if}}{{[Full Date]}}

\n
\n\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n {{/each}}\n
\n
Nothing bookmarked for this date
\n
\n {{/each}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-cards-search-results"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -19,15 +19,15 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-cards-search-resu },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-dates-loop"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#each this}}\n
  • \n
    {{week}}
    \n
    {{day}}
    \n
    {{month}}
    \n
  • \n{{/each}}"; + return "{{#each this}}\n
  • \n
    {{week}}
    \n
    {{day}}
    \n
    {{month}}
    \n
  • \n{{/each}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.agenda-filters"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n
    Filter by {{[name]}}
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n {{/each}}\n{{/if}}"; + return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n
    Filter by {{[name]}}
    \n
    \n
    \n \n
    \n
    \n {{/each}}\n{{/if}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.news-feed-base"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "
    \n \n {{#if filtersInOverlay}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    Clear
    \n
    Apply
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    Filter by
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n \n\n \n
    \n
    Go back
    \n
    \n\n \n
    \n {{#if searchEnabled}}\n
    \n \n \n
    Search
    \n
    \n
    \n {{/if}}\n {{#ifCond filtersEnabled '||' bookmarksEnabled}}\n
    \n {{#if bookmarksEnabled}}\n
    \n \n \n
    \n {{/if}}\n
    \n {{#if filtersEnabled}}\n \n {{/if}}\n
    \n {{/ifCond}}\n
    \n \n\n \n {{#if searchEnabled}}\n
    \n
    \n
    \n
    \n
    \n Searching for \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n {{#if filtersEnabled}}\n
    \n
    \n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
    \n \n
    \n {{/if}}\n {{/unless}}\n
    \n
    \n {{/if}}\n \n\n
    \n \n
    \n\n {{#if enabledLimitEntries}}\n
    \n {{#ifCond limitEntries '==' 0}}\n {{#ifCond searchEnabled '||' filtersEnabled}}\n

    {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see the list items

    \n {{/ifCond}}\n {{/ifCond}}\n {{#ifCond limitEntries '>' 0}}\n

    Showing the first {{limitEntries}} list items.{{#ifCond searchEnabled '||' filtersEnabled}} {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see more.{{/ifCond}}

    \n {{/ifCond}}\n
    \n {{/if}}\n\n
    \n Loading...\n
    \n
    \n No matches found\n
    \n
    \n Nothing bookmarked\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}\n\n
    \n
    \n
    Comments
    \n
    \n
    \n\n
    You are offline
    \n\n
    \n \n
    \n Loading...\n
    \n
    \n\n
    \n
    \n \n
    \n
    \n
    Comment
    \n
    Cancel
    \n
    Save
    \n
    \n
    \n
    \n"; + return "
    \n \n {{#if filtersInOverlay}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    Clear
    \n
    Apply
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    Filter by
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n \n\n \n
    \n
    Go back
    \n
    \n\n \n
    \n {{#if searchEnabled}}\n
    \n \n \n
    Search
    \n
    \n
    \n {{/if}}\n {{#ifCond filtersEnabled '||' bookmarksEnabled}}\n
    \n {{#if bookmarksEnabled}}\n
    \n \n \n
    \n {{/if}}\n
    \n {{#if filtersEnabled}}\n \n {{/if}}\n
    \n {{/ifCond}}\n
    \n \n\n \n {{#if searchEnabled}}\n
    \n
    \n
    \n
    \n
    \n Searching for \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n {{#if filtersEnabled}}\n
    \n
    \n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
    \n \n
    \n {{/if}}\n {{/unless}}\n
    \n
    \n {{/if}}\n \n\n
    \n \n
    \n\n {{#if enabledLimitEntries}}\n
    \n {{#ifCond limitEntries '==' 0}}\n {{#ifCond searchEnabled '||' filtersEnabled}}\n

    {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see the list items

    \n {{/ifCond}}\n {{/ifCond}}\n {{#ifCond limitEntries '>' 0}}\n

    Showing the first {{limitEntries}} list items.{{#ifCond searchEnabled '||' filtersEnabled}} {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see more.{{/ifCond}}

    \n {{/ifCond}}\n
    \n {{/if}}\n\n
    \n Loading...\n
    \n
    \n No matches found\n
    \n
    \n Nothing bookmarked\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}\n\n
    \n
    \n
    Comments
    \n
    \n
    \n\n
    You are offline
    \n\n
    \n \n
    \n Loading...\n
    \n
    \n\n
    \n
    \n \n
    \n
    \n
    Comment
    \n
    Cancel
    \n
    Save
    \n
    \n
    \n
    \n"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.news-feed-comment"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -39,11 +39,11 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.news-feed-detail"] = Han },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.news-feed-filters"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n
    Filter by {{[name]}}
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n {{/each}}\n{{/if}}"; + return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n
    Filter by {{[name]}}
    \n
    \n
    \n \n
    \n
    \n {{/each}}\n{{/if}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.news-feed-loop"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#each this}}\n
    \n
    \n {{#if [Image]}}\n
    \n
    \n \n
    \n
    \n {{/if}}\n
    \n
    \n
    \n {{#ifCond [Date] '||' [Categories]}}\n
    {{formatDate [Date]}} {{#ifCond [Date] '&&' [Categories]}}/{{/ifCond}} {{[Categories]}}
    \n {{/ifCond}}\n {{#if likesEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n\n {{#if bookmarksEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n\n {{#if commentsEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n
    \n {{#if [Title]}}\n

    {{[Title]}}

    \n {{/if}}\n {{#if [Content]}}\n
    \n {{{auth [Content]}}}\n
    \n {{/if}}\n
    \n
    \n
    \n
    \n{{/each}}"; + return "{{#each this}}\n
    \n
    \n {{#if [Image]}}\n
    \n
    \n \n
    \n
    \n {{/if}}\n
    \n
    \n
    \n {{#ifCond [Date] '||' [Categories]}}\n
    {{formatDate [Date]}} {{#ifCond [Date] '&&' [Categories]}}/{{/ifCond}} {{[Categories]}}
    \n {{/ifCond}}\n {{#if likesEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n\n {{#if bookmarksEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n\n {{#if commentsEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n
    \n {{#if [Title]}}\n

    {{[Title]}}

    \n {{/if}}\n {{#if [Content]}}\n
    \n {{{auth [Content]}}}\n
    \n {{/if}}\n
    \n
    \n
    \n
    \n{{/each}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.news-feed-single-comment"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -55,7 +55,7 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.news-feed-temp-comment"] },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.simple-list-base"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "
    \n \n {{#if filtersInOverlay}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    Clear
    \n
    Apply
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    Filter by
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n \n\n \n
    \n
    Go back
    \n
    \n\n \n
    \n {{#if searchEnabled}}\n
    \n \n \n
    Search
    \n
    \n
    \n {{/if}}\n {{#ifCond filtersEnabled '||' bookmarksEnabled}}\n
    \n {{#if bookmarksEnabled}}\n
    \n \n \n
    \n {{/if}}\n
    \n {{#if filtersEnabled}}\n \n {{/if}}\n
    \n {{/ifCond}}\n
    \n \n\n \n {{#if searchEnabled}}\n
    \n
    \n
    \n
    \n
    \n Searching for \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n {{#if filtersEnabled}}\n
    \n
    \n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
    \n \n
    \n {{/if}}\n {{/unless}}\n
    \n
    \n {{/if}}\n \n\n
    \n \n
    \n\n {{#if enabledLimitEntries}}\n
    \n {{#ifCond limitEntries '==' 0}}\n {{#ifCond searchEnabled '||' filtersEnabled}}\n

    {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see the list items

    \n {{/ifCond}}\n {{/ifCond}}\n {{#ifCond limitEntries '>' 0}}\n

    Showing the first {{limitEntries}} list items.{{#ifCond searchEnabled '||' filtersEnabled}} {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see more.{{/ifCond}}

    \n {{/ifCond}}\n
    \n {{/if}}\n\n
    \n Loading...\n
    \n
    \n No matches found\n
    \n
    \n Nothing bookmarked\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}\n\n
    \n
    \n
    Comments
    \n
    \n
    \n\n
    You are offline
    \n\n
    \n \n
    \n Loading...\n
    \n
    \n\n
    \n
    \n \n
    \n
    \n
    Comment
    \n
    Cancel
    \n
    Save
    \n
    \n
    \n
    \n"; + return "
    \n \n {{#if filtersInOverlay}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    Clear
    \n
    Apply
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    Filter by
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n \n\n \n
    \n
    Go back
    \n
    \n\n \n
    \n {{#if searchEnabled}}\n
    \n \n \n
    Search
    \n
    \n
    \n {{/if}}\n {{#ifCond filtersEnabled '||' bookmarksEnabled}}\n
    \n {{#if bookmarksEnabled}}\n
    \n \n \n
    \n {{/if}}\n
    \n {{#if filtersEnabled}}\n \n {{/if}}\n
    \n {{/ifCond}}\n
    \n \n\n \n {{#if searchEnabled}}\n
    \n
    \n
    \n
    \n
    \n Searching for \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n {{#if filtersEnabled}}\n
    \n
    \n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
    \n \n
    \n {{/if}}\n {{/unless}}\n
    \n
    \n {{/if}}\n \n\n
    \n \n
    \n\n {{#if enabledLimitEntries}}\n
    \n {{#ifCond limitEntries '==' 0}}\n {{#ifCond searchEnabled '||' filtersEnabled}}\n

    {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see the list items

    \n {{/ifCond}}\n {{/ifCond}}\n {{#ifCond limitEntries '>' 0}}\n

    Showing the first {{limitEntries}} list items.{{#ifCond searchEnabled '||' filtersEnabled}} {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see more.{{/ifCond}}

    \n {{/ifCond}}\n
    \n {{/if}}\n\n
    \n Loading...\n
    \n
    \n No matches found\n
    \n
    \n Nothing bookmarked\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}\n\n
    \n
    \n
    Comments
    \n
    \n
    \n\n
    You are offline
    \n\n
    \n \n
    \n Loading...\n
    \n
    \n\n
    \n
    \n \n
    \n
    \n
    Comment
    \n
    Cancel
    \n
    Save
    \n
    \n
    \n
    \n"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.simple-list-comment"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -67,11 +67,11 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.simple-list-detail"] = H },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.simple-list-filters"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n {{#if data.length}}\n
    Filter by {{[name]}}
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n {{/if}}\n {{/each}}\n{{/if}}"; + return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n {{#if data.length}}\n
    Filter by {{[name]}}
    \n
    \n
    \n \n
    \n
    \n {{/if}}\n {{/each}}\n{{/if}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.simple-list-loop"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#each this}}\n
    \n {{#if [Image]}}\n
    \n {{/if}}\n
    \n {{#if [Title]}}\n
    {{[Title]}}
    \n {{/if}}\n {{#if [Description]}}\n
    {{plaintext [Description]}}
    \n {{/if}}\n {{#if [Category]}}\n
    {{[Category]}}
    \n {{/if}}\n
    \n {{#if likesEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n {{#if bookmarksEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n {{#if commentsEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n
    \n
    \n \n
    \n{{/each}}"; + return "{{#each this}}\n
    \n {{#if [Image]}}\n
    \n {{/if}}\n
    \n {{#if [Title]}}\n
    {{[Title]}}
    \n {{/if}}\n {{#if [Description]}}\n
    {{plaintext [Description]}}
    \n {{/if}}\n {{#if [Category]}}\n
    {{[Category]}}
    \n {{/if}}\n
    \n {{#if likesEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n {{#if bookmarksEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n {{#if commentsEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n
    \n
    \n \n
    \n{{/each}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.simple-list-single-comment"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -83,7 +83,7 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.simple-list-temp-comment },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-card-base"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "
    \n \n {{#if filtersInOverlay}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    Clear
    \n
    Apply
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    Filter by
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n \n\n \n
    \n
    Go back
    \n
    \n\n \n
    \n
    \n
    \n
    \n
    \n\n {{#if searchEnabled}}\n
    \n \n \n
    Search
    \n
    \n
    \n {{/if}}\n
    \n {{#if bookmarksEnabled}}\n
    \n \n \n
    \n {{/if}}\n
    \n {{#if filtersEnabled}}\n \n {{/if}}\n
    \n
    \n \n\n \n {{#if searchEnabled}}\n
    \n
    \n
    \n
    \n
    \n Searching for \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n {{#if filtersEnabled}}\n
    \n
    \n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
    \n \n
    \n {{/if}}\n {{/unless}}\n
    \n
    \n {{/if}}\n \n\n
    \n \n
    \n\n {{#if enabledLimitEntries}}\n
    \n {{#ifCond limitEntries '==' 0}}\n {{#ifCond searchEnabled '||' filtersEnabled}}\n

    {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see the list items

    \n {{/ifCond}}\n {{/ifCond}}\n {{#ifCond limitEntries '>' 0}}\n

    Showing the first {{limitEntries}} list items.{{#ifCond searchEnabled '||' filtersEnabled}} {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see more.{{/ifCond}}

    \n {{/ifCond}}\n
    \n {{/if}}\n\n
    \n Loading...\n
    \n
    \n No matches found\n
    \n
    \n Nothing bookmarked\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}\n"; + return "
    \n \n {{#if filtersInOverlay}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n
    \n
    Clear
    \n
    Apply
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    Filter by
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n \n\n \n
    \n
    Go back
    \n
    \n\n \n
    \n
    \n
    \n
    \n
    \n\n {{#if searchEnabled}}\n
    \n \n \n
    Search
    \n
    \n
    \n {{/if}}\n
    \n {{#if bookmarksEnabled}}\n
    \n \n \n
    \n {{/if}}\n
    \n {{#if filtersEnabled}}\n \n {{/if}}\n
    \n
    \n \n\n \n {{#if searchEnabled}}\n
    \n
    \n
    \n
    \n
    \n Searching for \n
    \n
    \n
    \n
    \n
    \n {{/if}}\n {{#if filtersEnabled}}\n
    \n
    \n {{#unless filtersInOverlay}}\n {{#if filtersEnabled}}\n
    \n \n
    \n {{/if}}\n {{/unless}}\n
    \n
    \n {{/if}}\n \n\n
    \n \n
    \n\n {{#if enabledLimitEntries}}\n
    \n {{#ifCond limitEntries '==' 0}}\n {{#ifCond searchEnabled '||' filtersEnabled}}\n

    {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see the list items

    \n {{/ifCond}}\n {{/ifCond}}\n {{#ifCond limitEntries '>' 0}}\n

    Showing the first {{limitEntries}} list items.{{#ifCond searchEnabled '||' filtersEnabled}} {{#if searchEnabled}}Search{{/if}}{{#ifCond searchEnabled '&&' filtersEnabled}} and/or {{/ifCond}}{{#if filtersEnabled}}Filter{{/if}} to see more.{{/ifCond}}

    \n {{/ifCond}}\n
    \n {{/if}}\n\n
    \n Loading...\n
    \n
    \n No matches found\n
    \n
    \n Nothing bookmarked\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}\n"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-card-detail"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -91,11 +91,11 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.small-card-detail"] = Ha },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-card-filters"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n
    Filter by {{[name]}}
    \n
    \n
    \n
    \n {{#each [data]}}\n
    {{[name]}}
    \n {{/each}}\n
    \n
    \n
    \n {{/each}}\n{{/if}}\n"; + return "{{#if filtersInOverlay}}\n
    \n {{#each filters}}\n
    \n
    \n

    \n \n {{[name]}}\n \n \n

    \n
    \n
    \n
    \n \n
    \n
    \n
    \n {{/each}}\n
    \n{{else}}\n {{#each filters}}\n
    Filter by {{[name]}}
    \n
    \n
    \n \n
    \n
    \n {{/each}}\n{{/if}}\n"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-card-loop"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#each this}}\n
    \n
    \n
    \n {{#if [Image]}}\n
    \n
    \n {{#unless [Image]}}{{/unless}}\n
    \n {{/if}}\n
    \n
    \n
    \n
    {{[First Name]}} {{[Last Name]}}
    \n
    {{[Title]}}
    \n
    {{[Location]}}
    \n {{#if bookmarksEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n
    \n
    \n {{/each}}\n"; + return "{{#each this}}\n
    \n
    \n
    \n {{#if [Image]}}\n
    \n
    \n {{#unless [Image]}}{{/unless}}\n
    \n {{/if}}\n
    \n
    \n
    \n
    {{[First Name]}} {{[Last Name]}}
    \n
    {{[Title]}}
    \n
    {{[Location]}}
    \n {{#if bookmarksEnabled}}\n
    \n \n \n \n
    \n {{/if}}\n
    \n
    \n {{/each}}\n"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-card-profile-icon"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -107,7 +107,7 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.small-card-user-profile" },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-h-card-base"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "
    \n
    \n \n
    \n
    \n Loading...\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}"; + return "
    \n
    \n \n
    \n
    \n Loading...\n
    \n
    \n\n\n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n \"close\n
    \n
    \n
    \n
    \n\n{{#if showAddEntry}}\n
    \n \n
    \n{{/if}}"; },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-h-card-detail"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { @@ -115,5 +115,5 @@ this["Fliplet"]["Widget"]["Templates"]["templates.build.small-h-card-detail"] = },"useData":true}); this["Fliplet"]["Widget"]["Templates"]["templates.build.small-h-card-loop"] = Handlebars.template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { - return "{{#each this}}\n
    \n
    \n
    \n
    \n
    \n {{#unless [Image]}}{{/unless}}\n
    \n
    \n
    \n
    {{[First Name]}} {{[Last Name]}}
    \n
    \n{{/each}}"; + return "{{#each this}}\n
    \n
    \n
    \n
    \n
    \n {{#unless [Image]}}{{/unless}}\n
    \n
    \n
    \n
    {{[First Name]}} {{[Last Name]}}
    \n
    \n{{/each}}"; },"useData":true}); \ No newline at end of file diff --git a/js/layout-javascript/agenda-code.js b/js/layout-javascript/agenda-code.js index e5e6f2b8..6fed4dc8 100644 --- a/js/layout-javascript/agenda-code.js +++ b/js/layout-javascript/agenda-code.js @@ -190,7 +190,11 @@ DynamicList.prototype.attachObservers = function() { _this.hideFilterOverlay(); _this.clearFilters(); }) - .on('click', '.hidden-filter-controls-filter', function() { + .on('click keydown', '.hidden-filter-controls-filter', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $filter = $(this); Fliplet.Analytics.trackEvent({ @@ -269,7 +273,11 @@ DynamicList.prototype.attachObservers = function() { _this.$container.find('.clear-filters').removeClass('hidden'); }) - .on('click', '.list-search-cancel', function() { + .on('click keydown', '.list-search-cancel', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + // Hide filters $(this).removeClass('active'); _this.$container.find('.hidden-filter-controls').removeClass('active'); @@ -343,12 +351,20 @@ DynamicList.prototype.attachObservers = function() { _this.isSearching = true; _this.searchData(value); }) - .on('click', '.clear-search', function() { + .on('click keydown', '.clear-search', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + _this.$container.find('.new-agenda-list-container').removeClass('searching'); _this.isSearching = false; _this.searchData(''); }) - .on('click', '.go-to-poll', function() { + .on('click keydown', '.go-to-poll', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.pollEnabled || !_this.data.pollColumn) { return; } @@ -363,7 +379,11 @@ DynamicList.prototype.attachObservers = function() { entry: entry }); }) - .on('click', '.go-to-survey', function() { + .on('click keydown', '.go-to-survey', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.surveyEnabled || !_this.data.surveyColumn) { return; } @@ -378,7 +398,11 @@ DynamicList.prototype.attachObservers = function() { entry: entry }); }) - .on('click', '.go-to-questions', function() { + .on('click keydown', '.go-to-questions', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.questionsEnabled || !_this.data.questionsColumn) { return; } @@ -419,9 +443,13 @@ DynamicList.prototype.attachObservers = function() { : 'bookmarks_hide' }); }) - .on('click', '.toggle-agenda, .toggle-bookmarks', function(e) { + .on('click', '.toggle-agenda, .toggle-bookmarks', function(event) { e.stopPropagation(); + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $toggle = _this.$container.find(e.handleObj.selector); $toggle.toggleClass('mixitup-control-active'); @@ -450,7 +478,11 @@ DynamicList.prototype.attachObservers = function() { allowClick = true; }, 100); }) - .on('click', '.agenda-list-item', function(event) { + .on('click keydown', '.agenda-list-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (_this.isPanning && !_this.allowClick && $(this).hasClass('open')) { return; } @@ -500,7 +532,11 @@ DynamicList.prototype.attachObservers = function() { }); }); }) - .on('click', '.agenda-detail-overlay-close, .agenda-detail-overlay-screen', function(event) { + .on('click keydown', '.agenda-detail-overlay-close, .agenda-detail-overlay-screen', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var result; if ($(this).hasClass('go-previous-screen')) { @@ -563,7 +599,11 @@ DynamicList.prototype.attachObservers = function() { return; } }) - .on('click', '.agenda-date-selector li', function() { + .on('click keydown', '.agenda-date-selector li', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + // prevents clicking the active one // prevents clicking the placeholder if ($(this).hasClass('active') || $(this).hasClass('placeholder')) { @@ -592,7 +632,11 @@ DynamicList.prototype.attachObservers = function() { return; } }) - .on('click', '.dynamic-list-add-item', function() { + .on('click keydown', '.dynamic-list-add-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.addEntryLinkAction) { return; } @@ -624,7 +668,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-edit-item', function() { + .on('click keydown', '.dynamic-list-edit-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.editEntryLinkAction) { return; } @@ -658,7 +706,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-delete-item', function() { + .on('click keydown', '.dynamic-list-delete-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var _that = $(this); var entryID = $(this).parents('.agenda-item-inner-content').data('entry-id'); var options = { @@ -720,7 +772,11 @@ DynamicList.prototype.attachObservers = function() { Fliplet.UI.Actions(options); }); }) - .on('click', '.agenda-detail-overlay .bookmark-wrapper, .search-results-wrapper .bookmark-wrapper', function() { + .on('click keydown', '.agenda-detail-overlay .bookmark-wrapper, .search-results-wrapper .bookmark-wrapper', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var id = $(this).parents('.agenda-detail-wrapper, .agenda-list-item').data('entry-id'); var record = _.find(_this.listItems, { id: id }); diff --git a/js/layout-javascript/news-feed-code.js b/js/layout-javascript/news-feed-code.js index f8673061..655f6489 100644 --- a/js/layout-javascript/news-feed-code.js +++ b/js/layout-javascript/news-feed-code.js @@ -166,7 +166,11 @@ DynamicList.prototype.attachObservers = function() { _this.hideFilterOverlay(); _this.clearFilters(); }) - .on('click', '.hidden-filter-controls-filter', function() { + .on('click keydown', '.hidden-filter-controls-filter', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $filter = $(this); Fliplet.Analytics.trackEvent({ @@ -199,7 +203,12 @@ DynamicList.prototype.attachObservers = function() { _this.allowClick = true; }, 100); }) - .on('click', '.news-feed-list-item', function(event) { + .on('click keydown', '.news-feed-list-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + + if ($(event.target).hasClass('news-feed-info-holder') || $(event.target).parents('.news-feed-info-holder').length) { return; } @@ -247,7 +256,11 @@ DynamicList.prototype.attachObservers = function() { } }); }) - .on('click', '.news-feed-detail-overlay-close, .news-feed-detail-overlay-screen', function(event) { + .on('click keydown', '.news-feed-detail-overlay-close, .news-feed-detail-overlay-screen', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var result; if ($(this).hasClass('go-previous-screen')) { @@ -280,7 +293,11 @@ DynamicList.prototype.attachObservers = function() { _this.closeDetails(); }) - .on('click', '.list-search-icon .fa-sliders', function(event) { + .on('click keydown', '.list-search-icon .fa-sliders', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $elementClicked = $(this); var $parentElement = $elementClicked.parents('.new-news-feed-list-container'); @@ -301,6 +318,7 @@ DynamicList.prototype.attachObservers = function() { $parentElement.find('.hidden-filter-controls').addClass('active'); $parentElement.find('.list-search-cancel').addClass('active'); + $parentElement.find('[data-filter-group]').prop('hidden', null); $elementClicked.addClass('active'); _this.calculateFiltersHeight($parentElement); @@ -345,12 +363,17 @@ DynamicList.prototype.attachObservers = function() { _this.$container.find('.clear-filters').removeClass('hidden'); }) - .on('click', '.list-search-cancel', function(event) { + .on('click keydown', '.list-search-cancel', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + // Hide filters $(this).removeClass('active'); _this.$container.find('.hidden-filter-controls').removeClass('active'); _this.$container.find('.list-search-icon .fa-sliders').removeClass('active'); _this.$container.find('.hidden-filter-controls').animate({ height: 0 }, 200); + _this.$container.find('[data-filter-group]').prop('hidden', true); // Clear filters _this.clearFilters(); @@ -419,7 +442,11 @@ DynamicList.prototype.attachObservers = function() { _this.isSearching = true; _this.searchData(value); }) - .on('click', '.clear-search', function() { + .on('click keydown', '.clear-search', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + _this.$container.find('.new-news-feed-list-container').removeClass('searching'); _this.isSearching = false; _this.searchData(''); @@ -430,8 +457,14 @@ DynamicList.prototype.attachObservers = function() { .on('hide.bs.collapse', '.news-feed-filters-panel .panel-collapse', function() { $(this).siblings('.panel-heading').find('.fa-angle-up').removeClass('fa-angle-up').addClass('fa-angle-down'); }) - .on('click', '.news-feed-comment-holder', function(e) { - e.stopPropagation(); + .on('click keydown', '.news-feed-comment-holder', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + + _this.$container.find('.news-feed-list-wrapper').hide(); + + event.stopPropagation(); var identifier; if (_this.$container.find('.new-news-feed-list-container').hasClass('overlay-open')) { identifier = $(this).parents('.news-feed-details-content-holder').data('entry-id'); @@ -446,14 +479,23 @@ DynamicList.prototype.attachObservers = function() { action: 'comments_open' }); }) - .on('click', '.news-feed-comment-close-panel', function() { + .on('click keydown', '.news-feed-comment-close-panel', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + + _this.$container.find('.news-feed-list-wrapper').show(); _this.$container.find('.new-news-feed-comment-panel').removeClass('open'); _this.$container.find('.news-feed-list-item.open .slide-over').removeClass('lock'); if (!_this.$container.find('.news-feed-detail-overlay').hasClass('open')) { $('body').removeClass('lock'); } }) - .on('click', '.news-feed-comment-input-holder .comment', function() { + .on('click keydown', '.news-feed-comment-input-holder .comment', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var entryId = _this.$container.find('.news-feed-list-item.open').data('entry-id') || _this.entryClicked; var $commentArea = $(this).parents('.news-feed-comment-input-holder').find('[data-comment-body]'); var comment = $commentArea.val().trim(); @@ -511,7 +553,11 @@ DynamicList.prototype.attachObservers = function() { $(this).parents('.news-feed-comment-input-holder').removeClass('ready'); } }) - .on('click', '.news-feed-comment-input-holder .save', function() { + .on('click keydown', '.news-feed-comment-input-holder .save', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var commentId = _this.$container.find('.fl-individual-comment.editing').data('id'); var entryId = _this.$container.find('.news-feed-list-item.open').data('entry-id') || _this.entryClicked; var $commentArea = $(this).parents('.news-feed-comment-input-holder').find('[data-comment-body]'); @@ -531,7 +577,11 @@ DynamicList.prototype.attachObservers = function() { action: 'comment_save_edit' }); }) - .on('click', '.news-feed-comment-input-holder .cancel', function() { + .on('click keydown', '.news-feed-comment-input-holder .cancel', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + _this.$container.find('.fl-individual-comment').removeClass('editing'); _this.$container.find('.news-feed-comment-input-holder').removeClass('editing'); @@ -539,8 +589,12 @@ DynamicList.prototype.attachObservers = function() { $messageArea.val('').trigger('change'); autosize.update($messageArea); }) - .on('click', '.final .fl-comment-value', function(e) { - e.preventDefault(); + .on('click keydown', '.final .fl-comment-value', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + + event.preventDefault(); var _that = $(this); var commentId = $(this).parents('.fl-individual-comment').data('id'); var $parentContainer = $(this).parents('.fl-individual-comment'); @@ -637,7 +691,11 @@ DynamicList.prototype.attachObservers = function() { action: 'comment_options' }); }) - .on('click', '.dynamic-list-add-item', function() { + .on('click keydown', '.dynamic-list-add-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.addEntryLinkAction) { return; } @@ -669,7 +727,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-edit-item', function() { + .on('click keydown', '.dynamic-list-edit-item', function() { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.editEntryLinkAction) { return; } @@ -703,7 +765,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-delete-item', function() { + .on('click keydown', '.dynamic-list-delete-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var _that = $(this); var entryID = $(this).parents('.news-feed-details-content-holder').data('entry-id'); var options = { @@ -763,13 +829,21 @@ DynamicList.prototype.attachObservers = function() { Fliplet.UI.Actions(options); }); }) - .on('click', '.toggle-bookmarks', function () { + .on('click keydown', '.toggle-bookmarks', function (event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $toggle = $(this); $toggle.toggleClass('mixitup-control-active'); _this.searchData(); }) - .on('click', '.news-feed-detail-overlay .news-feed-bookmark-wrapper', function() { + .on('click keydown', '.news-feed-detail-overlay .news-feed-bookmark-wrapper', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var id = $(this).parents('.news-feed-details-content-holder').data('entry-id'); var record = _.find(_this.listItems, { id: id }); @@ -786,7 +860,11 @@ DynamicList.prototype.attachObservers = function() { $(this).parents('.news-feed-bookmark-holder').removeClass('not-bookmarked').addClass('bookmarked'); record.bookmarkButton.like(); }) - .on('click', '.news-feed-detail-overlay .news-feed-like-wrapper', function() { + .on('click keydown', '.news-feed-detail-overlay .news-feed-like-wrapper', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var id = $(this).parents('.news-feed-details-content-holder').data('entry-id'); var record = _.find(_this.listItems, { id: id }); diff --git a/js/layout-javascript/simple-list-code.js b/js/layout-javascript/simple-list-code.js index d08138b2..8c6b786b 100644 --- a/js/layout-javascript/simple-list-code.js +++ b/js/layout-javascript/simple-list-code.js @@ -159,7 +159,11 @@ DynamicList.prototype.attachObservers = function() { _this.hideFilterOverlay(); _this.clearFilters(); }) - .on('click', '.hidden-filter-controls-filter', function(event) { + .on('click keydown', '.hidden-filter-controls-filter', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $filter = $(this); Fliplet.Analytics.trackEvent({ @@ -177,7 +181,11 @@ DynamicList.prototype.attachObservers = function() { }, 0); } }) - .on('click', '.simple-list-item', function(event) { + .on('click keydown', '.simple-list-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if ($(event.target).hasClass('simple-list-social-holder') || $(event.target).parents('.simple-list-social-holder').length) { return; } @@ -223,7 +231,11 @@ DynamicList.prototype.attachObservers = function() { }); }); }) - .on('click', '.simple-list-detail-overlay-close, .simple-list-detail-overlay-screen', function(event) { + .on('click keydown', '.simple-list-detail-overlay-close', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var result; if ($(this).hasClass('go-previous-screen')) { @@ -256,7 +268,11 @@ DynamicList.prototype.attachObservers = function() { _this.closeDetails(); }) - .on('click', '.list-search-icon .fa-sliders', function(event) { + .on('click keydown', '.list-search-icon .fa-sliders', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $elementClicked = $(this); var $parentElement = $elementClicked.parents('.simple-list-container'); @@ -278,6 +294,7 @@ DynamicList.prototype.attachObservers = function() { $parentElement.find('.hidden-filter-controls').addClass('active'); $parentElement.find('.list-search-cancel').addClass('active'); $elementClicked.addClass('active'); + $parentElement.find('[data-filter-group]').prop('hidden', null); _this.calculateFiltersHeight($parentElement); @@ -321,12 +338,17 @@ DynamicList.prototype.attachObservers = function() { _this.$container.find('.clear-filters').removeClass('hidden'); }) - .on('click', '.list-search-cancel', function(event) { + .on('click keydown', '.list-search-cancel', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + // Hide filters $(this).removeClass('active'); _this.$container.find('.hidden-filter-controls').removeClass('active'); _this.$container.find('.list-search-icon .fa-sliders').removeClass('active'); _this.$container.find('.hidden-filter-controls').animate({ height: 0 }, 200); + _this.$container.find('[data-filter-group]').prop('hidden', true); // Clear filters _this.clearFilters(); @@ -395,7 +417,11 @@ DynamicList.prototype.attachObservers = function() { _this.isSearching = true; _this.searchData(value); }) - .on('click', '.clear-search', function() { + .on('click keydown', '.clear-search', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + _this.$container.find('.simple-list-container').removeClass('searching'); _this.isSearching = false; _this.searchData(''); @@ -406,8 +432,12 @@ DynamicList.prototype.attachObservers = function() { .on('hide.bs.collapse', '.simple-list-filters-panel .panel-collapse', function() { $(this).siblings('.panel-heading').find('.fa-angle-up').removeClass('fa-angle-up').addClass('fa-angle-down'); }) - .on('click', '.simple-list-comment-holder', function(e) { - e.stopPropagation(); + .on('click keydown', '.simple-list-comment-holder', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + + event.stopPropagation(); var identifier; if (_this.$container.find('.simple-list-container').hasClass('overlay-open')) { identifier = $(this).parents('.simple-list-details-holder').data('entry-id'); @@ -422,14 +452,22 @@ DynamicList.prototype.attachObservers = function() { action: 'comments_open' }); }) - .on('click', '.simple-list-comment-close-panel', function() { + .on('click keydown', '.simple-list-comment-close-panel', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + _this.$container.find('.simple-list-comment-panel').removeClass('open'); _this.$container.find('.simple-list-detail-overlay-content-holder').removeClass('lock'); if (!_this.$container.find('.simple-list-container').hasClass('overlay-open')) { $('body').removeClass('lock'); } }) - .on('click', '.simple-list-comment-input-holder .comment', function() { + .on('click keydown', '.simple-list-comment-input-holder .comment', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var entryId = _this.entryClicked; var $commentArea = $(this).parents('.simple-list-comment-input-holder').find('[data-comment-body]'); var comment = $commentArea.val().trim(); @@ -515,7 +553,11 @@ DynamicList.prototype.attachObservers = function() { $messageArea.val('').trigger('change'); autosize.update($messageArea); }) - .on('click', '.final .fl-comment-value', function(e) { + .on('click keydown', '.final .fl-comment-value', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + e.preventDefault(); var _that = $(this); var commentId = $(this).parents('.fl-individual-comment').data('id'); @@ -613,7 +655,11 @@ DynamicList.prototype.attachObservers = function() { action: 'comment_options' }); }) - .on('click', '.dynamic-list-add-item', function() { + .on('click keydown', '.dynamic-list-add-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.addEntryLinkAction) { return; } @@ -645,7 +691,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-edit-item', function() { + .on('click keydown', '.dynamic-list-edit-item', function() { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.editEntryLinkAction) { return; } @@ -679,7 +729,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-delete-item', function() { + .on('click keydown', '.dynamic-list-delete-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var _that = $(this); var entryID = $(this).parents('.simple-list-detail-overlay-content').find('.simple-list-detail-wrapper').data('entry-id'); var options = { @@ -738,13 +792,21 @@ DynamicList.prototype.attachObservers = function() { Fliplet.UI.Actions(options); }); }) - .on('click', '.toggle-bookmarks', function (event) { + .on('click keydown', '.toggle-bookmarks', function (event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $toggle = $(this); $toggle.toggleClass('mixitup-control-active'); _this.searchData(); }) - .on('click', '.simple-list-detail-overlay .simple-list-bookmark-wrapper', function() { + .on('click keydown', '.simple-list-detail-overlay .simple-list-bookmark-wrapper', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var id = $(this).parents('.simple-list-details-holder').data('entry-id'); var record = _.find(_this.listItems, { id: id }); @@ -761,7 +823,11 @@ DynamicList.prototype.attachObservers = function() { $(this).parents('.simple-list-bookmark-holder').removeClass('not-bookmarked').addClass('bookmarked'); record.bookmarkButton.like(); }) - .on('click', '.simple-list-detail-overlay .simple-list-like-wrapper', function() { + .on('click keydown', '.simple-list-detail-overlay .simple-list-like-wrapper', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var id = $(this).parents('.simple-list-details-holder').data('entry-id'); var record = _.find(_this.listItems, { id: id }); diff --git a/js/layout-javascript/small-card-code.js b/js/layout-javascript/small-card-code.js index 6795e6fe..fb411cd7 100644 --- a/js/layout-javascript/small-card-code.js +++ b/js/layout-javascript/small-card-code.js @@ -165,7 +165,11 @@ DynamicList.prototype.attachObservers = function() { _this.hideFilterOverlay(); _this.clearFilters(); }) - .on('click', '.hidden-filter-controls-filter', function() { + .on('click keydown', '.hidden-filter-controls-filter', function() { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $filter = $(this); Fliplet.Analytics.trackEvent({ @@ -224,7 +228,11 @@ DynamicList.prototype.attachObservers = function() { action: 'profile_open' }); }) - .on('click', '.small-card-list-item', function(event) { + .on('click keydown', '.small-card-list-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var _that = $(this); if ($(event.target).hasClass('small-card-bookmark-holder') || $(event.target).parents('.small-card-bookmark-holder').length) { @@ -279,9 +287,13 @@ DynamicList.prototype.attachObservers = function() { }); }); }) - .on('click', '.small-card-detail-overlay-close, .small-card-detail-overlay-screen', function(event) { + .on('click keydown', '.small-card-detail-overlay-close, .small-card-detail-overlay-screen', function(event) { event.stopPropagation(); + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var result; if ($(this).hasClass('go-previous-screen')) { @@ -327,7 +339,11 @@ DynamicList.prototype.attachObservers = function() { Fliplet.Page.Context.remove('dynamicListOpenId'); }) - .on('click', '.list-search-icon .fa-sliders', function(event) { + .on('click keydown', '.list-search-icon .fa-sliders', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var $elementClicked = $(this); var $parentElement = $elementClicked.parents('.new-small-card-list-container'); @@ -349,6 +365,7 @@ DynamicList.prototype.attachObservers = function() { $parentElement.find('.hidden-filter-controls').addClass('active'); $parentElement.find('.list-search-cancel').addClass('active'); $elementClicked.addClass('active'); + $parentElement.find('[data-filter-group]').prop('hidden', null); _this.calculateFiltersHeight($parentElement); @@ -396,12 +413,16 @@ DynamicList.prototype.attachObservers = function() { _this.$container.find('.clear-filters').removeClass('hidden'); }) - .on('click', '.list-search-cancel', function(event) { + .on('click keydown', '.list-search-cancel', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } // Hide filters $(this).removeClass('active'); _this.$container.find('.hidden-filter-controls').removeClass('active'); _this.$container.find('.list-search-icon .fa-sliders').removeClass('active'); _this.$container.find('.hidden-filter-controls').animate({ height: 0 }, 200); + _this.$container.find('[data-filter-group]').prop('hidden', true); // Clear filters _this.clearFilters(); @@ -470,7 +491,11 @@ DynamicList.prototype.attachObservers = function() { _this.isSearching = true; _this.searchData(value); }) - .on('click', '.clear-search', function() { + .on('click keydown', '.clear-search', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + _this.$container.find('.new-small-card-list-container').removeClass('searching'); _this.isSearching = false; _this.searchData(''); @@ -481,7 +506,11 @@ DynamicList.prototype.attachObservers = function() { .on('hide.bs.collapse', '.small-card-filters-panel .panel-collapse', function() { $(this).siblings('.panel-heading').find('.fa-angle-up').removeClass('fa-angle-up').addClass('fa-angle-down'); }) - .on('click', '.dynamic-list-add-item', function() { + .on('click keydown', '.dynamic-list-add-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.addEntryLinkAction) { return; } @@ -513,7 +542,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-edit-item', function() { + .on('click keydown', '.dynamic-list-edit-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.editEntryLinkAction) { return; } @@ -547,7 +580,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-delete-item', function() { + .on('click keydown', '.dynamic-list-delete-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var _that = $(this); var entryID = $(this).parents('.small-card-detail-overlay').find('.small-card-list-detail-content-scroll-wrapper').data('entry-id'); var options = { @@ -613,8 +650,8 @@ DynamicList.prototype.attachObservers = function() { Fliplet.UI.Actions(options); }); }) - .on('click', '.toggle-bookmarks', function (event) { - if (event.type !== 'click' && event.keyCode !== 32 && event.keyCode !== 13) { + .on('click keydown', '.toggle-bookmarks', function (event) { + if (!_this.Utils.Event.isExecute(event)) { return; } diff --git a/js/layout-javascript/small-h-card-code.js b/js/layout-javascript/small-h-card-code.js index 4c5b94ff..3cdecf5a 100644 --- a/js/layout-javascript/small-h-card-code.js +++ b/js/layout-javascript/small-h-card-code.js @@ -99,7 +99,11 @@ DynamicList.prototype.attachObservers = function() { _this.allowClick = true; }, 100); }) - .on('click', '.small-h-card-list-item', function(event) { + .on('click keydown', '.small-h-card-list-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var _that = $(this); var entryId = $(this).data('entry-id'); var entryTitle = $(this).find('.small-h-card-list-item-text').text().trim(); @@ -149,9 +153,13 @@ DynamicList.prototype.attachObservers = function() { }); }); }) - .on('click', '.small-h-card-detail-overlay-close, .small-h-card-detail-overlay-screen', function(event) { + .on('click keydown', '.small-h-card-detail-overlay-close, .small-h-card-detail-overlay-screen', function(event) { event.stopPropagation(); + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var result; if ($(this).hasClass('go-previous-screen')) { @@ -197,7 +205,11 @@ DynamicList.prototype.attachObservers = function() { Fliplet.Page.Context.remove('dynamicListOpenId'); }) - .on('click', '.dynamic-list-add-item', function() { + .on('click keydown', '.dynamic-list-add-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.addEntryLinkAction) { return; } @@ -229,7 +241,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-edit-item', function() { + .on('click keydown', '.dynamic-list-edit-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + if (!_this.data.editEntryLinkAction) { return; } @@ -263,7 +279,11 @@ DynamicList.prototype.attachObservers = function() { }); } }) - .on('click', '.dynamic-list-delete-item', function() { + .on('click keydown', '.dynamic-list-delete-item', function(event) { + if (!_this.Utils.Event.isExecute(event)) { + return; + } + var _that = $(this); var entryID = $(this).parents('.small-h-card-detail-overlay').find('.small-h-card-list-detail-content-scroll-wrapper').data('entry-id'); var options = { diff --git a/js/utils.js b/js/utils.js index fe39bd41..3ea5230b 100644 --- a/js/utils.js +++ b/js/utils.js @@ -174,6 +174,14 @@ Fliplet.Registry.set('dynamicListUtils', (function () { }); } + function isExecute (event) { + if (event.type === 'click') { + return true; + } + + return event.type === 'keydown' && (event.keyCode === 13 || event.keyCode === 32) + } + function validateImageUrl(url) { if (_.isArray(url)) { return _.map(url, function (val) { @@ -1362,6 +1370,9 @@ Fliplet.Registry.set('dynamicListUtils', (function () { prepareData: prepareRecordsData, addComputedFields: addRecordsComputedFields }, + Event: { + isExecute: isExecute + }, User: { isAdmin: userIsAdmin, canAddRecord: userCanAddRecord diff --git a/templates/build/agenda-base.build.hbs b/templates/build/agenda-base.build.hbs index d151d3b0..a278bb16 100644 --- a/templates/build/agenda-base.build.hbs +++ b/templates/build/agenda-base.build.hbs @@ -35,7 +35,7 @@ \{{#if searchEnabled}}
    - +
    Search
    @@ -43,14 +43,14 @@ \{{#ifCond filtersEnabled '||' bookmarksEnabled}}
    \{{#ifCond bookmarksEnabled '&&' hasTopBar}} -
    +
    \{{/ifCond}} -
    +
    \{{#if filtersEnabled}} - + \{{/if}}
    \{{/ifCond}} @@ -129,7 +129,7 @@
    -
    +
    close icon
    @@ -138,6 +138,9 @@
    +
    + close icon +
    diff --git a/templates/build/agenda-cards-loop.build.hbs b/templates/build/agenda-cards-loop.build.hbs index 976be6bf..8d3c2b79 100644 --- a/templates/build/agenda-cards-loop.build.hbs +++ b/templates/build/agenda-cards-loop.build.hbs @@ -1,5 +1,5 @@ \{{#each this}} -
    +
    \{{#each this}}
    diff --git a/templates/build/agenda-dates-loop.build.hbs b/templates/build/agenda-dates-loop.build.hbs index b10207b5..68f8055c 100644 --- a/templates/build/agenda-dates-loop.build.hbs +++ b/templates/build/agenda-dates-loop.build.hbs @@ -1,5 +1,5 @@ \{{#each this}} -
  • +
  • \{{week}}
    \{{day}}
    \{{month}}
    diff --git a/templates/build/agenda-filters.build.hbs b/templates/build/agenda-filters.build.hbs index 3a6b32e5..cfe27f62 100644 --- a/templates/build/agenda-filters.build.hbs +++ b/templates/build/agenda-filters.build.hbs @@ -12,9 +12,9 @@
  • -
    +
    @@ -27,9 +27,9 @@
    Filter by \{{[name]}}
    -
    +
    diff --git a/templates/build/news-feed-base.build.hbs b/templates/build/news-feed-base.build.hbs index 8ef29363..5e882d17 100644 --- a/templates/build/news-feed-base.build.hbs +++ b/templates/build/news-feed-base.build.hbs @@ -40,7 +40,7 @@ \{{#if searchEnabled}}
    - +
    Search
    @@ -48,14 +48,14 @@ \{{#ifCond filtersEnabled '||' bookmarksEnabled}}
    \{{#if bookmarksEnabled}} -
    +
    \{{/if}} -
    +
    \{{#if filtersEnabled}} - + \{{/if}}
    \{{/ifCond}} @@ -123,7 +123,7 @@
    -
    +
    close icon
    @@ -132,6 +132,9 @@
    +
    + close icon +
    diff --git a/templates/build/news-feed-filters.build.hbs b/templates/build/news-feed-filters.build.hbs index deb745ba..14057ceb 100644 --- a/templates/build/news-feed-filters.build.hbs +++ b/templates/build/news-feed-filters.build.hbs @@ -12,9 +12,9 @@
    -
    +
    @@ -27,9 +27,9 @@
    Filter by \{{[name]}}
    -
    +
    diff --git a/templates/build/news-feed-loop.build.hbs b/templates/build/news-feed-loop.build.hbs index 8333d42d..41a3fedc 100644 --- a/templates/build/news-feed-loop.build.hbs +++ b/templates/build/news-feed-loop.build.hbs @@ -1,5 +1,5 @@ \{{#each this}} -
    +
    \{{#if [Image]}}
    diff --git a/templates/build/simple-list-base.build.hbs b/templates/build/simple-list-base.build.hbs index ab3778ad..69fb1eee 100644 --- a/templates/build/simple-list-base.build.hbs +++ b/templates/build/simple-list-base.build.hbs @@ -40,7 +40,7 @@ \{{#if searchEnabled}}
    - +
    Search
    @@ -48,14 +48,14 @@ \{{#ifCond filtersEnabled '||' bookmarksEnabled}}
    \{{#if bookmarksEnabled}} -
    +
    \{{/if}} -
    +
    \{{#if filtersEnabled}} - + \{{/if}}
    \{{/ifCond}} @@ -124,7 +124,7 @@
    -
    +
    close icon
    @@ -134,6 +134,9 @@
    +
    + close icon +
    diff --git a/templates/build/simple-list-filters.build.hbs b/templates/build/simple-list-filters.build.hbs index d7260f30..7627d8e7 100644 --- a/templates/build/simple-list-filters.build.hbs +++ b/templates/build/simple-list-filters.build.hbs @@ -12,9 +12,9 @@
    -
    +
    @@ -28,9 +28,9 @@
    Filter by \{{[name]}}
    -
    +
    diff --git a/templates/build/simple-list-loop.build.hbs b/templates/build/simple-list-loop.build.hbs index 2fc18e23..e6c234cc 100644 --- a/templates/build/simple-list-loop.build.hbs +++ b/templates/build/simple-list-loop.build.hbs @@ -1,5 +1,5 @@ \{{#each this}} -
    +
    \{{#if [Image]}}
    \{{/if}} diff --git a/templates/build/small-card-base.build.hbs b/templates/build/small-card-base.build.hbs index 31b47b41..1624677d 100644 --- a/templates/build/small-card-base.build.hbs +++ b/templates/build/small-card-base.build.hbs @@ -45,21 +45,21 @@ \{{#if searchEnabled}}
    - +
    Search
    \{{/if}}
    \{{#if bookmarksEnabled}} -
    +
    \{{/if}} -
    +
    \{{#if filtersEnabled}} - + \{{/if}}
    @@ -126,7 +126,7 @@
    -
    +
    close icon
    @@ -135,6 +135,9 @@
    +
    + close icon +
    diff --git a/templates/build/small-card-filters.build.hbs b/templates/build/small-card-filters.build.hbs index 0750de2c..8ca83b14 100644 --- a/templates/build/small-card-filters.build.hbs +++ b/templates/build/small-card-filters.build.hbs @@ -12,9 +12,9 @@
    -
    +
    @@ -27,9 +27,9 @@
    Filter by \{{[name]}}
    -
    +
    diff --git a/templates/build/small-card-loop.build.hbs b/templates/build/small-card-loop.build.hbs index ecaf3122..271411ef 100644 --- a/templates/build/small-card-loop.build.hbs +++ b/templates/build/small-card-loop.build.hbs @@ -1,5 +1,5 @@ \{{#each this}} -
    +
    \{{#if [Image]}} diff --git a/templates/build/small-h-card-base.build.hbs b/templates/build/small-h-card-base.build.hbs index cba00f98..c2bc538e 100644 --- a/templates/build/small-h-card-base.build.hbs +++ b/templates/build/small-h-card-base.build.hbs @@ -11,7 +11,7 @@
    -
    +
    close icon
    @@ -20,6 +20,9 @@
    +
    + close icon +
    diff --git a/templates/build/small-h-card-loop.build.hbs b/templates/build/small-h-card-loop.build.hbs index a6eed3a1..0b970c9f 100644 --- a/templates/build/small-h-card-loop.build.hbs +++ b/templates/build/small-h-card-loop.build.hbs @@ -1,5 +1,5 @@ \{{#each this}} -
    +