class Wedge::Plugins::Pjax

Public Instance Methods

get(href = false) click to toggle source
# File lib/wedge/plugins/pjax.rb, line 24
def get href = false
  $pjax_progress_bar = Nanobar.new({bg: '#f99f22'}.to_n)
  progress_bar.start
  `$(document).trigger('page:click')`
  $window.history.push href, pjax: true
end
progress_bar() click to toggle source
# File lib/wedge/plugins/pjax.rb, line 20
def progress_bar
  $pjax_progress_bar
end