turbolinks fixes

This commit is contained in:
Lee Lawlor
2014-08-01 15:57:02 -04:00
parent acd42142dc
commit 0c758f6e40
18 changed files with 91 additions and 88 deletions

View File

@ -1,11 +1,7 @@
$(function () {
$("div.progressbar").each (
function () {
var element = this;
$(element).progressbar(
{
value: parseInt($(element).attr("rel"))
});
});
$(document).on('page:load ready', function() {
$("div.progressbar").each(function() {
var element = this;
$(element).progressbar({ value: parseInt($(element).attr("rel")) });
});
});