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:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user