mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.1 to HEAD
6609: Portlet UI (doclist, myspaces, mytasks) updates following design review 6610: AR-1270 6611: debugging WCM-778. 6612: Improved API documentation. 6613: Added store lookup cache to EHCache config for default and extended cluster sample 6614: AWC-1531 and AWC-1146. Link objects that have targets which the user does not have access to are now filtered from the view. 6615: AR-1664: Bootstraping from full export fails if file names differs only with a space: my file, my file 6616: Fixed AR-1519: Possible duplicate entries when moving nodes between stores 6617: Removed deprecated aspects; Added emailed aspect to messages; Added OOo command line options 6618: Fix for AWC-1350 6619: Fix for AWC-1509 6620: AWC-1179: Searching for users in Invite User Wizard is slow with large number of users 6621: Changed shutdown logic to avoid classloader cleanup race. 6622: Fix for AWC-1533 (can't save office docs to Company Home) 6623: Fix for AR-1705 6624: Better fix for AWC-1256 (links generated by tinyMCE editor) 6625: Fixed AR-1713: Transformers that do nothing don't break full text indexing 6626: Fixed AWC-1438: Added explcit TXT to PDF converter that wraps the PDFBox TextToPDF class 6627: Portlet templates now handle missing description property on web form 6628: Fix WCM-788 6635: Make workflow available for users who cannot see company home Resolved conflicted state of 'root\projects\repository\source\java\org\alfresco\repo\workflow\jbpm\JBPMEngine.java' git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6748 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -2,7 +2,7 @@ var MyDocs = {
|
||||
IMG_SMALL: 16,
|
||||
IMG_LARGE: 64,
|
||||
ANIM_LENGTH: 300,
|
||||
DETAIL_MARGIN: 56,
|
||||
DETAIL_MARGIN: 8,
|
||||
TITLE_FONT_SIZE: 18,
|
||||
RESOURCE_PANEL_HEIGHT: 150,
|
||||
OVERLAY_OPACITY: 0.8,
|
||||
@@ -20,6 +20,11 @@ var MyDocs = {
|
||||
// show AJAX loading overlay
|
||||
$('docPanelOverlayAjax').setStyle('visibility', 'visible');
|
||||
$('docPanel').setStyle('visibility', 'hidden');
|
||||
|
||||
var messagePanel = $('docMessagePanel');
|
||||
messagePanel.setStyle('opacity', 0);
|
||||
messagePanel.setStyle('display', 'block');
|
||||
|
||||
// fire off the ajax request to populate the doc list - the 'doclistpanel' webscript
|
||||
// is responsible for rendering just the contents of the main panel div
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
@@ -252,6 +257,8 @@ var MyDocs = {
|
||||
|
||||
if (!doc.isOpen)
|
||||
{
|
||||
doc.addClass("docItemSelectedOpen");
|
||||
|
||||
if (!resource.isLoaded)
|
||||
{
|
||||
// fire off the ajax request to get the resources for this task
|
||||
@@ -333,6 +340,8 @@ var MyDocs = {
|
||||
|
||||
// reset selected class?
|
||||
otherDoc.removeClass('docItemSelected');
|
||||
otherDoc.removeClass("docItemSelectedOpen");
|
||||
|
||||
// move the title back to the left?
|
||||
var ml = otherItem.getStyle('margin-left').toInt();
|
||||
if (ml != otherItem.defMarginLeft)
|
||||
@@ -388,6 +397,8 @@ var MyDocs = {
|
||||
// close this document panel
|
||||
// flag this document as closed
|
||||
doc.isOpen = false;
|
||||
|
||||
doc.removeClass("docItemSelectedOpen");
|
||||
|
||||
// reset resource panel back to it's default height
|
||||
animResource[i] = {
|
||||
@@ -523,6 +534,7 @@ var MyDocs = {
|
||||
if (response.responseText.indexOf("OK:") == 0)
|
||||
{
|
||||
MyDocs.refreshList();
|
||||
MyDocs.displayMessage("A working copy for the checked out item 'Working Copy of " + name + "' has been created.");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -557,6 +569,7 @@ var MyDocs = {
|
||||
if (response.responseText.indexOf("OK:") == 0)
|
||||
{
|
||||
MyDocs.refreshList();
|
||||
MyDocs.displayMessage("Item 'Working Copy of " + name + "' has been checked in.");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -764,6 +777,71 @@ var MyDocs = {
|
||||
{
|
||||
// Refresh the inner panel
|
||||
MyDocs.refreshList(true);
|
||||
},
|
||||
|
||||
/**
|
||||
* Display a message bubble of helpful info to the user. Calling this function in quick
|
||||
* succession will cause previous message to be lost as the new ones are displayed.
|
||||
*
|
||||
* @param message Message text to display
|
||||
*/
|
||||
displayMessage: function(message)
|
||||
{
|
||||
var panel = $("docMessagePanel");
|
||||
if ($defined(panel.timeout))
|
||||
{
|
||||
clearTimeout(panel.timeout);
|
||||
panel.timeout = null;
|
||||
}
|
||||
|
||||
panel.setStyle("opacity", 0);
|
||||
panel.setStyle("margin-top", -60);
|
||||
|
||||
panel.getChildren()[1].setHTML(message);
|
||||
|
||||
// reset the close box animation by refreshing the image source
|
||||
$("docMessagePanelCloseImage").src = getContextPath() + "/images/icons/close_portlet_animation.gif";
|
||||
|
||||
panel.fxMessage = new Fx.Styles(panel,
|
||||
{
|
||||
duration: 1000,
|
||||
transition: Fx.Transitions.sineInOut
|
||||
});
|
||||
panel.fxMessage.start({'margin-top': -40, 'opacity': [0, 0.75]});
|
||||
|
||||
|
||||
panel.timeout = window.setTimeout(this.fadeOutMessage, 9000);
|
||||
},
|
||||
|
||||
/**
|
||||
* Timer callback function to fade out the message panel
|
||||
*/
|
||||
fadeOutMessage: function()
|
||||
{
|
||||
var panel = $("docMessagePanel");
|
||||
panel.timeout = null;
|
||||
|
||||
var fxMessage = new Fx.Styles(panel,
|
||||
{
|
||||
duration: 1000,
|
||||
transition: Fx.Transitions.sineInOut
|
||||
});
|
||||
fxMessage.start({'margin-top': -60, 'opacity': [0]});
|
||||
},
|
||||
|
||||
/**
|
||||
* Close the message panel immediately when the user clicks the close icon
|
||||
*/
|
||||
closeMessage: function()
|
||||
{
|
||||
var panel = $("docMessagePanel");
|
||||
if ($defined(panel.timeout))
|
||||
{
|
||||
clearTimeout(panel.timeout);
|
||||
panel.timeout = null;
|
||||
}
|
||||
panel.fxMessage.stop();
|
||||
panel.setStyle("opacity", 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user