mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix to Upload action in MySpaces portlet when running in the JSF dashboard environment.
Fix to expanding space panel issue when clicking on a folder to navigate. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5907 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
<div class="spaceToolbarAction spaceToolbarActionUpload" title="Upload a new document" <#if home.hasPermission("CreateChildren")>onclick="MySpaces.upload(this);"</#if>>Upload</div>
|
<div class="spaceToolbarAction spaceToolbarActionUpload" title="Upload a new document" <#if home.hasPermission("CreateChildren")>onclick="MySpaces.upload(this);"</#if>>Upload</div>
|
||||||
<div class="spaceUploadPanel">
|
<div class="spaceUploadPanel">
|
||||||
<#-- Url encode the path value, and encode any single quotes to generate valid string -->
|
<#-- Url encode the path value, and encode any single quotes to generate valid string -->
|
||||||
<input class="spaceFormItem" type="submit" value="OK" onclick='MySpaces.uploadOK(this, "${path?url?replace("'","_%_")}");'>
|
<input class="spaceFormItem" type="button" value="OK" onclick='MySpaces.uploadOK(this, "${path?url?replace("'","_%_")}");'>
|
||||||
<input class="spaceFormItem" type="button" value="Cancel" onclick="MySpaces.closePopupPanel();">
|
<input class="spaceFormItem" type="button" value="Cancel" onclick="MySpaces.closePopupPanel();">
|
||||||
</div>
|
</div>
|
||||||
<#-- Create Space action -->
|
<#-- Create Space action -->
|
||||||
|
@@ -36,7 +36,7 @@ var MySpaces = {
|
|||||||
var navImgs = $$('#spacePanel .spaceNavLinkImg');
|
var navImgs = $$('#spacePanel .spaceNavLinkImg');
|
||||||
navLinks.each(function(navLink, i)
|
navLinks.each(function(navLink, i)
|
||||||
{
|
{
|
||||||
navLink.setHTML('<a href="' + MySpaces.ScriptUrlEncoder.encUrl(navLink.innerHTML.replace(/&/, "&")) + '">' + navImgs[i].innerHTML + '</a>');
|
navLink.setHTML('<span onclick="event.cancelBubble=true"><a href="' + MySpaces.ScriptUrlEncoder.encUrl(navLink.innerHTML.replace(/&/, "&")) + '">' + navImgs[i].innerHTML + '</a></span>');
|
||||||
navImgs[i].innerHTML = ""; // remove the html so the class is not selected during init()
|
navImgs[i].innerHTML = ""; // remove the html so the class is not selected during init()
|
||||||
});
|
});
|
||||||
// extract the count value from a hidden div and display it
|
// extract the count value from a hidden div and display it
|
||||||
|
Reference in New Issue
Block a user