Closed Bug 797400 Opened 12 years ago Closed 11 years ago

[socorro-crashstats] let's use a placeholder attribute instead

Categories

(Socorro :: Webapp, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: peterbe, Unassigned)

References

Details

The little search input is using a default value as the placeholder text:

 <input type="text" id="q" name="query" value="Find Crash ID or Signature">

Joint with this awful script in nav.js:

    $("#q").focus(function () {
        $(this).attr('value', '');
    });

...which means that if you type something, then blur then focus back to change what you typed you lose what you already typed :)
I know this is not urgent but I had my finger on the trigger and I was eager to see how the -moz-placeholder thing worked. 

PR: https://github.com/mozilla/socorro-crashstats/pull/113
Depends on: 788003
Depends on: 749359
No longer depends on: 788003
Target Milestone: --- → Future
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.