doPrefsUpdate: function(column, sortDown)
{
try {
- new Ajax.Request(GollemVar.prefs_api, { parameters: { app: 'gollem', pref: 'sortby', value: column.substring(1) } });
- new Ajax.Request(GollemVar.prefs_api, { parameters: { app: 'gollem', pref: 'sortdir', value: sortDown } });
+ new Ajax.Request(GollemVar.prefs_api, { parameters: { pref: 'sortby', value: column.substring(1) } });
+ new Ajax.Request(GollemVar.prefs_api, { parameters: { pref: 'sortdir', value: sortDown } });
} catch (e) {}
}
};
/* Variables used in core javascript files. */
$var = array(
'empty_input' => intval($GLOBALS['browser']->hasQuirk('empty_file_input_value')),
- 'prefs_api' => Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs/', true, -1)
+ 'prefs_api' => Horde::getServiceLink('prefsapi', 'gollem')
);
/* Gettext strings used in core javascript files. */
// return $GLOBALS['registry']->get('webroot', 'turba');
//
// case 'prefs':
-// return $GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php?app=horde';
+// return Horde::getServiceLink('options', 'horde');
//
// default:
// return '';
/* Pref updating function. */
_updatePrefs: function(pref, value)
{
- new Ajax.Request(DimpCore.addURLParam(DIMP.conf.URI_PREFS), { parameters: { app: 'imp', pref: pref, value: value } });
+ new Ajax.Request(DimpCore.addURLParam(DIMP.conf.URI_PREFS), { parameters: { pref: pref, value: value } });
},
/* Onload function. */
/* Variables used in core javascript files. */
$code['conf'] = array_filter(array(
// URL variables
- 'URI_AJAX' => Horde::applicationUrl('ajax.php', true, -1),
+ 'URI_AJAX' => Horde::applicationUrl('ajax.php'),
'URI_COMPOSE' => Horde::applicationUrl('compose-dimp.php'),
- 'URI_DIMP' => Horde::applicationUrl('index-dimp.php', true, -1),
+ 'URI_DIMP' => Horde::applicationUrl('index-dimp.php'),
'URI_MESSAGE' => Horde::applicationUrl('message-dimp.php'),
- 'URI_PREFS' => Horde::url($horde_webroot . '/services/prefs/', true, -1),
+ 'URI_PREFS' => Horde::getServiceLink('prefsapi', 'imp'),
'URI_PREFS_IMP' => str_replace('&', '&', Horde::getServiceLink('options', 'imp')),
'URI_TIMEOUT' => Horde_Auth::getLogoutUrl(array('reason' => Horde_Auth::REASON_SESSION)),
- 'URI_VIEW' => Horde::applicationUrl('view.php', true, -1),
+ 'URI_VIEW' => Horde::applicationUrl('view.php'),
'SESSION_ID' => defined('SID') ? SID : '',
body.addClassName('rightPanel');
}
- new Ajax.Request(KronolithVar.pref_api_url, { parameters: { app: 'kronolith', pref: 'show_panel', value: pref_value } });
+ new Ajax.Request(KronolithVar.pref_api_url, { parameters: { pref: 'show_panel', value: pref_value } });
}
function removeTag(tagid)
/* Variables used in core javascript files. */
$code['conf'] = array(
'URI_AJAX' => Horde::url($kronolith_webroot . '/ajax.php', true, -1),
- 'URI_PREFS' => Horde::url($horde_webroot . '/services/prefs/', true, -1),
'URI_IMG' => $registry->getImageDir() . '/',
//'URI_VIEW' => Horde_Util::addParameter(Horde::url($imp_webroot . '/view.php', true, -1), array('actionID' => 'view_source', 'id' => 0), null, false),
'SESSION_ID' => defined('SID') ? SID : '',
$myemail = $ident->getValue('from_addr');
if (!$myemail) {
- $notification->push(sprintf(_("You do not have an email address configured in your Personal Information Options. You must set one %shere%s before event notifications can be sent."), Horde::link(Horde_Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php'), array('app' => 'horde', 'group' => 'identities'))), '</a>'), 'horde.error', array('content.raw'));
+ $notification->push(sprintf(_("You do not have an email address configured in your Personal Information Options. You must set one %shere%s before event notifications can be sent."), Horde::link(Horde_Util::addParameter(Horde::getServiceLink('options', 'kronolith'), array('app' => 'horde', 'group' => 'identities'))), '</a>'), 'horde.error', array('content.raw'));
return;
}
/* Variables used in core javascript files. */
$var = array(
'view_url' => Horde::applicationUrl('view.php'),
- 'pref_api_url' => Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs/', true, -1),
+ 'pref_api_url' => Horde::getServiceLink('prefsapi', 'kronolith'),
'calendar_info_url' => Horde::applicationUrl('calendars/info.php', true),
'page_title' => $GLOBALS['registry']->get('name') . ' :: ',
);
function doPrefsUpdate(column, sortDown)
{
- baseurl = '<?php echo Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs/', true, -1) ?>';
+ baseurl = '<?php echo Horde::getServiceLink('prefsui', 'nag') ?>';
try {
- new Ajax.Request(baseurl, { parameters: { app: 'nag', pref: 'sortby', value: encodeURIComponent(column.substring(1)) } });
- new Ajax.Request(baseurl, { parameters: { app: 'nag', pref: 'sortdir', value: encodeURIComponent(sortDown) } });
+ new Ajax.Request(baseurl, { parameters: { pref: 'sortby', value: encodeURIComponent(column.substring(1)) } });
+ new Ajax.Request(baseurl, { parameters: { pref: 'sortdir', value: encodeURIComponent(sortDown) } });
} catch (e) {}
}
<?php
if (Horde_Auth::getAuth() && (!$GLOBALS['prefs']->isLocked('categories') ||
!$GLOBALS['prefs']->isLocked('category_colors'))) {
- $categoryUrl = Horde_Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php'), array('app' => 'horde', 'group' => 'categories'));
+ $categoryUrl = Horde_Util::addParameter(Horde::getServiceLink('options', 'horde'), array('group' => 'categories'));
echo ' ' . Horde::link($categoryUrl, _("Edit categories and colors"), '', '_blank', Horde::popupJs($categoryUrl, array('urlencode' => true)) . 'return false;') . Horde::img('colorpicker.png', _("Edit categories and colors"), '', $GLOBALS['registry']->getImageDir('horde')) . '</a>';
}
?>
Element.addClassName(document.body, 'rightPanel');
}
- new Ajax.Request('<?php echo Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs/', true, -1) ?>', { parameters: { app: 'nag', pref: 'show_panel', value: pref_value } });
+ new Ajax.Request('<?php echo Horde::getServiceLink('prefsapi', 'nag') ?>', { parameters: { pref: 'show_panel', value: pref_value } });
}
document.observe('dom:loaded', function() {
function doPrefsUpdate(column, sortDown)
{
- baseurl = '<?php echo Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs/', true, -1) ?>';
+ baseurl = '<?php echo Horde::getServiceLink('prefsui', 'skoli') ?>';
try {
column = column.substring(1);
prefscope = 'class';
if (column == 'lastentry' || column == 'comment') {
prefscope = 'student';
}
- new Ajax.Request(baseurl, { parameters: { app: 'skoli', pref: 'sortby_' + prefscope, value: encodeURIComponent(column) } });
- new Ajax.Request(baseurl, { parameters: { app: 'skoli', pref: 'sortdir_' + prefscope, value: encodeURIComponent(sortDown) } });
+ new Ajax.Request(baseurl, { parameters: { pref: 'sortby_' + prefscope, value: encodeURIComponent(column) } });
+ new Ajax.Request(baseurl, { parameters: { pref: 'sortdir_' + prefscope, value: encodeURIComponent(sortDown) } });
if (column == 'name') {
- new Ajax.Request(baseurl, { parameters: { app: 'skoli', pref: 'sortby_student', value: encodeURIComponent(column) } });
- new Ajax.Request(baseurl, { parameters: { app: 'skoli', pref: 'sortdir_student', value: encodeURIComponent(sortDown) } });
+ new Ajax.Request(baseurl, { parameters: { pref: 'sortby_student', value: encodeURIComponent(column) } });
+ new Ajax.Request(baseurl, { parameters: { pref: 'sortdir_student', value: encodeURIComponent(sortDown) } });
}
} catch (e) {}
}
<?php
if (Horde_Auth::getAuth() && (!$GLOBALS['prefs']->isLocked('categories') ||
!$GLOBALS['prefs']->isLocked('category_colors'))) {
- $categoryUrl = Horde_Util::addParameter(Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs.php'), array('app' => 'horde', 'group' => 'categories'));
+ $categoryUrl = Horde_Util::addParameter(Horde::getServiceLink('options', 'horde'), array('group' => 'categories'));
echo ' ' . Horde::link($categoryUrl, _("Edit categories and colors"), '', '_blank', Horde::popupJs($categoryUrl, array('urlencode' => true)) . 'return false;') . Horde::img('colorpicker.png', _("Edit categories and colors"), '', $GLOBALS['registry']->getImageDir('horde')) . '</a>';
}
?>
Element.addClassName(document.body, 'rightPanel');
}
- new Ajax.Request('<?php echo Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs/', true, -1) ?>', { parameters: { app: 'skoli', pref: 'show_panel', value: pref_value } });
+ new Ajax.Request('<?php echo Horde::getServiceLink('prefsapi', 'skoli') ?>', { parameters: { pref: 'show_panel', value: pref_value } });
}
</script>
<a id="sbarShow" href="#" onclick="sbarToggle(); return false;"><?php echo _("Classes") ?></a>
function doPrefsUpdate(column, sortDown)
{
- baseurl = '<?php echo Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/services/prefs/', true, -1) ?>';
+ baseurl = '<?php echo Horde::getServiceLink('prefsapi', 'skoli') ?>';
try {
column = column.substring(1);
- new Ajax.Request(baseurl, { parameters: { app: 'skoli', pref: 'sortby', value: encodeURIComponent(column) } });
+ new Ajax.Request(baseurl, { parameters: { pref: 'sortby', value: encodeURIComponent(column) } });
} catch (e) {}
}