Update to Drupal 8.0.0-beta15. For more information, see: https://www.drupal.org/node/2563023
This commit is contained in:
parent
2720a9ec4b
commit
f3791f1da3
1898 changed files with 54300 additions and 11481 deletions
|
@ -11,10 +11,10 @@
|
|||
var escapeAdminPath = sessionStorage.getItem('escapeAdminPath');
|
||||
var windowLocation = window.location;
|
||||
|
||||
// Saves the last non-administrative page in the browser to be able to link back
|
||||
// to it when browsing administrative pages. If there is a destination parameter
|
||||
// there is not need to save the current path because the page is loaded within
|
||||
// an existing "workflow".
|
||||
// Saves the last non-administrative page in the browser to be able to link
|
||||
// back to it when browsing administrative pages. If there is a destination
|
||||
// parameter there is not need to save the current path because the page is
|
||||
// loaded within an existing "workflow".
|
||||
if (!pathInfo.currentPathIsAdmin && !/destination=/.test(windowLocation.search)) {
|
||||
sessionStorage.setItem('escapeAdminPath', windowLocation);
|
||||
}
|
||||
|
@ -22,10 +22,13 @@
|
|||
/**
|
||||
* Replaces the "Home" link with "Back to site" link.
|
||||
*
|
||||
* Back to site link points to the last non-administrative page the user visited
|
||||
* within the same browser tab.
|
||||
* Back to site link points to the last non-administrative page the user
|
||||
* visited within the same browser tab.
|
||||
*
|
||||
* @type {Drupal~behavior}
|
||||
*
|
||||
* @prop {Drupal~behaviorAttach} attach
|
||||
* Attaches the replacement functionality to the toolbar-escape-admin element.
|
||||
*/
|
||||
Drupal.behaviors.escapeAdmin = {
|
||||
attach: function () {
|
||||
|
|
Reference in a new issue