Skip to content

Commit

Permalink
UPDATE: module_v4skin | v4skin.js -> added comments to defaultAutocom…
Browse files Browse the repository at this point in the history
…plete
  • Loading branch information
smeyer committed Feb 5, 2016
1 parent 7bd22c0 commit 36439be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module_v4skin/admin/skins/kajona_v4/js/v4skin.js
Expand Up @@ -140,13 +140,15 @@ KAJONA.v4skin = {
};

this.search = function(event, ui) {
//If input field changes -> reset hidden id field
var $objCur = $(this);
if(!$objCur.is('[readonly]')) {
if($('#'+$objCur.attr('id')+'_id')) {
$( '#'+$objCur.attr('id')+'_id' ).val( "" );
}
}

//Formentry must have at least 2 charackters to trigger search.
if(event.target.value.length < 2) {
event.stopPropagation();
return false;
Expand All @@ -158,7 +160,7 @@ KAJONA.v4skin = {
$(this).css('background-image', 'none');
};

this.focus = function() {
this.focus = function(event, ui) {
return false;
};

Expand All @@ -170,7 +172,6 @@ KAJONA.v4skin = {
$( '#'+$objCur.attr('id')+'_id' ).val( ui.item.systemid);
}
}

};

this.create = function( event, ui ) {
Expand Down

0 comments on commit 36439be

Please sign in to comment.