From: Robert Konigsberg Date: Sun, 8 Jan 2012 03:36:22 +0000 (-0500) Subject: Filter bar input is now type "search" which looks sexy on mac. X-Git-Tag: v1.0.0~362 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=2d9dee16484fe1836c942a8dca9c097cd55b10c0;p=dygraphs.git Filter bar input is now type "search" which looks sexy on mac. --- diff --git a/experimental/palette/palette.js b/experimental/palette/palette.js index 598a163..5a2891c 100644 --- a/experimental/palette/palette.js +++ b/experimental/palette/palette.js @@ -97,9 +97,11 @@ Palette.prototype.create = function(document, parentElement) { Palette.createChild("span", row).innerText = "Filter:"; this.filterBar = Palette.createChild("input", Palette.createChild("span", row)); + this.filterBar.type = "search"; this.filterBar.onkeyup = function() { palette.filter(palette.filterBar.value) }; + this.filterBar.onclick = this.filterBar.onkeyup; var go = document.createElement("button"); Palette.createChild("span", row).appendChild(go); go.innerText = "Redraw"