gkoberger / BugzillaJS

A userscript that adds additional functionality to bugzilla
https://addons.mozilla.org/en-US/firefox/addon/bugzillajs/
43 stars 18 forks source link

Instant "Remember Search" #42

Open gkoberger opened 12 years ago

gkoberger commented 12 years ago

Here's the code:

$('.bz_query_remember form').submit(function() { var url = $(this).attr('action'); $.post(url, $(this).serializeArray()); return false; });

rik commented 11 years ago

It looks like Remember Search needs a name, what's the feature behind this code?

gkoberger commented 11 years ago

I'm pretty sure @fwenzel wanted this? I wrote the code and never actually added it.

The point was that if you searched/filtered/etc for something, there could be a one-click "Save to my remembered searches" button (as opposed to it submitting to a new page).

fwenzel commented 11 years ago

Nope, not me, I think. Or perhaps I just don't remember anymore.

That said, looks like replacing the built-in POST with the call above would be benign.