Skip to content

Commit

Permalink
Restore tags selection (#291)
Browse files Browse the repository at this point in the history
In 2.7.0, tags are broken because they need the `data-interactive`
attribute. This commit simply adds it.

Fixes #279

Picked from 8841d38~1...31f2fbe
  • Loading branch information
nitriques committed Sep 21, 2017
1 parent d4c421f commit 60ac65f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fields/field.memberactivation.php
Expand Up @@ -208,7 +208,7 @@ public function displaySettingsPanel(XMLElement &$wrapper, $errors = NULL){
"fields[{$this->get('sortorder')}][code_expiry]", $this->get('code_expiry')
));

$ul = new XMLElement('ul', NULL, array('class' => 'tags singular'));
$ul = new XMLElement('ul', null, array('class' => 'tags singular', 'data-interactive' => 'data-interactive'));
$tags = fieldMemberActivation::findCodeExpiry();
foreach($tags as $name => $time) {
$ul->appendChild(new XMLElement('li', $name, array('class' => $time)));
Expand Down
2 changes: 1 addition & 1 deletion fields/field.memberpassword.php
Expand Up @@ -350,7 +350,7 @@ public function displaySettingsPanel(XMLElement &$wrapper, $errors = NULL){
"fields[{$this->get('sortorder')}][code_expiry]", $this->get('code_expiry')
));

$ul = new XMLElement('ul', NULL, array('class' => 'tags singular'));
$ul = new XMLElement('ul', null, array('class' => 'tags singular', 'data-interactive' => 'data-interactive'));
$tags = fieldMemberPassword::findCodeExpiry();
foreach($tags as $name => $time) {
$ul->appendChild(new XMLElement('li', $name, array('class' => $time)));
Expand Down

0 comments on commit 60ac65f

Please sign in to comment.