oops no es6 support in 7.x

This commit is contained in:
Shannon
2019-07-22 13:41:26 +10:00
parent 06850ed25c
commit 6148ce4e52
4 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ angular.module("umbraco")
totalItems: 0,
totalPages: 0,
filter: '',
dataTypeId: dataTypeId,
dataTypeId: dataTypeId
};
//preload selected item

View File

@@ -10,7 +10,7 @@
vm.openMacroPicker = openMacroPicker;
vm.openEmbed = openEmbed;
const dataTypeId = ($scope.model && $scope.model.dataTypeId) ? $scope.model.dataTypeId : null;
var dataTypeId = ($scope.model && $scope.model.dataTypeId) ? $scope.model.dataTypeId : null;
function openLinkPicker(editor, currentTarget, anchorElement) {

View File

@@ -18,7 +18,7 @@
$scope.currentEditLink = null;
$scope.hasError = false;
const dataTypeId = ($scope.model && $scope.model.dataTypeId) ? $scope.model.dataTypeId : null;
var dataTypeId = ($scope.model && $scope.model.dataTypeId) ? $scope.model.dataTypeId : null;
$scope.internal = function($event) {

View File

@@ -52,7 +52,7 @@ angular.module("umbraco")
editorConfig.maxImageSize = tinyMceService.defaultPrevalues().maxImageSize;
}
const dataTypeId = ($scope.model && $scope.model.dataTypeId) ? $scope.model.dataTypeId : null;
var dataTypeId = ($scope.model && $scope.model.dataTypeId) ? $scope.model.dataTypeId : null;
//queue file loading
if (typeof tinymce === "undefined") { // Don't reload tinymce if already loaded