igor-alexandrov / wiselinks

If Turbolinks are not enough for you. Wiselinks makes your application work faster.
MIT License
723 stars 89 forks source link

Wiselinks not loading new content #63

Closed dumplingsol closed 10 years ago

dumplingsol commented 10 years ago

Hi,

I have no idea why it doesn't work. Would appreciate it if someone could take a look and see what I've missed.

I have included the plugin in the plugins.js at the bottom. jQuery is loaded.

Page: http://hammr.co/5886358/12/projects.html

Try pressing the "menu"-icon in the top right, then press the link "Bajskorv".

Code: Bajskorv

What did I miss?

igor-alexandrov commented 10 years ago

Do you use Rails or what?

dumplingsol commented 10 years ago

Yes but I'm not running my own rails app, I'm using http://hammerformac.com

igor-alexandrov commented 10 years ago

I don't see that Wiselinks is initialised. Please use anything like this in application.js.coffee:

#= require jquery
#= require wiselinks

$(document).ready ->
    window.wiselinks = new Wiselinks()