mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Fix: broken context usage when no context (neither org nor menu) at all
SVN:trunk[1381]
This commit is contained in:
@@ -398,8 +398,9 @@ EOF
|
|||||||
{
|
{
|
||||||
return sURL+'?'+sContext;
|
return sURL+'?'+sContext;
|
||||||
}
|
}
|
||||||
|
return sURL+'&'+sContext;
|
||||||
}
|
}
|
||||||
return sURL+'&'+sContext;
|
return sURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
var oUserPreferences = $sUserPrefs;
|
var oUserPreferences = $sUserPrefs;
|
||||||
|
|||||||
@@ -158,8 +158,7 @@ EOF
|
|||||||
{
|
{
|
||||||
return '$sAbsURLAppRoot';
|
return '$sAbsURLAppRoot';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function AddAppContext(sURL)
|
function AddAppContext(sURL)
|
||||||
{
|
{
|
||||||
var sContext = '$sAppContext';
|
var sContext = '$sAppContext';
|
||||||
@@ -168,11 +167,12 @@ EOF
|
|||||||
if (sURL.indexOf('?') == -1)
|
if (sURL.indexOf('?') == -1)
|
||||||
{
|
{
|
||||||
return sURL+'?'+sContext;
|
return sURL+'?'+sContext;
|
||||||
}
|
}
|
||||||
|
return sURL+'&'+sContext;
|
||||||
}
|
}
|
||||||
return sURL+'&'+sContext;
|
return sURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
function GoBack(sFormId)
|
function GoBack(sFormId)
|
||||||
{
|
{
|
||||||
var form = $('#'+sFormId);
|
var form = $('#'+sFormId);
|
||||||
|
|||||||
Reference in New Issue
Block a user