Commit Graph

30 Commits (8ac31562b7982655afbccd84e721839c3aa6c253)

Author SHA1 Message Date
voussoir 5841279f9e Sync common.js with Etiquette. 2020-11-08 19:32:04 -08:00
voussoir 4b1fde386d Add some docstrings to the request code. 2020-11-03 00:03:59 -08:00
voussoir 42417ed008 Sync common.js with Etiquette. 2020-10-23 07:44:18 -07:00
voussoir 67a3472aad Avoid creating emptystring promptclass. 2020-10-04 16:53:27 -07:00
voussoir ed3942b943 Let response status be 0 even if request didn't complete.
Since meta.status would be undefined for an incomplete request,
I would have to check response.completed && response.meta.status,
which is too much burden. Let's set the status immediately, and
if a callback wants to do further diving we'll use completed then.
2020-10-02 19:43:25 -07:00
voussoir 94e3bcd21d Set tabbed_container data-active-tab-id on tab change. 2020-10-02 13:17:38 -07:00
voussoir 69c1dd92e9 Synchronize --wide, --narrow with Etiquette. 2020-09-19 10:42:31 -07:00
voussoir 34aafedf46 Synchronize with Etiquette. 2020-09-18 16:35:02 -07:00
voussoir 76b1504353 Synchronize with Etiquette. 2020-09-15 15:04:50 -07:00
voussoir ec19301bcc Rewrite entry_with_history hook and use keydown instead of keyup. 2020-09-12 10:14:52 -07:00
voussoir 0ae041f001 Add whitelist/blacklist functionality to merge_params. 2020-09-04 15:10:58 -07:00
voussoir 7d3a9fe03e Add explanation of data-prompt-class et al.
I think I left these blank because I felt they should be obvious.
But I'd rather have it explicit.
2020-09-04 14:50:30 -07:00
voussoir 0518765f33 Add css/js class entry_with_history to automate adding the hook. 2020-09-04 11:18:41 -07:00
voussoir 03c366fff8 Replace var with let/const. 2020-09-03 15:44:58 -07:00
voussoir f103447807 Add css/js class tabbed_container. 2020-09-03 11:54:00 -07:00
voussoir d4cad47b78 Add docstring to init_enable_on_pageload. 2020-09-03 11:51:30 -07:00
voussoir 25e9975926 Add css/js class enable_on_pageload. 2020-08-28 16:18:51 -07:00
voussoir c13f02006b Let button_with_confirm inherit original CSS when not specified. 2020-08-08 18:59:17 -07:00
voussoir bacdad07a6 Add docstring to bind_box_to_button, and some small linting. 2020-06-30 20:32:29 -07:00
voussoir 6a41b18ba7 Dedent by using early returns. 2020-06-28 17:07:12 -07:00
voussoir 1e4f4441bb Use dot notation instead of subscript. 2020-06-28 16:55:37 -07:00
voussoir fcbb128f47 Add attribute "completed" to response object. 2020-06-28 16:47:54 -07:00
voussoir e420d92f6c Add more docstring to button_with_confirm data-onclick parameter. 2020-06-17 14:09:02 -07:00
voussoir d2d8a69d39 Synchronize Etiquette common.js and YCDL common.js. 2020-06-17 13:38:01 -07:00
voussoir 9c629d53b1 Remove some useless functions from common.js. 2020-06-04 19:04:51 -07:00
voussoir d0a0a87b43 Add function common.refresh. 2020-06-03 12:28:09 -07:00
voussoir 113a92fb5b Move function html_to_element to common.js. 2020-06-03 12:26:25 -07:00
voussoir 2ba9eb8df2 Add docstring for init_atag_merge_params. 2020-06-03 12:21:23 -07:00
voussoir 480eeb9ac3 Update common.js request, get, post functions like Etiquette. 2020-05-21 20:29:43 -07:00
voussoir 13a72ec7fc Move CSS and JS into separate folders under static. 2020-05-21 19:43:45 -07:00