diff --git a/src/Umbraco.Web.UI.Client/lib/bootstrap/less/dropdowns.less b/src/Umbraco.Web.UI.Client/lib/bootstrap/less/dropdowns.less index bbfe3fd3e3..35730a6bba 100644 --- a/src/Umbraco.Web.UI.Client/lib/bootstrap/less/dropdowns.less +++ b/src/Umbraco.Web.UI.Client/lib/bootstrap/less/dropdowns.less @@ -80,6 +80,7 @@ line-height: @baseLineHeight; color: @dropdownLinkColor; white-space: nowrap; + cursor:pointer; } } diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js index 0dec3f6e0b..7ace23a988 100644 --- a/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js +++ b/src/Umbraco.Web.UI.Client/src/common/directives/components/upload/umbpropertyfileupload.directive.js @@ -222,7 +222,7 @@ }); //special check for a comma in the name - newVal += files[i].name.replace(',', '-') + ","; + newVal += files[i].name.split(',').join('-') + ","; if (isImage) { diff --git a/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js b/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js index aaa9a0ba72..9e3448f3b3 100644 --- a/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js +++ b/src/Umbraco.Web.UI.Client/src/controllers/navigation.controller.js @@ -307,12 +307,12 @@ function NavigationController($scope, $rootScope, $location, $log, $q, $routePar navInit = true; initNav(); } - else { - //keep track of the current section, when it changes change the state, and we listen for that event change above - if ($scope.currentSection != $routeParams.section) { - appState.setSectionState("currentSection", $routeParams.section); - } + + //keep track of the current section when it changes + if ($scope.currentSection != $routeParams.section) { + appState.setSectionState("currentSection", $routeParams.section); } + } }); } @@ -373,8 +373,7 @@ function NavigationController($scope, $rootScope, $location, $log, $q, $routePar //the nav is ready, let the app know eventsService.emit("app.navigationReady", { treeApi: $scope.treeApi }); - //finally set the section state - appState.setSectionState("currentSection", $routeParams.section); + } }); }); diff --git a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.html b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.html index 7a9ccd9b89..5046088d28 100644 --- a/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.html +++ b/src/Umbraco.Web.UI.Client/src/views/common/infiniteeditors/mediapicker/mediapicker.html @@ -32,12 +32,10 @@ no-dirty-check />
+ - -
diff --git a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html index 64fcf17232..dad9dc5ba9 100644 --- a/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html +++ b/src/Umbraco.Web.UI.Client/src/views/components/editor/umb-editor-content-header.html @@ -72,11 +72,10 @@ + current-section="{{menu.currentSection}}"> - \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js index b6bb5a2444..f90972a26b 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js @@ -1,4 +1,4 @@ -function listViewController($scope, $routeParams, $injector, $timeout, currentUserResource, notificationsService, iconHelper, editorState, localizationService, appState, mediaResource, listViewHelper, navigationService, editorService, overlayService, languageResource) { +function listViewController($scope, $routeParams, $injector, $timeout, currentUserResource, notificationsService, iconHelper, editorState, localizationService, appState, $location, listViewHelper, navigationService, editorService, overlayService, languageResource) { //this is a quick check to see if we're in create mode, if so just exit - we cannot show children for content // that isn't created yet, if we continue this will use the parent id in the route params which isn't what @@ -59,9 +59,9 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs items: [] }; - $scope.createAllowedButtonSingle = false; - $scope.createAllowedButtonSingleWithBlueprints = false; - $scope.createAllowedButtonMultiWithBlueprints = false; + $scope.createAllowedButtonSingle = false; + $scope.createAllowedButtonSingleWithBlueprints = false; + $scope.createAllowedButtonMultiWithBlueprints = false; //when this is null, we don't check permissions @@ -164,7 +164,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs allowBulkDelete: $scope.model.config.bulkActionPermissions.allowBulkDelete, cultureName: $routeParams.cculture ? $routeParams.cculture : $routeParams.mculture }; - + //watch for culture changes in the query strings and update accordingly $scope.$watch(function () { return $routeParams.cculture ? $routeParams.cculture : $routeParams.mculture; @@ -235,7 +235,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs if (successMsgPromise) { localizationService.localize("bulk_done") .then(function (v) { - successMsgPromise.then(function(successMsg) { + successMsgPromise.then(function (successMsg) { notificationsService.success(v, successMsg); }) }); @@ -263,11 +263,11 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs with simple values */ $scope.getContent = function (contentId) { - + $scope.reloadView($scope.contentId); } - $scope.reloadView = function (id) { + $scope.reloadView = function (id) { $scope.viewLoaded = false; $scope.folders = []; @@ -282,13 +282,13 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs if ($scope.listViewResultSet.items) { _.each($scope.listViewResultSet.items, function (e, index) { setPropertyValues(e); - if (e.contentTypeAlias === 'Folder') { - $scope.folders.push(e); - } - }); - } + if (e.contentTypeAlias === 'Folder') { + $scope.folders.push(e); + } + }); + } - $scope.viewLoaded = true; + $scope.viewLoaded = true; //NOTE: This might occur if we are requesting a higher page number than what is actually available, for example // if you have more than one page and you delete all items on the last page. In this case, we need to reset to the last @@ -329,7 +329,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs $scope.reloadView($scope.contentId); } } - + $scope.selectedItemsCount = function () { return $scope.selection.length; }; @@ -345,7 +345,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs function serial(selected, fn, getStatusMsg, index) { return fn(selected, index).then(function (content) { index++; - getStatusMsg(index, selected.length).then(function(value) { + getStatusMsg(index, selected.length).then(function (value) { $scope.bulkStatus = value; }); return index < selected.length ? serial(selected, fn, getStatusMsg, index) : content; @@ -365,7 +365,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs $scope.actionInProgress = true; - getStatusMsg(0, selected.length).then(function(value){ + getStatusMsg(0, selected.length).then(function (value) { $scope.bulkStatus = value; }); @@ -409,7 +409,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs function (total) { var key = (total === 1 ? "bulk_deletedItem" : "bulk_deletedItems"); return localizationService.localize(key, [total]); - }).then(function() { + }).then(function () { $scope.reloadView($scope.contentId); }); } @@ -420,7 +420,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs // check if any of the selected nodes has variants $scope.selection.forEach(selectedItem => { $scope.listViewResultSet.items.forEach(resultItem => { - if((selectedItem.id === resultItem.id || selectedItem.key === resultItem.key) && resultItem.variesByCulture) { + if ((selectedItem.id === resultItem.id || selectedItem.key === resultItem.key) && resultItem.variesByCulture) { variesByCulture = true; } }) @@ -437,9 +437,9 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs submit: function (model) { // create a comma seperated array of selected cultures let selectedCultures = []; - if(model.languages && model.languages.length > 0) { + if (model.languages && model.languages.length > 0) { model.languages.forEach(language => { - if(language.publish) { + if (language.publish) { selectedCultures.push(language.culture); } }); @@ -451,12 +451,12 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs overlayService.close(); } }; - + // if any of the selected nodes has variants we want to // show a dialog where the languages can be chosen - if(selectionHasVariants()) { + if (selectionHasVariants()) { languageResource.getAll() - .then(languages => { + .then(languages => { dialog.languages = languages; overlayService.open(dialog); }, error => { @@ -478,7 +478,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs function (total) { var key = (total === 1 ? "bulk_publishedItem" : "bulk_publishedItems"); return localizationService.localize(key, [total]); - }).then(function(){ + }).then(function () { $scope.reloadView($scope.contentId); }); } @@ -489,12 +489,12 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs view: "views/propertyeditors/listview/overlays/listviewunpublish.html", submitButtonLabelKey: "actions_unpublish", submit: function (model) { - + // create a comma seperated array of selected cultures let selectedCultures = []; - if(model.languages && model.languages.length > 0) { + if (model.languages && model.languages.length > 0) { model.languages.forEach(language => { - if(language.unpublish) { + if (language.unpublish) { selectedCultures.push(language.culture); } }); @@ -510,9 +510,9 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs // if any of the selected nodes has variants we want to // show a dialog where the languages can be chosen - if(selectionHasVariants()) { + if (selectionHasVariants()) { languageResource.getAll() - .then(languages => { + .then(languages => { dialog.languages = languages; overlayService.open(dialog); }, error => { @@ -534,7 +534,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs function (total) { var key = (total === 1 ? "bulk_unpublishedItem" : "bulk_unpublishedItems"); return localizationService.localize(key, [total]); - }).then(function(){ + }).then(function () { $scope.reloadView($scope.contentId); }); } @@ -700,27 +700,26 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs id = -1; } - //$scope.listViewAllowedTypes = getContentTypesCallback(id); - getContentTypesCallback(id).then(function (listViewAllowedTypes) { - var blueprints = false; - $scope.listViewAllowedTypes = listViewAllowedTypes; + getContentTypesCallback(id).then(function (listViewAllowedTypes) { + var blueprints = false; + $scope.listViewAllowedTypes = listViewAllowedTypes; - angular.forEach(listViewAllowedTypes, function (allowedType) { - angular.forEach(allowedType.blueprints, function (value, key) { - blueprints = true; - }); - }); + angular.forEach(listViewAllowedTypes, function (allowedType) { + angular.forEach(allowedType.blueprints, function (value, key) { + blueprints = true; + }); + }); - if (listViewAllowedTypes.length === 1 && blueprints === false) { - $scope.createAllowedButtonSingle = true; - } - if (listViewAllowedTypes.length === 1 && blueprints === true) { - $scope.createAllowedButtonSingleWithBlueprints = true; - } - if (listViewAllowedTypes.length > 1) { - $scope.createAllowedButtonMultiWithBlueprints = true; - } - }); + if (listViewAllowedTypes.length === 1 && blueprints === false) { + $scope.createAllowedButtonSingle = true; + } + if (listViewAllowedTypes.length === 1 && blueprints === true) { + $scope.createAllowedButtonSingleWithBlueprints = true; + } + if (listViewAllowedTypes.length > 1) { + $scope.createAllowedButtonMultiWithBlueprints = true; + } + }); $scope.contentId = id; @@ -735,7 +734,7 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs $scope.options.allowBulkMove || $scope.options.allowBulkDelete; - $scope.reloadView($scope.contentId); + $scope.reloadView($scope.contentId); } function getLocalizedKey(alias) { @@ -774,20 +773,20 @@ function listViewController($scope, $routeParams, $injector, $timeout, currentUs } - function createBlank(entityType,docTypeAlias) { - $location - .path("/" + entityType + "/" + entityType + "/edit/" + $scope.contentId) - .search("doctype=" + docTypeAlias + "&create=true"); - } + function createBlank(entityType, docTypeAlias) { + $location + .path("/" + entityType + "/" + entityType + "/edit/" + $scope.contentId) + .search("doctype=" + docTypeAlias + "&create=true"); + } - function createFromBlueprint(entityType,docTypeAlias, blueprintId) { - $location - .path("/" + entityType + "/" + entityType + "/edit/" + $scope.contentId) - .search("doctype=" + docTypeAlias + "&create=true&blueprintId=" + blueprintId); - } + function createFromBlueprint(entityType, docTypeAlias, blueprintId) { + $location + .path("/" + entityType + "/" + entityType + "/edit/" + $scope.contentId) + .search("doctype=" + docTypeAlias + "&create=true&blueprintId=" + blueprintId); + } - $scope.createBlank = createBlank; - $scope.createFromBlueprint = createFromBlueprint; + $scope.createBlank = createBlank; + $scope.createFromBlueprint = createFromBlueprint; //GO! initView(); diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html index e259c63c4f..dfd417ef78 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html @@ -11,25 +11,73 @@ -