prevents for Comments.initialize to be called twice causing unexpected behaviour in forms, when initialize_modules is called on ajax:complete
This commit is contained in:
@@ -31,7 +31,5 @@ $(function(){
|
||||
|
||||
$(document).ready(initialize_modules);
|
||||
$(document).on('page:load', initialize_modules);
|
||||
$(document).on('ajax:complete', function(){
|
||||
App.Users.initialize();
|
||||
});
|
||||
$(document).on('ajax:complete', initialize_modules);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user