summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-01-25 15:29:37 +0100
committerJochen Topf <jochen@topf.org>2012-01-25 15:29:37 +0100
commit5d86569a0f9626c6357770c684f5497f94d1c969 (patch)
treeb2c68674e9c742ab5de9438e3b0dfa7e5d069212 /web
parent24098767e33d686dc93139d1f7404291e203d8e8 (diff)
downloadtaginfo-5d86569a0f9626c6357770c684f5497f94d1c969.tar
taginfo-5d86569a0f9626c6357770c684f5497f94d1c969.tar.gz
Tooltip on table search box
Diffstat (limited to 'web')
-rw-r--r--web/i18n/de.yml1
-rw-r--r--web/i18n/en.yml1
-rw-r--r--web/public/js/flexigrid.js2
-rw-r--r--web/public/js/taginfo.js1
-rw-r--r--web/viewsjs/texts.js.erb1
5 files changed, 5 insertions, 1 deletions
diff --git a/web/i18n/de.yml b/web/i18n/de.yml
index 8fea389..7bb86a3 100644
--- a/web/i18n/de.yml
+++ b/web/i18n/de.yml
@@ -58,6 +58,7 @@ misc:
line: Linie
area: Fläche
language: Sprache
+ search_for: Suche nach
objects_tooltip: Anzahl der Objekte (als Absolutwert und als Bruchteil aller Nodes, Ways und Relations).
nodes_tooltip: Anzahl der Nodes (als Absolutwert und als Bruchteil aller Nodes mit Tags, d.h. Nodes ohne jegliche Tags werden ignoriert).
ways_tooltip: Anzahl der Ways (als Absolutwert und als Bruchteil aller Ways).
diff --git a/web/i18n/en.yml b/web/i18n/en.yml
index 3fa663a..d65409c 100644
--- a/web/i18n/en.yml
+++ b/web/i18n/en.yml
@@ -59,6 +59,7 @@ misc:
line: Line
area: Area
language: Language
+ search_for: Search for
objects_tooltip: Number of objects (as absolute value and as percentage of all nodes, ways, and relations).
nodes_tooltip: Number of nodes (as absolute value and as percentage of tagged nodes, ie. nodes without any tags are ignored).
ways_tooltip: Number of ways (as absolute value and as percentage of all ways).
diff --git a/web/public/js/flexigrid.js b/web/public/js/flexigrid.js
index aea03a8..6a6839d 100644
--- a/web/public/js/flexigrid.js
+++ b/web/public/js/flexigrid.js
@@ -1253,7 +1253,7 @@
if (p.qtype=='') p.qtype = sitems[0].name;
- $(g.sDiv).append("<div class='btnseparator'></div> <div class='sDiv2'>"/*+p.findtext*/+" <input type='text' size='20' name='q' class='qsbox' />"); // <select name='qtype'>"+sopt+"</select> <!--input type='button' value='Clear' /--></div>");
+ $(g.sDiv).append("<div class='btnseparator'></div> <div class='sDiv2'>"/*+p.findtext*/+" <input title='" + texts.misc.search_for + ': ' + sitems[0].display + "' type='text' size='20' name='q' class='qsbox' />"); // <select name='qtype'>"+sopt+"</select> <!--input type='button' value='Clear' /--></div>");
$('input[name=q],select[name=qtype]',g.sDiv).keydown(function(e){if(e.keyCode==13) g.doSearch()});
$('input[value=Clear]',g.sDiv).click(function(){$('input[name=q]',g.sDiv).val(''); p.query = ''; g.doSearch(); });
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index f68f51f..1e46164 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -314,6 +314,7 @@ function create_flexigrid(domid, options) {
var rp = calculate_flexigrid_rp(me.parents('.resize,.ui-tabs-panel'));
grids[domid] = me.flexigrid(jQuery.extend({}, flexigrid_defaults, texts.flexigrid, options, { rp: rp }));
jQuery('th *[title]').tipsy({ opacity: 1, delayIn: 500, gravity: 's' });
+ jQuery('.sDiv input[title]').tipsy({ opacity: 1, delayIn: 500, gravity: 'e' });
} else {
// grid does exist, make sure it has the right size
var grid = grids[domid][0].grid;
diff --git a/web/viewsjs/texts.js.erb b/web/viewsjs/texts.js.erb
index a123485..ec7cdb0 100644
--- a/web/viewsjs/texts.js.erb
+++ b/web/viewsjs/texts.js.erb
@@ -13,6 +13,7 @@ var texts = <%=
:values_less_than_one_percent => @trans.t.misc.values_less_than_one_percent,
:empty_string => @trans.t.misc.empty_string,
:all => @trans.t.misc.all,
+ :search_for => @trans.t.misc.search_for,
},
:osm => {
:key => @trans.t.osm.key,