Skip to content

Commit

Permalink
Merge pull request #169 from eea/develop
Browse files Browse the repository at this point in the history
Add editable placeholder on facets with text inputs
  • Loading branch information
avoinea authored Apr 4, 2019
2 parents b725a29 + 43ef9f6 commit 13db5e6
Show file tree
Hide file tree
Showing 78 changed files with 6,243 additions and 2,104 deletions.
9 changes: 9 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

12.0 - (2019-04-04)
---------------------
* Feature: Added MultiSelect Faceted Widget
[avoinea]
* Feature: Add editable placeholder on facets with text inputs
[avoinea]
* Bug fix: Fix Checkboxes/Radio widget More/Less i18n
[avoinea]

11.9 - (2019-03-29)
---------------------
* Change: Update theme colors to fit Plone 5 default theme colors
Expand Down
6 changes: 4 additions & 2 deletions eea/facetednavigation/browser/javascript/expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ jQuery.fn.collapsible = function(settings){
var options = {
maxitems: 0,
elements: 'li',
more: 'More',
less: 'Less',

events: {
refresh: 'widget-refresh',
Expand All @@ -28,9 +30,9 @@ jQuery.fn.collapsible = function(settings){
}

if(self.colapsed){
jQuery('a', self.button).text('More');
jQuery('a', self.button).text(options.more);
}else{
jQuery('a', self.button).text('Less');
jQuery('a', self.button).text(options.less);
}
self.button.show();

Expand Down
2 changes: 1 addition & 1 deletion eea/facetednavigation/browser/javascript/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Faceted.Form = {
this.form = jQuery('#faceted-form');
// Handle form submit event
this.area = jQuery('#faceted-results');
this.mode = this.form.attr('data-mode') || 'view';
this.mode = this.form.data('mode') || 'view';

// Faceted version
this.version = '';
Expand Down
5 changes: 5 additions & 0 deletions eea/facetednavigation/browser/stylesheets/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,8 @@
margin-top: 2em;
color: #b2b2b2;
}

#content-core .faceted-sections-buttons a,
.faceted-sections-buttons a {
border-bottom: none;
}
1 change: 0 additions & 1 deletion eea/facetednavigation/browser/template/macros.pt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
</div>
<div tal:attributes="
id string:${position}---${section_value}---widgets;
title section_title;
class string:faceted-drag-drop faceted-widgets faceted-${section_value}-widgets faceted-${position}-widgets;">
<tal:widget repeat="widget widgets">
<div tal:replace="structure widget"> Widget </div>
Expand Down
Loading

0 comments on commit 13db5e6

Please sign in to comment.