[Xfce4-commits] <midori:master> Don't replace existing onclick/blur with autosuggest
Christian Dywan
noreply at xfce.org
Tue Mar 13 20:06:03 CET 2012
Updating branch refs/heads/master
to 2c9f219b7aa4fee00eef9f080e254b4c16ef7585 (commit)
from 1edfd88d2fcbc38f3720ce21cd656d1e6cda39bb (commit)
commit 2c9f219b7aa4fee00eef9f080e254b4c16ef7585
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Mar 13 20:03:20 2012 +0100
Don't replace existing onclick/blur with autosuggest
data/autosuggestcontrol.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/data/autosuggestcontrol.js b/data/autosuggestcontrol.js
index 85a506a..389bfd4 100644
--- a/data/autosuggestcontrol.js
+++ b/data/autosuggestcontrol.js
@@ -186,10 +186,10 @@ AutoSuggestControl.prototype.init = function () {
};
//assign onblur event handler (hides suggestions)
- this.textbox.onblur =
- this.textbox.onclick = function () {
- oThis.hideSuggestions();
- };
+ if (!this.textbox.onblur)
+ this.textbox.onblur = function () { oThis.hideSuggestions(); };
+ if (!this.textbox.onclick)
+ this.textbox.onclick = function () { oThis.hideSuggestions(); };
//create the suggestions dropdown
this.createDropDown();
@@ -299,7 +299,7 @@ function initSuggestions () {
if (inputs.length == 0)
return false;
- for (i=0;i<inputs.length;i++)
+ for (var i=0;i<inputs.length;i++)
{
var ename = inputs[i].getAttribute("name");
var eid = inputs[i].getAttribute("id");
More information about the Xfce4-commits
mailing list