Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated method for jQuery >= 1.7 support #13

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion jquery.preview.full.js
Expand Up @@ -1961,7 +1961,7 @@ function Display(display){


}, },
bind : function(){ bind : function(){
$('.thumbnail.video a, .thumbnail.rich a').live('click', function(e){ $('.thumbnail.video a, .thumbnail.rich a').on('click', function(e){
e.preventDefault(); e.preventDefault();
var preview = $(this).parents('.item').data('preview'); var preview = $(this).parents('.item').data('preview');
$(this).parents('.item').replaceWith(preview.html); $(this).parents('.item').replaceWith(preview.html);
Expand Down
2 changes: 1 addition & 1 deletion jquery.preview.full.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jquery.preview.js
Expand Up @@ -704,7 +704,7 @@ function Display(display){


}, },
bind : function(){ bind : function(){
$('.thumbnail.video a, .thumbnail.rich a').live('click', function(e){ $('.thumbnail.video a, .thumbnail.rich a').on('click', function(e){
e.preventDefault(); e.preventDefault();
var preview = $(this).parents('.item').data('preview'); var preview = $(this).parents('.item').data('preview');
$(this).parents('.item').replaceWith(preview.html); $(this).parents('.item').replaceWith(preview.html);
Expand Down
2 changes: 1 addition & 1 deletion jquery.preview.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/display.js
Expand Up @@ -157,7 +157,7 @@ function Display(display){


}, },
bind : function(){ bind : function(){
$('.thumbnail.video a, .thumbnail.rich a').live('click', function(e){ $('.thumbnail.video a, .thumbnail.rich a').on('click', function(e){
e.preventDefault(); e.preventDefault();
var preview = $(this).parents('.item').data('preview'); var preview = $(this).parents('.item').data('preview');
$(this).parents('.item').replaceWith(preview.html); $(this).parents('.item').replaceWith(preview.html);
Expand Down