Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

No wiselinks flag - Allows to cancel wiselinks. #90

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Wiselinks works in all major browsers including browsers that do not support HTM
<td>Assets change detection</td>
<td><strong>Yes</strong>, by calculating assets MD5 hash on boot</td>
<td>Yes, by parsing document head on every request</td>
<td>No</td>
<td>Yes, manually</td>
</tr>
<tr>
<td>30x HTTP redirects processing</td>
Expand Down
5 changes: 4 additions & 1 deletion lib/assets/javascripts/_page.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class Page
"statechange"
(event, data) ->
state = History.getState()

if (state.data.no_wiselinks)
return

if self._template_id_changed(state)
self._call(self._reset_state(state))
Expand Down Expand Up @@ -105,4 +108,4 @@ class Page


window._Wiselinks = {} if window._Wiselinks == undefined
window._Wiselinks.Page = Page
window._Wiselinks.Page = Page
1 change: 0 additions & 1 deletion wiselinks.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rake'
gem.add_development_dependency 'bundler'
gem.add_development_dependency 'sqlite3'
gem.add_development_dependency 'rspec'
gem.add_development_dependency 'rspec-rails'
gem.add_development_dependency 'factory_girl'
gem.add_development_dependency 'faker'
Expand Down