From 58f29af9f43a3ff1a19ebee161d1250187f123c3 Mon Sep 17 00:00:00 2001 From: Erik Winlof Date: Wed, 27 Aug 2008 16:22:17 +0000 Subject: [PATCH] Create site: - Gives a nice error for duplicate shortNames - service returns "error.duplicateShortName" as the message so a proper error message can be displayed to the client. Delete site - Icons for each site (a small typo had gone into the css in the previous commit) - Handles a failed delete better (i.e. because of lacking permissions) Full preview & Preview - Does only display their page navigation controls if more than 1 page exists - Does not display an error message if an invalid page is given (displays the last or first instead) Preview - Displays its controls above the preview instead of below Full Preview - If its an web image (jpeg, png, gif) it displays the actual image instead of a imgpreview Dashlets - All dashlets use Camel Case in their short name - New shortName for Docsummary: Recently Modified Files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../webscripts/org/alfresco/repository/site/sites.post.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/site/sites.post.js b/config/alfresco/templates/webscripts/org/alfresco/repository/site/sites.post.js index 71794c3651..188c6e1159 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/site/sites.post.js +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/site/sites.post.js @@ -12,7 +12,7 @@ function main() var site = siteService.getSite(shortName); if (site != null) { - status.setCode(status.STATUS_BAD_REQUEST, "error.shortName"); + status.setCode(status.STATUS_INTERNAL_SERVER_ERROR, "error.duplicateShortName"); return; }