' +
//NOTE: This ins element is used to display the search icon if the node is a container/listview and the tree is currently in dialog
//'
' +
- '
' +
+ '
' +
'
' +
- '
' +
+ '
' +
//NOTE: These are the 'option' elipses
'
' +
'
' +
@@ -148,8 +148,17 @@ angular.module("umbraco.directives")
and emits it as a treeNodeSelect element if there is a callback object
defined on the tree
*/
- scope.select = function(n, ev) {
+ scope.select = function (n, ev) {
+ if (ev.ctrlKey ||
+ ev.shiftKey ||
+ ev.metaKey || // apple
+ (ev.button && ev.button === 1) // middle click, >IE9 + everyone else
+ ) {
+ return;
+ }
+
emitEvent("treeNodeSelect", { element: element, tree: scope.tree, node: n, event: ev });
+ ev.preventDefault();
};
/**
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js
index ebc4bcea7e..b1842b852a 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/util.directive.js
@@ -1,5 +1,5 @@
/**
-* @description Utillity directives for key and field events
+* @description Utility directives for key and field events
**/
angular.module('umbraco.directives')
diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/util/focuswhen.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/util/focuswhen.directive.js
index 7422dcfc35..88a0c0cbc1 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/util/focuswhen.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/util/focuswhen.directive.js
@@ -4,7 +4,9 @@ angular.module("umbraco.directives").directive('focusWhen', function ($timeout)
link: function (scope, elm, attrs, ctrl) {
attrs.$observe("focusWhen", function (newValue) {
if (newValue === "true") {
- elm.focus();
+ $timeout(function() {
+ elm.focus();
+ });
}
});
}
diff --git a/src/Umbraco.Web.UI.Client/src/less/canvasdesigner.less b/src/Umbraco.Web.UI.Client/src/less/canvasdesigner.less
index b28522db1c..52c4052975 100644
--- a/src/Umbraco.Web.UI.Client/src/less/canvasdesigner.less
+++ b/src/Umbraco.Web.UI.Client/src/less/canvasdesigner.less
@@ -2,8 +2,8 @@
/******* font-face *******/
@font-face {
- src: url('/Umbraco/assets/fonts/helveticons/helveticons.eot') !important;
- src: url('/Umbraco/assets/fonts/helveticons/helveticons.eot?#iefix') format('embedded-opentype'), url('/Umbraco/assets/fonts/helveticons/helveticons.ttf') format('truetype'), url('/Umbraco/assets/fonts/helveticons/helveticons.svg#icomoon') format('svg') !important;
+ src: url('assets/fonts/helveticons/helveticons.eot') !important;
+ src: url('assets/fonts/helveticons/helveticons.eot?#iefix') format('embedded-opentype'), url('assets/fonts/helveticons/helveticons.ttf') format('truetype'), url('assets/fonts/helveticons/helveticons.svg#icomoon') format('svg') !important;
}
/****************************/
diff --git a/src/Umbraco.Web.UI.Client/src/less/grid.less b/src/Umbraco.Web.UI.Client/src/less/grid.less
index 5871412ee2..0c966573de 100644
--- a/src/Umbraco.Web.UI.Client/src/less/grid.less
+++ b/src/Umbraco.Web.UI.Client/src/less/grid.less
@@ -155,7 +155,7 @@ body {
}
#speechbubble {
- z-index: 1000;
+ z-index: 1060;
position: absolute;
bottom: 100px;
left: 0;
@@ -266,4 +266,4 @@ body {
margin-left: 40px;
width: 85%!important;
}
-}
\ No newline at end of file
+}
diff --git a/src/Umbraco.Web.UI.Client/src/less/main.less b/src/Umbraco.Web.UI.Client/src/less/main.less
index fcdc683182..74010962f3 100644
--- a/src/Umbraco.Web.UI.Client/src/less/main.less
+++ b/src/Umbraco.Web.UI.Client/src/less/main.less
@@ -148,6 +148,11 @@ h5{
padding-top: 5px;
margin-left: 240px;
}
+
+.umb-user-panel .controls-row {
+ margin-left: 0px;
+}
+
.controls-row label {
display: inline-block
}
@@ -525,4 +530,4 @@ height:1px;
margin: 10px 0;
overflow: hidden;
-}
\ No newline at end of file
+}
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/help.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/help.html
index f066da8e7c..b9428fb242 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/help.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/help.html
@@ -37,7 +37,7 @@
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.controller.js
index 6e44c0465d..3ab4679731 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.controller.js
@@ -34,11 +34,12 @@ angular.module("umbraco")
$scope.submitFolder = function(e) {
if (e.keyCode === 13) {
e.preventDefault();
- $scope.showFolderInput = false;
-
+
mediaResource
.addFolder($scope.newFolderName, $scope.options.formData.currentFolder)
.then(function(data) {
+ $scope.showFolderInput = false;
+ $scope.newFolderName = "";
//we've added a new folder so lets clear the tree cache for that specific item
treeService.clearCache({
@@ -80,7 +81,7 @@ angular.module("umbraco")
$scope.options.formData.currentFolder = folder.id;
$scope.currentFolder = folder;
};
-
+
//This executes prior to the whole processing which we can use to get the UI going faster,
//this also gives us the start callback to invoke to kick of the whole thing
$scope.$on('fileuploadadd', function (e, data) {
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.html
index 597dcdaa4b..480edc4181 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/mediapicker.html
@@ -103,7 +103,8 @@
ng-show="showFolderInput"
ng-model="newFolderName"
ng-keydown="submitFolder($event)"
- on-blur="showFolderInput = false">
+ on-blur="showFolderInput = false"
+ focus-when="{{showFolderInput}}">
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.controller.js b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.controller.js
index 68579bb442..2002dc4ad9 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.controller.js
@@ -1,5 +1,5 @@
angular.module("umbraco")
- .controller("Umbraco.Dialogs.UserController", function ($scope, $location, $timeout, userService, historyService, eventsService, externalLoginInfo, authResource) {
+ .controller("Umbraco.Dialogs.UserController", function ($scope, $location, $timeout, userService, historyService, eventsService, externalLoginInfo, authResource, currentUserResource, formHelper) {
$scope.history = historyService.getCurrent();
$scope.version = Umbraco.Sys.ServerVariables.application.version + " assembly: " + Umbraco.Sys.ServerVariables.application.assemblyVersion;
@@ -102,4 +102,44 @@ angular.module("umbraco")
});
- });
\ No newline at end of file
+ //create the initial model for change password property editor
+ $scope.changePasswordModel = {
+ alias: "_umb_password",
+ view: "changepassword",
+ config: {},
+ value: {}
+ };
+
+ //go get the config for the membership provider and add it to the model
+ currentUserResource.getMembershipProviderConfig().then(function (data) {
+ $scope.changePasswordModel.config = data;
+ //ensure the hasPassword config option is set to true (the user of course has a password already assigned)
+ //this will ensure the oldPassword is shown so they can change it
+ $scope.changePasswordModel.config.hasPassword = true;
+ $scope.changePasswordModel.config.disableToggle = true;
+ });
+
+ ////this is the model we will pass to the service
+ //$scope.profile = {};
+
+ $scope.changePassword = function () {
+
+ if (formHelper.submitForm({ scope: $scope })) {
+ currentUserResource.changePassword($scope.changePasswordModel.value).then(function (data) {
+
+ //if the password has been reset, then update our model
+ if (data.value) {
+ $scope.changePasswordModel.value.generatedPassword = data.value;
+ }
+
+ formHelper.resetForm({ scope: $scope, notifications: data.notifications });
+
+ }, function (err) {
+
+ formHelper.handleError(err);
+
+ });
+ }
+ };
+
+ });
diff --git a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.html b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.html
index 8346acfabb..f80fc0bdc2 100644
--- a/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.html
+++ b/src/Umbraco.Web.UI.Client/src/views/common/dialogs/user.html
@@ -18,18 +18,25 @@