Skip to content

Commit

Permalink
remove crap, add chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Sep 9, 2016
1 parent 646ba9e commit 0016c9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/joomla/form/field/moduleorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
?>
<div id="parent_<?php echo $id; ?>" <?php echo $attr; ?> data-url="<?php echo 'index.php?option=com_modules&task=module.orderPosition&'
. $token; ?>" data-element="<?php echo 'parent_' . $id; ?>" data-ordering="<?php echo $ordering; ?>" data-position-element ="<?php
echo $element; ?>" data-client-id="<?php echo $clientId; ?>" data-name="<?php echo $name; ?>" data-attr="<?php echo $attr; ?>"></div>
echo $element; ?>" data-client-id="<?php echo $clientId; ?>" data-name="<?php echo $name; ?>"></div>
6 changes: 6 additions & 0 deletions media/system/js/moduleorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
$orders[i] = response.data[i].split(',');
}
writeDynaList('name="' + $name + '" id="' + $id +'"' + $attr, $orders, $originalPos, $originalPos, $originalOrder, $element);

if ($("#" + $field.data('element') + "_1")) {
var $el = $("#" + $field.data('element') + "_1");
$el.chosen('destroy');
$el.chosen();
}
}
}

Expand Down

0 comments on commit 0016c9e

Please sign in to comment.