// Live is deprecated in jquery 1.9

This commit is contained in:
Jerome Nadaud
2013-11-06 15:34:46 +01:00
parent 7895f8643e
commit 56230a1f53
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -848,13 +848,13 @@ $(document).ready(function()
toggleMultishopDefaultValue(v, key.substr(24, len - 25));
});
$(".copy2friendlyUrl").live('keyup change',function(e){
$(".copy2friendlyUrl").on('keyup change',function(e){
if(!isArrowKey(e))
return copy2friendlyURL();
});
// on live will make this binded for dynamic content
$(".updateCurrentText").live('keyup change',function(e){
$(".updateCurrentText").on('keyup change',function(e){
if(typeof e == KeyboardEvent)
if(isArrowKey(e))
return;
@@ -862,7 +862,7 @@ $(document).ready(function()
updateCurrentText();
});
$(".copyMeta2friendlyURL").live('keyup change',function(e){
$(".copyMeta2friendlyURL").on('keyup change',function(e){
if(!isArrowKey(e))
return copyMeta2friendlyURL()
});
+4 -4
View File
@@ -36,7 +36,7 @@ $(document).ready(function(){
}); // end bind
// if count errors
$('#hideError').live('click', function(e)
$('#hideError').on('click', function(e)
{
e.preventDefault();
$('.error').hide('slow', function (){
@@ -46,21 +46,21 @@ $(document).ready(function(){
});
// if count warnings
$('#linkSeeMore').live('click', function(e){
$('#linkSeeMore').on('click', function(e){
e.preventDefault();
$('#seeMore').show();
$(this).hide();
$('#linkHide').show();
return false;
});
$('#linkHide').live('click', function(e){
$('#linkHide').on('click', function(e){
e.preventDefault();
$('#seeMore').hide();
$(this).hide();
$('#linkSeeMore').show();
return false;
});
$('#hideWarn').live('click', function(e){
$('#hideWarn').on('click', function(e){
e.preventDefault();
$('.warn').hide('slow', function (){
$('.warn').remove();