Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -79,7 +79,8 @@
|
|||
// asynchronously.
|
||||
Drupal.toolbar.setSubtrees.done(function (subtrees) {
|
||||
menuModel.set('subtrees', subtrees);
|
||||
localStorage.setItem('Drupal.toolbar.subtrees', JSON.stringify(subtrees));
|
||||
var theme = drupalSettings.ajaxPageState.theme;
|
||||
localStorage.setItem('Drupal.toolbar.subtrees.' + theme, JSON.stringify(subtrees));
|
||||
// Indicate on the toolbarModel that subtrees are now loaded.
|
||||
model.set('areSubtreesLoaded', true);
|
||||
});
|
||||
|
@ -233,4 +234,15 @@
|
|||
'</div></div>';
|
||||
};
|
||||
|
||||
/**
|
||||
* Ajax command to set the toolbar subtrees.
|
||||
*
|
||||
* @param {Drupal.Ajax} ajax
|
||||
* @param {object} response
|
||||
* @param {number} [status]
|
||||
*/
|
||||
Drupal.AjaxCommands.prototype.setToolbarSubtrees = function (ajax, response, status) {
|
||||
Drupal.toolbar.setSubtrees.resolve(response.subtrees);
|
||||
};
|
||||
|
||||
}(jQuery, Drupal, drupalSettings));
|
||||
|
|
Reference in a new issue