Skip to content

Commit

Permalink
Include language selectors on 'chosen_jquery_selector' config (#2034)
Browse files Browse the repository at this point in the history
* Added upgrade hook

* Update CHANGELOG.txt

* Updated chosen_jquery_selector config on dkan_dataset_content_types

* Update CHANGELOG.txt
  • Loading branch information
MSolv authored and janette committed Jul 26, 2017
1 parent e1cb642 commit 93f0677
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
7.x-1.13.6
----------
- #2034 Added language selectors on 'chosen_jquery_selector' configuration.
- #2018 Additional test/devops improvements needed for deployment. See #2012, #2014, #2015 and #2016 for specifics.

7.x-1.13.5
Expand Down
9 changes: 9 additions & 0 deletions dkan.install
Original file line number Diff line number Diff line change
Expand Up @@ -378,3 +378,12 @@ function dkan_update_7021() {
->condition('eid', $eid)
->execute();
}

/**
* Update chosen_jquery_selector to include language selectors.
*/
function dkan_update_7022() {
// REF #1936, #1890.
variable_set('chosen_jquery_selector',
'.page-node select:not([class*="delta-order"], [name*="workbench_moderation"], [class*="filter-list"], [id*="delimiter"],[name*="sort_by"],[name*="sort_order"], [id*="lines-terminated-by"], [id*="lang-dropdown-select-language"])');
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function dkan_dataset_content_types_strongarm() {
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'chosen_jquery_selector';
$strongarm->value = '.page-node select:not([class*="delta-order"], [name*="workbench_moderation"], [class*="filter-list"], [id*="delimiter"],[name*="sort_by"],[name*="sort_order"], [id*="lines-terminated-by"])';
$strongarm->value = '.page-node select:not([class*="delta-order"], [name*="workbench_moderation"], [class*="filter-list"], [id*="delimiter"],[name*="sort_by"],[name*="sort_order"], [id*="lines-terminated-by"], [id*="lang-dropdown-select-language"])';
$export['chosen_jquery_selector'] = $strongarm;

$strongarm = new stdClass();
Expand Down

0 comments on commit 93f0677

Please sign in to comment.