epub_reader_framework-2.0.0-alpha2/assets/js/history-api-push-state-command.js

assets/js/history-api-push-state-command.js
(function ($, Drupal) {

  /**
   * Add new command for responding adding the chapter change to the history.
   */
  Drupal.AjaxCommands.prototype.chapterHistoryPushStateCommand = function (ajax, response, status) {
    window.history.pushState(response.state, response.title, response.url);
  }
})(jQuery, Drupal);

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc