auto focus add property when dialog closes
This commit is contained in:
@@ -366,6 +366,10 @@
|
||||
// push new init property to group
|
||||
addInitProperty(group);
|
||||
|
||||
// set focus on init property
|
||||
var numberOfProperties = group.properties.length;
|
||||
group.properties[numberOfProperties - 1].focus = true;
|
||||
|
||||
// push new init tab to the scope
|
||||
addInitGroup(scope.model.groups);
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
<li ng-class="{'umb-group-builder__property-sortable': sortingMode && !property.inherited}" ng-repeat="property in tab.properties">
|
||||
|
||||
<!-- Init property / Property placeholder / add new property -->
|
||||
<a href="" class="umb-group-builder__property -placeholder" ng-if="property.propertyState=='init' && !sortingMode" ng-class="{'-placeholder': property.propertyState=='init'}" hotkey="alt+shift+p" ng-click="addProperty(property, tab)">
|
||||
<a href="" class="umb-group-builder__property -placeholder" ng-if="property.propertyState=='init' && !sortingMode" ng-class="{'-placeholder': property.propertyState=='init'}" hotkey="alt+shift+p" ng-click="addProperty(property, tab)" focus-when="{{property.focus}}">
|
||||
|
||||
<div class="umb-group-builder__property-meta">
|
||||
<div class="umb-group-builder__placeholder-box -input-small"></div>
|
||||
|
||||
Reference in New Issue
Block a user