Skip to content

Commit

Permalink
Fix new batch users issues. (#150)
Browse files Browse the repository at this point in the history
* Initialize JS autocomplete for custom attributes in new batch users.

* Fix selector id for groups.
  • Loading branch information
MiguelVis authored Jan 27, 2020
1 parent 154a5e7 commit 41cefd5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/management/populate_selectbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function populate_plans($defaultOption = "Select Plan", $elementName = "", $cssC
*/
function populate_groups($defaultOption = "Select Group", $elementName = "", $cssClass = "form", $mode = "", $defaultOptionValue = "") {

echo "<select onChange=\"javascript:setStringText(this.id,'group')\" id='usergroup' $mode
echo "<select onChange=\"javascript:setStringText(this.id,'usergroup')\" id='usergroup' $mode
name='$elementName' class='$cssClass' tabindex=105 />
<option value='$defaultOptionValue'>$defaultOption</option>
<option value=''></option>";
Expand Down
13 changes: 12 additions & 1 deletion menu-mng-batch.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,15 @@



</div>
</div>

<?php
include_once("include/management/autocomplete.php");

if ($autoComplete) {
echo "<script type=\"text/javascript\">
/** Making dictAttributesCustom interactive **/
autoComEdit = new DHTMLSuite.autoComplete();
</script>";
}
?>

0 comments on commit 41cefd5

Please sign in to comment.