jquery - Rails Issues with Rendering Javascript -
i'm using jquery-tokeninput (loopj.com/jquery-tokeninput/) in rails app. works well, when load page, doesn't render should. when refresh, works perfectly. i'm not sure if javascript incorrect, i'm having similar issues other parts of app (rating system using 5 stars renders when refresh page).
this javascript have:
$(function(){ $("#ingredients_tokens").tokeninput("/ingredientsynonyms.json", { crossdomain: false, prepopulate: $("#ingredient_token").data("pre"), theme: "facebook", searchdelay: 1 }); });
Comments
Post a Comment