update insert code snippet infinite editor to use new insert field editor
This commit is contained in:
@@ -52,28 +52,20 @@
|
||||
}
|
||||
|
||||
function openPageFieldOverlay() {
|
||||
vm.pageFieldOverlay = {
|
||||
submitButtonLabel: "Insert",
|
||||
closeButtonlabel: "Cancel",
|
||||
view: "insertfield",
|
||||
show: true,
|
||||
var insertFieldEditor = {
|
||||
submit: function(model) {
|
||||
|
||||
$scope.model.insert = {
|
||||
"type": "umbracoField",
|
||||
"umbracoField": model.umbracoField
|
||||
};
|
||||
|
||||
$scope.model.submit($scope.model);
|
||||
|
||||
vm.pageFieldOverlay.show = false;
|
||||
vm.pageFieldOverlay = null;
|
||||
editorService.close();
|
||||
},
|
||||
close: function (model) {
|
||||
vm.pageFieldOverlay.show = false;
|
||||
vm.pageFieldOverlay = null;
|
||||
editorService.close();
|
||||
}
|
||||
};
|
||||
editorService.insertField(insertFieldEditor);
|
||||
}
|
||||
|
||||
function openDictionaryItemOverlay() {
|
||||
|
||||
@@ -60,9 +60,5 @@
|
||||
view="vm.macroPickerOverlay.view"
|
||||
position="right">
|
||||
</umb-overlay>
|
||||
<umb-overlay ng-if="vm.pageFieldOverlay.show"
|
||||
model="vm.pageFieldOverlay"
|
||||
position="right"
|
||||
view="vm.pageFieldOverlay.view">
|
||||
</umb-overlay>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user