mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- Remainder of app now uses dialog framework for delete pages
- Fixed bug in edit space (any type) where the icon would not be pre-set to the current one git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -110,7 +110,11 @@ public class AlfrescoNavigationHandler extends NavigationHandler
|
||||
{
|
||||
// there is an overidden outcome so extract it
|
||||
outcome = outcome.substring(idx+1, outcome.length());
|
||||
|
||||
|
||||
// we also need to empty the dialog stack if we have been given
|
||||
// an overidden outcome as we could be going anywhere in the app
|
||||
getViewStack(context).clear();
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Closing dialog with an overridden outcome of '" + outcome + "'");
|
||||
|
||||
@@ -123,15 +127,10 @@ public class AlfrescoNavigationHandler extends NavigationHandler
|
||||
// log a warning and return a null outcome to stay on the same page
|
||||
if (logger.isWarnEnabled())
|
||||
{
|
||||
logger.warn("Attempting to close a dialog with an empty view stack, returning 'browse' outcome");
|
||||
logger.warn("Attempting to close a dialog with an empty view stack, returning null outcome");
|
||||
}
|
||||
|
||||
// TODO: change this back to returning null outcome as that
|
||||
// will highlight any areas we have neglected to launch
|
||||
// in a dilaog, for backwards compatibility for the short
|
||||
// term return 'browse' outcome.
|
||||
|
||||
this.origHandler.handleNavigation(context, fromAction, "browse");
|
||||
this.origHandler.handleNavigation(context, fromAction, null);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@@ -1181,7 +1181,8 @@ public class BrowseBean implements IContextListener
|
||||
setActionSpace(null);
|
||||
|
||||
// setting the outcome will show the browse view again
|
||||
outcome = "browse";
|
||||
outcome = AlfrescoNavigationHandler.CLOSE_DIALOG_OUTCOME +
|
||||
AlfrescoNavigationHandler.DIALOG_SEPARATOR + "browse";
|
||||
}
|
||||
catch (Throwable err)
|
||||
{
|
||||
@@ -1220,7 +1221,8 @@ public class BrowseBean implements IContextListener
|
||||
setDocument(null);
|
||||
|
||||
// setting the outcome will show the browse view again
|
||||
outcome = "browse";
|
||||
outcome = AlfrescoNavigationHandler.CLOSE_DIALOG_OUTCOME +
|
||||
AlfrescoNavigationHandler.DIALOG_SEPARATOR + "browse";
|
||||
}
|
||||
catch (Throwable err)
|
||||
{
|
||||
|
@@ -709,7 +709,11 @@ public class NewSpaceWizard extends AbstractWizardBean
|
||||
// the first icon in the list the default
|
||||
|
||||
icons = new ArrayList<UIListItem>(iconsCfg.getChildCount());
|
||||
this.icon = iconName;
|
||||
if (this.icon == null)
|
||||
{
|
||||
// set the default if it is not already
|
||||
this.icon = iconName;
|
||||
}
|
||||
first = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user