Migrate redirectToFragment() from wikibits.js to own module
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 17 Dec 2013 18:41:33 +0000 (19:41 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Tue, 17 Dec 2013 18:41:33 +0000 (19:41 +0100)
commit7bca293dfd66cc6eca919d5d3d98940388745c1b
treec730fe0fdbe7cc75b658a6ea0a7f4e0d8db6423c
parent862122b98048e2161a295b8266bcd95c45a754dc
Migrate redirectToFragment() from wikibits.js to own module

This patch creates the new top module
'mediawiki.action.view.redirectToFragment'.
This module contains the same code, but was migrated to use
jQuery.profile to detect the layout of the browser.

Other changes as written on bug 35858 can be done in seperate
patch set(s). This is to have a start.

The old code has to stay a version, because the cache can contain
inline script calls to this function, which should not break.

Bug: 35858
Change-Id: Ic10c060c3a2cbab455348e57740fc8abdc66ff9a
includes/Article.php
resources/Resources.php
resources/mediawiki.action/mediawiki.action.view.redirectToFragment.js [new file with mode: 0644]
skins/common/wikibits.js