From fabc884c7b61ccbac9db8d2259f2d5ecb177f415 Mon Sep 17 00:00:00 2001 From: Mike Hatfield Date: Thu, 22 May 2008 20:39:26 +0000 Subject: [PATCH] Merged V2.9 to HEAD 9229: Merged V2.1 to V2.9 8654: Office add-in client updates 8655: Office add-in UI updates 9230: Minor updates to Office add-in UI webscripts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9242 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/web/css/office.css | 38 ++++++++++++++----------- source/web/css/office_ie6.css | 2 +- source/web/scripts/office/navigation.js | 10 +++---- source/web/scripts/office/search.js | 2 +- source/web/scripts/office/tags.js | 2 +- 5 files changed, 30 insertions(+), 24 deletions(-) diff --git a/source/web/css/office.css b/source/web/css/office.css index e7ba6e317f..4e76bb09f3 100644 --- a/source/web/css/office.css +++ b/source/web/css/office.css @@ -175,16 +175,24 @@ input.button { display: none; } -.header { +.headerRow { clear: both; - font-weight: bold; float: left; - padding: 6px 2px 2px 4px; - height: 13px; - width: 282px; +} + +.headerWrapper { + float: left; + width: 288px; +} + +.header { + font-weight: bold; + margin: 0px 24px 0px 0px; + padding: 3px 2px 2px 4px; + height: 16px; overflow: hidden; text-overflow: ellipsis; - white-space:nowrap; + white-space: nowrap; } .tabHeader { @@ -205,23 +213,21 @@ input.button { .headerExtra { font-weight: normal; - float: right; - height: 13px; - margin: -13px 0px 0px 0px; + float: left; + margin: 0px 0px 0px -16px; + padding: 3px 0px 2px 0px; + width: 16px; } .taskKey { - float: left; margin: 0px 0px 0px 0px; - padding: 0px 0px 0px 0px; + padding: 0px 0px 0px 40px; } .toggle { background: transparent url("../images/office/arrow_up.gif") no-repeat; cursor: pointer; - display: block; float: left; - margin: -3px -1px 0px 4px; height: 16px; width: 16px; } @@ -284,7 +290,7 @@ input.button { clear: both; float: left; width: 282px; - height: 174px; + height: 173px; overflow: auto; border: 1px solid #cccccc; border-top: none; @@ -570,7 +576,7 @@ input.button { .taskParameters { border: 1px solid #ccc; margin: 4px; - height: 160px; + height: 168px; overflow: auto; } @@ -593,7 +599,7 @@ input.button { .taskValue select, .taskValue input, .taskValue textarea { font-family: tahoma, sans-serif; font-size: 8pt; - padding: 1px 0px 1px 2px; + padding: 1px 0px; width: 172px; } diff --git a/source/web/css/office_ie6.css b/source/web/css/office_ie6.css index 7cfa52d507..2edc0202b4 100644 --- a/source/web/css/office_ie6.css +++ b/source/web/css/office_ie6.css @@ -7,7 +7,7 @@ .toggle { margin-top: 0px; position: relative; - top: -2px; + left: -3px; } .containerBig, .containerBigAlt, .containerMedium, .containerSmall, .containerSearchTerms, .containerSearchResults, .containerTabMedium, #currentSpaceInfo, #myAlfrescoActions, #navigationActions, #documentActions { diff --git a/source/web/scripts/office/navigation.js b/source/web/scripts/office/navigation.js index c2f62d4273..175414a28a 100644 --- a/source/web/scripts/office/navigation.js +++ b/source/web/scripts/office/navigation.js @@ -179,10 +179,10 @@ var OfficeNavigation = OfficeAddin.showStatusText("Creating space...", "ajax_anim.gif", false); var actionURL = commandURL + "?a=newspace&p=" + nodeId; - actionURL += "&sn=" + encodeURI(spaceName); - actionURL += "&st=" + encodeURI(spaceTitle); - actionURL += "&sd=" + encodeURI(spaceDescription); - actionURL += "&t=" + encodeURI(spaceTemplate); + actionURL += "&sn=" + encodeURIComponent(spaceName); + actionURL += "&st=" + encodeURIComponent(spaceTitle); + actionURL += "&sd=" + encodeURIComponent(spaceDescription); + actionURL += "&t=" + encodeURIComponent(spaceTemplate); var myAjax = new Ajax(actionURL, { method: 'get', headers: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT'}, @@ -196,7 +196,7 @@ var OfficeNavigation = if (textResponse != "") { href += (href.indexOf("?") == -1) ? "?" : "&"; - href += "st=" + encodeURI(textResponse); + href += "st=" + encodeURIComponent(textResponse); } window.location.href = href; } diff --git a/source/web/scripts/office/search.js b/source/web/scripts/office/search.js index cbe1055219..e9ab2b872a 100644 --- a/source/web/scripts/office/search.js +++ b/source/web/scripts/office/search.js @@ -44,7 +44,7 @@ var OfficeSearch = var searchString = $('searchText').value; var maxResults = $('maxResults').value; - var actionURL = useTemplate + argPath + "&search=" + searchString + "&maxresults=" + maxResults; + var actionURL = useTemplate + argPath + "&search=" + encodeURIComponent(searchString) + "&maxresults=" + maxResults; var myAjax = new Ajax(actionURL, { method: 'get', headers: {'If-Modified-Since': 'Sat, 1 Jan 2000 00:00:00 GMT'}, diff --git a/source/web/scripts/office/tags.js b/source/web/scripts/office/tags.js index a15cff9a3b..2eae3c155b 100644 --- a/source/web/scripts/office/tags.js +++ b/source/web/scripts/office/tags.js @@ -40,7 +40,7 @@ var OfficeTags = var tagContainer, tagName, tagNameClass, tagCount; - tagCloud.empty(); + tagCloud.empty(); tagQuery.tags.each(function(tag, i) { tagNameClass = "tagName" + Math.round((tag.count - tagQuery.countMin) / scale);