Qual: Removed useless use of js
This commit is contained in:
parent
ba9dc57912
commit
8beaf30e88
@ -59,7 +59,7 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption='', $minLengt
|
||||
$("#'.$htmlname.'").trigger("change");
|
||||
});
|
||||
// Check when keyup
|
||||
$("input#search_'.$htmlname.'").onDelayedKeyup({ handler: function() {
|
||||
$("input#search_'.$htmlname.'").keyup(function() {
|
||||
//console.log(\'keyup\');
|
||||
if ($(this).val().length == 0)
|
||||
{
|
||||
@ -93,7 +93,6 @@ function ajax_autocompleter($selected, $htmlname, $url, $urloption='', $minLengt
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
$("input#search_'.$htmlname.'").autocomplete({
|
||||
source: function( request, response ) {
|
||||
@ -366,7 +365,7 @@ function ajax_combobox($htmlname, $events=array(), $minLengthToAutocomplete=0)
|
||||
$("select#" + htmlname).html(response.value);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});'."\n";
|
||||
$msg.= "</script>\n";
|
||||
|
||||
|
||||
@ -521,8 +521,7 @@ $(document).ready(function() {
|
||||
});
|
||||
});
|
||||
<?php } else { ?>
|
||||
$('#product_desc').onDelayedKeyup({
|
||||
'handler': function() {
|
||||
$('#product_desc').keyup(function() {
|
||||
var addline=false;
|
||||
if ($('#idprod').val() == 0 && $('#select_type').val() >= 0 && $('#price_ht').val().length > 0) {
|
||||
var content = $('#product_desc').val();
|
||||
@ -537,7 +536,6 @@ $(document).ready(function() {
|
||||
} else {
|
||||
$('#addlinebutton').attr('disabled','disabled');
|
||||
}
|
||||
}
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
|
||||
@ -348,8 +348,7 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 1) // TODO A virer
|
||||
});
|
||||
});
|
||||
<?php } else { ?>
|
||||
$('#product_desc').onDelayedKeyup({
|
||||
'handler': function() {
|
||||
$('#product_desc').keyup(function() {
|
||||
var addline=false;
|
||||
if ($('#product_id').val() == 0 && $('#select_type').val() >= 0 && $('#price_ht').val().length > 0) {
|
||||
var content = $('#product_desc').val();
|
||||
@ -364,7 +363,6 @@ if ($conf->global->MAIN_FEATURES_LEVEL > 1) // TODO A virer
|
||||
} else {
|
||||
$('#savelinebutton').attr('disabled','disabled');
|
||||
}
|
||||
}
|
||||
});
|
||||
<?php } ?>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user