-
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/layouts/grid/grid.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.html
index ac5d9a6ea3..70544bb965 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.html
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.html
@@ -1,4 +1,4 @@
-
+
@@ -22,6 +22,7 @@
parent-id="{{vm.nodeId}}"
files-uploaded="vm.onUploadComplete"
accept="{{vm.acceptedFileTypes}}"
+ max-file-size="{{vm.maxFileSize}}"
hide-dropzone="{{!vm.activeDrag && items.length > 0 }}"
compact="{{ items.length > 0 }}"
files-queued="vm.onFilesQueue">
@@ -35,7 +36,7 @@
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js
index b60caa514e..19a72146d6 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/grid/grid.listviewlayout.controller.js
@@ -15,8 +15,10 @@
vm.nodeId = $scope.contentId;
vm.acceptedFileTypes = mediaHelper.formatFileTypes(Umbraco.Sys.ServerVariables.umbracoSettings.imageFileTypes);
+ vm.maxFileSize = Umbraco.Sys.ServerVariables.umbracoSettings.maxFileSize + "KB";
vm.activeDrag = false;
vm.mediaDetailsTooltip = {};
+ vm.itemsWithoutFolders = [];
vm.dragEnter = dragEnter;
vm.dragLeave = dragLeave;
@@ -27,6 +29,26 @@
vm.selectFolder = selectFolder;
vm.clickItem = clickItem;
+ function activate() {
+ vm.itemsWithoutFolders = filterOutFolders($scope.items);
+ }
+
+ function filterOutFolders(items) {
+
+ var newArray = [];
+
+ for (var i = 0; items.length > i; i++) {
+ var item = items[i];
+ var isFolder = !mediaHelper.hasFilePropertyType(item);
+
+ if (!isFolder) {
+ newArray.push(item);
+ }
+ }
+
+ return newArray;
+ }
+
function dragEnter(el, event) {
vm.activeDrag = true;
}
@@ -60,7 +82,7 @@
}
function selectItem(selectedItem, $event, index) {
- listViewHelper.selectHandler(selectedItem, index, $scope.items, $scope.selection, $event);
+ listViewHelper.selectHandler(selectedItem, index, vm.itemsWithoutFolders, $scope.selection, $event);
}
function selectFolder(selectedItem, $event, index) {
@@ -71,6 +93,8 @@
$location.path($scope.entityType + '/' + $scope.entityType + '/edit/' + item.id);
}
+ activate();
+
}
angular.module("umbraco").controller("Umbraco.PropertyEditors.ListView.GridLayoutController", ListViewGridLayoutController);
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.html
index 717fee1383..e55af1f348 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.html
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.html
@@ -10,6 +10,7 @@
parent-id="{{vm.nodeId}}"
files-uploaded="vm.onUploadComplete"
accept="{{vm.acceptedFileTypes}}"
+ max-file-size="{{vm.maxFileSize}}"
hide-dropzone="{{!vm.activeDrag && items.length > 0 }}"
compact="{{ items.length > 0 }}"
files-queued="vm.onFilesQueue">
diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js
index 73718b2530..3716f9010a 100644
--- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/layouts/list/list.listviewlayout.controller.js
@@ -8,6 +8,7 @@
vm.nodeId = $scope.contentId;
vm.acceptedFileTypes = mediaHelper.formatFileTypes(Umbraco.Sys.ServerVariables.umbracoSettings.imageFileTypes);
+ vm.maxFileSize = Umbraco.Sys.ServerVariables.umbracoSettings.maxFileSize + "KB";
vm.activeDrag = false;
vm.selectItem = selectItem;
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..ad2ca705af 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($rootScope, $scope, $routeParams, $injector, notificationsService, iconHelper, dialogService, editorState, localizationService, $location, appState, $timeout, $q, mediaResource, listViewHelper) {
+function listViewController($rootScope, $scope, $routeParams, $injector, $cookieStore, notificationsService, iconHelper, dialogService, editorState, localizationService, $location, appState, $timeout, $q, mediaResource, listViewHelper) {
//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
@@ -70,7 +70,7 @@ function listViewController($rootScope, $scope, $routeParams, $injector, notific
],
layout: {
layouts: $scope.model.config.layouts,
- activeLayout: getFirstAllowedLayout($scope.model.config.layouts)
+ activeLayout: listViewHelper.getLayout($routeParams.id, $scope.model.config.layouts)
},
allowBulkPublish: true,
allowBulkUnpublish: true,
@@ -99,23 +99,9 @@ function listViewController($rootScope, $scope, $routeParams, $injector, notific
}
});
- function getFirstAllowedLayout(layouts) {
-
- var firstAllowedLayout = {};
-
- for (var i = 0; layouts.length > i; i++) {
-
- var layout = layouts[i];
-
- if (layout.selected === true) {
- firstAllowedLayout = layout;
- break;
- }
-
- }
-
- return firstAllowedLayout;
- }
+ $scope.selectLayout = function(selectedLayout) {
+ $scope.options.layout.activeLayout = listViewHelper.setLayout($routeParams.id, selectedLayout, $scope.model.config.layouts);
+ };
function showNotificationsAndReset(err, reload, successMsg) {
@@ -212,11 +198,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 +459,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..ad1144d4f5 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
@@ -51,18 +51,21 @@
+
+ active-layout="options.layout.activeLayout"
+ on-layout-select="selectLayout">
+
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/ClientDependency.config b/src/Umbraco.Web.UI/config/ClientDependency.config
index 2f0bc30fad..a0c0655dbe 100644
--- a/src/Umbraco.Web.UI/config/ClientDependency.config
+++ b/src/Umbraco.Web.UI/config/ClientDependency.config
@@ -10,7 +10,7 @@ NOTES:
* Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config
* A new version will invalidate both client and server cache and create new persisted files
-->
-
+
-
-
+
-
-
-
+
+
+
+
-
-
-
+
+
diff --git a/src/Umbraco.Web.UI/config/trees.config b/src/Umbraco.Web.UI/config/trees.config
index a89239144c..261617fd0c 100644
--- a/src/Umbraco.Web.UI/config/trees.config
+++ b/src/Umbraco.Web.UI/config/trees.config
@@ -9,16 +9,15 @@
-
-
+
-
-
-
+
+
+
+
-
-
-
+
+
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.
+
+
+