Merge remote-tracking branch 'skttl/grid-editor-name-templates' into v8/dev
# Conflicts: # src/Umbraco.Web.UI.Client/src/views/propertyeditors/grid/grid.controller.js # src/Umbraco.Web.UI/config/grid.editors.config.js
This commit is contained in:
@@ -673,6 +673,7 @@ angular.module("umbraco")
|
||||
return ((spans / $scope.model.config.items.columns) * 100).toFixed(8);
|
||||
};
|
||||
|
||||
|
||||
$scope.clearPrompt = function (scopedObject, e) {
|
||||
scopedObject.deletePrompt = false;
|
||||
e.preventDefault();
|
||||
@@ -692,8 +693,15 @@ angular.module("umbraco")
|
||||
};
|
||||
|
||||
$scope.getTemplateName = function (control) {
|
||||
if (control.editor.nameExp) return control.editor.nameExp(control)
|
||||
return control.editor.name;
|
||||
var templateName = control.editor.name;
|
||||
if (control.editor.nameExp) {
|
||||
var valueOfTemplate = control.editor.nameExp(control);
|
||||
if (valueOfTemplate != "") {
|
||||
templateName += ": ";
|
||||
templateName += valueOfTemplate;
|
||||
}
|
||||
}
|
||||
return templateName;
|
||||
}
|
||||
|
||||
// *********************************************
|
||||
|
||||
Reference in New Issue
Block a user