//= require jquery3
//= require jquery_ujs
-//= require jquery.timers
//= require jquery.throttle-debounce
//= require js-cookie/dist/js.cookie
//= require popper
//= require richtext
//= require qs/dist/qs
+{
+ const application_data = $("head").data();
+
+ I18n.default_locale = OSM.DEFAULT_LOCALE;
+ I18n.locale = application_data.locale;
+ I18n.fallbacks = true;
+
+ OSM.preferred_editor = application_data.preferredEditor;
+ OSM.preferred_languages = application_data.preferredLanguages;
+
+ if (application_data.user) {
+ OSM.user = application_data.user;
+
+ if (application_data.userHome) {
+ OSM.home = application_data.userHome;
+ }
+ }
+
+ if (application_data.location) {
+ OSM.location = application_data.location;
+ }
+}
+
/*
* Called as the user scrolls/zooms around to manipulate hrefs of the
* view tab and various other links
$("body").removeClass("compact-nav");
$("header").removeClass("text-nowrap");
+ $("header nav.secondary > ul").removeClass("flex-nowrap");
updateHeader();
$("header").toggleClass("closed");
});
- var application_data = $("head").data();
-
- I18n.default_locale = OSM.DEFAULT_LOCALE;
- I18n.locale = application_data.locale;
- I18n.fallbacks = true;
-
- OSM.preferred_editor = application_data.preferredEditor;
- OSM.preferred_languages = application_data.preferredLanguages;
-
- if (application_data.user) {
- OSM.user = application_data.user;
-
- if (application_data.userHome) {
- OSM.home = application_data.userHome;
- }
- }
-
- if (application_data.location) {
- OSM.location = application_data.location;
- }
-
$("#edit_tab")
.attr("title", I18n.t("javascripts.site.edit_disabled_tooltip"));
});