Skip to content

Commit

Permalink
Change .live to .on in image.js for jQuery 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyoho committed Jan 24, 2016
1 parent e0c717c commit c075132
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ function insertImage(text){

$(function(){
$('.image-img')
.live('hover', function(){
.on('hover', function(){
$(this).css('cursor', 'pointer');
}, function(){
$(this).css('cursor', 'default');
})
.live('click', function(){
.on('click', function(){
var idx = this.id.replace('image-index-', '');
var w = $('#image-info-' + idx + ' .image-width').text();
var h = $('#image-info-' + idx + ' .image-height').text();
Expand Down Expand Up @@ -107,7 +107,7 @@ $(function(){
};

$('#plugin-image-delimage')
.live('submit', function(e){
.on('submit', function(e){
e.preventDefault();

var ids = $.map($('#image-table input[name="plugin_image_id"]:checked'), function(i){
Expand Down

0 comments on commit c075132

Please sign in to comment.