@@ -67,14 +69,14 @@
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js
index 06b790b777..667dfd0f22 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js
@@ -1,7 +1,7 @@
//this controller simply tells the dialogs service to open a mediaPicker window
//with a specified callback, this callback will receive an object with a selection on it
-function contentPickerController($scope, dialogService, entityResource, editorState, $log, iconHelper, $routeParams, fileManager, contentEditingHelper, angularHelper) {
+function contentPickerController($scope, dialogService, entityResource, editorState, $log, iconHelper, $routeParams, fileManager, contentEditingHelper, angularHelper, navigationService, $location) {
function trim(str, chr) {
var rgxtrim = (!chr) ? new RegExp('^\\s+|\\s+$', 'g') : new RegExp('^' + chr + '+|' + chr + '+$', 'g');
@@ -49,6 +49,7 @@ function contentPickerController($scope, dialogService, entityResource, editorSt
//the default pre-values
var defaultConfig = {
multiPicker: false,
+ showOpenButton: false,
showEditButton: false,
showPathOnHover: false,
startNode: {
@@ -65,14 +66,17 @@ function contentPickerController($scope, dialogService, entityResource, editorSt
//Umbraco persists boolean for prevalues as "0" or "1" so we need to convert that!
$scope.model.config.multiPicker = ($scope.model.config.multiPicker === "1" ? true : false);
+ $scope.model.config.showOpenButton = ($scope.model.config.showOpenButton === "1" ? true : false);
$scope.model.config.showEditButton = ($scope.model.config.showEditButton === "1" ? true : false);
$scope.model.config.showPathOnHover = ($scope.model.config.showPathOnHover === "1" ? true : false);
-
+
var entityType = $scope.model.config.startNode.type === "member"
? "Member"
: $scope.model.config.startNode.type === "media"
? "Media"
: "Document";
+ $scope.allowOpenButton = entityType === "Document" || entityType === "Media";
+ $scope.allowEditButton = entityType === "Document";
//the dialog options for the picker
var dialogOptions = {
@@ -167,6 +171,21 @@ function contentPickerController($scope, dialogService, entityResource, editorSt
angularHelper.getCurrentForm($scope).$setDirty();
};
+ $scope.showNode = function (index) {
+ var item = $scope.renderModel[index];
+ var id = item.id;
+ var section = $scope.model.config.startNode.type.toLowerCase();
+
+ entityResource.getPath(id, entityType).then(function (path) {
+ navigationService.changeSection(section);
+ navigationService.showTree(section, {
+ tree: section, path: path, forceReload: false, activate: true
+ });
+ var routePath = section + "/" + section + "/edit/" + id.toString();
+ $location.path(routePath).search("");
+ });
+ }
+
$scope.add = function (item) {
var currIds = _.map($scope.renderModel, function (i) {
return i.id;
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.html
index f2b741d8dc..9f5f3fb60f 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.html
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.html
@@ -12,8 +12,10 @@
{{node.name}}
-
-
Edit
+
+
@@ -38,7 +40,7 @@
You can only have {{model.config.maxNumber}} items selected
-
+
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 fbbf6b7bdd..9ded7dc8df 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
@@ -212,11 +212,23 @@ function listViewController($rootScope, $scope, $routeParams, $injector, notific
$scope.reloadView($scope.contentId);
}
});
- }, 200));
+ }, 1000));
- $scope.enterSearch = function($event) {
+ $scope.filterResults = function (ev) {
+ //13: enter
+
+ switch (ev.keyCode) {
+ case 13:
+ $scope.options.pageNumber = 1;
+ $scope.actionInProgress = true;
+ $scope.reloadView($scope.contentId);
+ break;
+ }
+ };
+
+ $scope.enterSearch = function ($event) {
$($event.target).next().focus();
- }
+ };
$scope.isAnythingSelected = function() {
if ($scope.selection.length === 0) {
@@ -461,4 +473,4 @@ function listViewController($rootScope, $scope, $routeParams, $injector, notific
}
-angular.module("umbraco").controller("Umbraco.PropertyEditors.ListViewController", listViewController);
\ No newline at end of file
+angular.module("umbraco").controller("Umbraco.PropertyEditors.ListViewController", listViewController);
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 4eabec7436..487ba77b97 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
@@ -62,7 +62,7 @@
diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
index 85ceffbc46..44b9f978ef 100644
--- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
+++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
@@ -40,7 +40,8 @@
v4.5
true
-
+
+
@@ -1856,6 +1857,7 @@
+
diff --git a/src/Umbraco.Web.UI/Umbraco/Images/editor/renderbody.gif b/src/Umbraco.Web.UI/Umbraco/Images/editor/renderbody.gif
new file mode 100644
index 0000000000..1a84493fe9
Binary files /dev/null and b/src/Umbraco.Web.UI/Umbraco/Images/editor/renderbody.gif differ
diff --git a/src/Umbraco.Web.UI/Umbraco/js/install.loader.js b/src/Umbraco.Web.UI/Umbraco/js/install.loader.js
deleted file mode 100644
index 869521ec7d..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/js/install.loader.js
+++ /dev/null
@@ -1,17 +0,0 @@
-LazyLoad.js( [
- 'lib/jquery/jquery.min.js',
- /* 1.1.5 */
- 'lib/angular/1.1.5/angular.min.js',
- 'lib/angular/1.1.5/angular-cookies.min.js',
- 'lib/angular/1.1.5/angular-mobile.min.js',
- 'lib/angular/1.1.5/angular-mocks.js',
- 'lib/angular/1.1.5/angular-sanitize.min.js',
- 'lib/underscore/underscore-min.js',
- 'js/umbraco.installer.js',
- 'js/umbraco.directives.js'
- ], function () {
- jQuery(document).ready(function () {
- angular.bootstrap(document, ['ngSanitize', 'umbraco.install', 'umbraco.directives.validation']);
- });
- }
-);
\ No newline at end of file
diff --git a/src/Umbraco.Web.UI/config/Dashboard.Release.config b/src/Umbraco.Web.UI/config/Dashboard.Release.config
index a1607fc88f..4a998b0b80 100644
--- a/src/Umbraco.Web.UI/config/Dashboard.Release.config
+++ b/src/Umbraco.Web.UI/config/Dashboard.Release.config
@@ -72,7 +72,7 @@
views/dashboard/default/startupdashboardintro.html
-
+
diff --git a/src/Umbraco.Web.UI/umbraco/Install/Views/Index.cshtml b/src/Umbraco.Web.UI/umbraco/Install/Views/Index.cshtml
index 8171aad9e2..666f6a5b5a 100644
--- a/src/Umbraco.Web.UI/umbraco/Install/Views/Index.cshtml
+++ b/src/Umbraco.Web.UI/umbraco/Install/Views/Index.cshtml
@@ -45,7 +45,20 @@
-
{{installer.feedback}}
+
{{installer.feedback}}
+
+
+
There has been a problem with the build.
+
This might be because you could be offline or on a slow connection. Please try the following steps
+
+ - Make sure you have Node.js installed.
+ - Open command prompt and cd to \src\Umbraco.Web.UI.Client.
+ - Check to see if \src\Umbraco.Web.UI.Client\node_modules folder exists (this could be hidden); if so delete it.
+ - Run npm install; if successfull the node_modules folder should be created in the Umbraco.Web.UI.Client directory.
+ - Run build\Build.bat.
+
+
+