Skip to content

Commit 4bee310

Browse files
committed
do not load script twice
1 parent 97f5ff8 commit 4bee310

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/assets/javascripts/application.js.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#= require i18n/translations
88
#= require_tree .
99

10-
$(document).on "ready turbolinks:load", ->
10+
$(document).on "turbolinks:load", ->
1111

1212
# Remove all global properties set by addthis, otherwise it won't reinitialize
1313
for i of window

app/assets/javascripts/projects.js.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ init = () ->
66
$('.qrcode').each () ->
77
$(this).qrcode($(this).attr('data-qrcode'));
88

9-
$(document).on 'ready turbolinks:load', init
9+
$(document).on 'turbolinks:load', init

app/assets/javascripts/users.js.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ load_bootstrap_validator = ->
3939
notEmpty:
4040
message: I18n.t('js.errors.password_confirmation.blank')
4141

42-
$(document).on "ready turbolinks:load", load_bootstrap_validator
42+
$(document).on "turbolinks:load", load_bootstrap_validator
4343

4444
$ ->
4545
$('.from-gravatar').click (e) ->

0 commit comments

Comments
 (0)