File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ var AppView = Backbone.NativeView.extend({
323323 }
324324} ) ;
325325
326- $ ( document ) . ready ( function ( ) {
326+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
327327 Mousetrap . bind ( "?" , function ( ) {
328328 bootstrap . Modal . getOrCreateInstance ( document . getElementById ( 'shortcuts' ) ) . toggle ( ) ;
329329 } ) ;
Original file line number Diff line number Diff line change 1717<% end %>
1818
1919< script type ="text/javascript ">
20- $ ( document ) . ready ( function ( ) {
20+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
2121 document . querySelectorAll ( ".status" ) . forEach ( function ( el ) {
2222 new bootstrap . Tooltip ( el ) ;
2323 } ) ;
Original file line number Diff line number Diff line change 2121</ div >
2222
2323< script type ="text/javascript ">
24- $ ( document ) . ready ( function ( ) {
24+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
2525 $ ( '#opml_file' ) . on ( "change" , function ( e ) {
2626 $ ( 'form#import' ) . submit ( ) ;
2727 } ) ;
Original file line number Diff line number Diff line change 2121</ div >
2222
2323< script type ="text/javascript ">
24- $ ( document ) . ready ( function ( ) {
24+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
2525 if ( ! navigator . cookieEnabled ) {
2626 $ ( "#cookies-required" ) . show ( ) ;
2727 }
Original file line number Diff line number Diff line change 11<%= render 'stories/templates' %>
22
33 <script type ="text/javascript ">
4- $ ( document ) . ready ( function ( ) {
4+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
55 var Stories = new StoryList ;
66 var StoryApp = new AppView ( Stories ) ;
77 StoryApp . loadData ( <%= sanitize ( stories . to_json ) %> ) ;
You can’t perform that action at this time.
0 commit comments