Skip to content

Commit

Permalink
Release angular-ui-tree 2.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Mohr committed Jul 2, 2016
1 parent 61a6472 commit 32b8172
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
# 2.17.0

* Updated Angular/angularfire references in bower.json
* Re-introduced feature to expand collapsed nodes when hovering another node [#783](https://github.com/angular-ui-tree/angular-ui-tree/pull/783)

# 2.16.0

* Updated Angular references to include 1.5
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "angular-ui-tree",
"version": "2.16.0",
"version": "2.17.0",
"homepage": "https://github.com/angular-ui-tree/angular-ui-tree",
"authors": [
"Jim Liu <https://github.com/JimLiu>",
Expand Down
10 changes: 9 additions & 1 deletion dist/angular-ui-tree.js
@@ -1,5 +1,5 @@
/**
* @license Angular UI Tree v2.16.0
* @license Angular UI Tree v2.17.0
* (c) 2010-2016. https://github.com/angular-ui-tree/angular-ui-tree
* License: MIT
*/
Expand Down Expand Up @@ -617,6 +617,7 @@
scope.init(controllersArr);

scope.collapsed = !!UiTreeHelper.getNodeAttribute(scope, 'collapsed') || treeConfig.defaultCollapsed;
scope.expandOnHover = !!UiTreeHelper.getNodeAttribute(scope, 'expandOnHover');
scope.sourceOnly = scope.nodropEnabled || scope.$treeScope.nodropEnabled;

scope.$watch(attrs.collapsed, function (val) {
Expand All @@ -631,7 +632,14 @@
});

scope.$watch(attrs.expandOnHover, function(val) {
if ((typeof val) == 'boolean') {
scope.expandOnHover = val;
}
});

scope.$watch('expandOnHover', function (val) {
UiTreeHelper.setNodeAttribute(scope, 'expandOnHover', val);
attrs.$set('expandOnHover', val);
});

scope.$on('angular-ui-tree:collapse-all', function () {
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-ui-tree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "angular-ui-tree",
"version": "2.16.0",
"version": "2.17.0",
"description": "An AngularJS UI component that can sort nested lists, provides drag & drop support and doesn't depend on jQuery",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion source/main.js
@@ -1,5 +1,5 @@
/**
* @license Angular UI Tree v2.16.0
* @license Angular UI Tree v2.17.0
* (c) 2010-2016. https://github.com/angular-ui-tree/angular-ui-tree
* License: MIT
*/
Expand Down

0 comments on commit 32b8172

Please sign in to comment.