diff options
| author | mo khan <mo@mokhan.ca> | 2014-01-04 16:58:33 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-01-04 16:58:33 -0700 |
| commit | f7dfc2eea480ef6ca3eb6ad71db19b20451b0213 (patch) | |
| tree | 8436787750180a76fdba806ea1a4a3ab13bfc522 | |
| parent | 02b4887131ca6c23d33cb61ddb468e787ac129a5 (diff) | |
add page:restore.
| -rw-r--r-- | app/views/creations/index.html.erb | 1 | ||||
| -rw-r--r-- | app/views/tutorials/index.html.erb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/creations/index.html.erb b/app/views/creations/index.html.erb index cff1e2c4..7842b8ac 100644 --- a/app/views/creations/index.html.erb +++ b/app/views/creations/index.html.erb @@ -4,6 +4,7 @@ var ready = function(){ new Masonry('#creations-div').load(); }; $(document).ready(ready); $(document).on('page:load', ready); + $(document).on('page:restore', ready); </script> <% end -%> <% unless user_signed_in? -%> diff --git a/app/views/tutorials/index.html.erb b/app/views/tutorials/index.html.erb index d5206ae7..1d1b01f3 100644 --- a/app/views/tutorials/index.html.erb +++ b/app/views/tutorials/index.html.erb @@ -4,6 +4,7 @@ var ready = function(){ new Masonry('#tutorials-div').load(); }; $(document).ready(ready); $(document).on('page:load', ready); + $(document).on('page:restore', ready); </script> <% end -%> <div id="tutorials-div" class="row"> |
