Skip to content
Snippets Groups Projects
Commit e72f95f6 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

merge changes discussed in dcneiner pull number 4 'fix for autocomplete issue'...

merge changes discussed in dcneiner pull number 4 'fix for autocomplete issue' including firefox password overlay
parent 3e519945
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
* Uses the same license as jQuery, see:
* http://docs.jquery.com/License
*
* @version 0.1.2
* @version 0.1.6
*/
(function ($) {
......@@ -31,10 +31,13 @@
base.options = $.extend({}, $.InFieldLabels.defaultOptions, options);
// Check if the field is already filled in
if (base.$field.val() !== "") {
base.$label.hide();
base.showing = false;
}
// add a short delay to handle autocomplete
setTimeout(function() {
if (base.$field.val() !== "") {
base.$label.hide();
base.showing = false;
}
}, 200);
base.$field.focus(function () {
base.fadeOnFocus();
......@@ -52,7 +55,15 @@
base.checkForEmpty();
}).bind('onPropertyChange', function () {
base.checkForEmpty();
}).bind('keyup.infieldlabel', function () {
base.checkForEmpty()
});
setInterval(function(){
if(base.$field.val() != ""){
base.$label.hide();
base.showing = false;
};
},100);
};
// If the label is currently showing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment