zulip/frontend_tests/zjsunit
Shubham Padia 1f553a41d0 search: Higlight `#searchbox` on focus.
Adds box-shadow to `#searchbox` when either `#search_query` or any
of the pills have focus. Uses jquery instead of pure css as the
`:focus` event occurs on `#search_query`, while we want to add
box-shadow to `#searchbox`. This could have been done with
`:focus-within` CSS selector, but it is not supported in IE or Opera.

`#search_query` already had an onfocus/focusout listener, adding
listeners to `#searchbox.pills` for those events wouldn't have worked
as you don't want the focusout event to fire when the focus shifts
from input to pill.

Also adds `focusin`, `focusout` and `css()` to zjquery. `css` is
same as `val`, except it returns an empty object in case of no value
instead of an empty string. I don't think `css()` is valid syntax
in actual jquery.
2018-07-23 11:29:10 -07:00
..
bugdown_assert.js jsdom: Upgrade jsdom to v11.10.0. 2018-05-20 11:11:03 -07:00
finder.js eslint: Enable `no-extra-parens` rule. 2018-06-11 07:51:24 -04:00
i18n.js i18n: Remove now-unused ensure_i18n function. 2018-05-30 09:13:48 -07:00
index.js eslint: Enable space-infix-ops rule. 2018-06-05 00:47:35 +05:30
mdiff.js eslint: Enable space-infix-ops rule. 2018-06-05 00:47:35 +05:30
namespace.js node tests: Add `removeClass` to `stub_out_jquery`. 2018-05-23 15:29:34 -07:00
render.js node tests: Remove requirement to test all templates. 2018-05-24 09:30:22 -07:00
stub.js node tests: Add with_stub() helper. 2017-03-13 15:09:53 -07:00
zblueslip.js zblueslip: Store more_info and stack as well in the logs. 2018-07-10 16:22:52 -04:00
zjquery.js search: Higlight `#searchbox` on focus. 2018-07-23 11:29:10 -07:00