U4-4198, adding a specific save event to ensure that the related links title property is updated with its caption property

This commit is contained in:
Andy Rose
2015-02-05 09:19:47 +00:00
parent 227bd1cd7e
commit 77319301c6
2 changed files with 7 additions and 2 deletions

View File

@@ -38,7 +38,12 @@
$scope.cancelEdit = function(idx) {
$scope.model.value[idx].edit = false;
};
$scope.saveEdit = function (idx) {
$scope.model.value[idx].title = $scope.model.value[idx].caption;
$scope.model.value[idx].edit = false;
};
$scope.delete = function (idx) {
$scope.model.value.splice(idx, 1);
};

View File

@@ -47,7 +47,7 @@
</div>
<div class="btn-group" ng-show="link.edit">
<button type="button" class="btn btn-default" ng-click="cancelEdit($index)"><localize key="cancel">Cancel</localize></button>
<button type="button" class="btn btn-default" ng-click="cancelEdit($index)"><localize key="buttons_save">Save</localize></button>
<button type="button" class="btn btn-default" ng-click="saveEdit($index)"><localize key="buttons_save">Save</localize></button>
</div>
</td>