Skip to content
Permalink
Browse files

remove redundant variable

  • Loading branch information...
flack committed Sep 10, 2019
1 parent a06bf2c commit 656d3d27f2242c2dbda133773a831723c9978c07
@@ -24,7 +24,6 @@
$head->enable_jquery_ui(['mouse', 'draggable']);
$head->add_jsfile(MIDCOM_STATIC_URL . '/midgard.admin.asgard/ui.js');
$head->add_jscript("var MIDGARD_ROOT = '" . midcom_connection::get_url('self') . "';");
$context = midcom_core_context::get();
$prefix = $context->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
$extra_class = (!empty($data['asgard_toolbar']->items)) ? ' page-title-with-toolbar' : '';
@@ -25,7 +25,7 @@ $(document).ready(function() {
$('#navigation').css('width', navigation_width + 'px');
$('#content').css('margin-left', content_margin_left + 'px');

$.post(MIDGARD_ROOT + '__mfa/asgard/preferences/ajax/', {offset: offset});
$.post(MIDCOM_PAGE_PREFIX + '__mfa/asgard/preferences/ajax/', {offset: offset});
}
});

@@ -152,7 +152,7 @@ var org_openpsa_layout = {
//workaround for problem in jquery.ui 1.11.2
$('#template_openpsa2_resizer').css('width', '');

$.post(MIDGARD_ROOT + '__mfa/asgard/preferences/ajax/', {openpsa2_offset: offset});
$.post(MIDCOM_PAGE_PREFIX + '__mfa/asgard/preferences/ajax/', {openpsa2_offset: offset});
$(window).trigger('resize');
}
});
@@ -222,7 +222,7 @@ var org_openpsa_layout = {

$('#org_openpsa_search_trigger').click();

$.post(MIDGARD_ROOT + '__mfa/asgard/preferences/ajax/', {openpsa2_search_provider: provider.identifier});
$.post(MIDCOM_PAGE_PREFIX + '__mfa/asgard/preferences/ajax/', {openpsa2_search_provider: provider.identifier});
})
.appendTo(selector);
});
@@ -36,7 +36,6 @@
org_openpsa_widgets_tree::add_head_elements();
org_openpsa_widgets_ui::initialize_search();
$head->add_jscript("var MIDGARD_ROOT = '" . midcom_connection::get_url('self') . "';");
$head->add_jscript("var TOOLBAR_MORE_LABEL = '" . midcom::get()->i18n->get_l10n('org.openpsa.widgets')->get('more') . "';");
$head->add_jsfile(MIDCOM_STATIC_URL . '/OpenPsa2/ui.js');
$head->print_head_elements();

0 comments on commit 656d3d2

Please sign in to comment.
You can’t perform that action at this time.