Commit Graph

16 Commits (f003f55fcac34e83f7eb3cc3d09b0ac0b15aa9f7)

Author SHA1 Message Date
voussoir 84a5e2b4e1 Significant updates to editor.js. 2021-01-01 19:46:06 -08:00
voussoir adddba6c97 Simplify this bindable def by reversing the if/def nest.
Instead of defining the function with an internal if that will always
pick the same path, let's use that if to instead define a
straightforward function that just does what we want.
2020-10-13 10:53:56 -07:00
voussoir dd0ee7a72a Use more const. 2020-09-14 18:33:53 -07:00
voussoir 05b39c21fd Replace loop uses of var with let/const. 2020-09-03 15:33:37 -07:00
voussoir 8af340e442 Replace non-global uses of var with let. 2020-09-03 15:31:47 -07:00
voussoir c7e4bf16d2 Pull spinner code into own file spinner.js.
For the purposes of editor.js this does not bring much improvement,
but now I can easily make spinners for other things.
2019-04-27 15:42:02 -07:00
voussoir 465891e53a Add an error message field to the Editor. 2019-01-13 14:35:54 -08:00
voussoir e25e0798c9 Add editor button placeholder to stop page jump on load. 2018-11-17 16:50:41 -08:00
voussoir f28e362c58 Add space between ok, cancel buttons on editor & confirmer. 2018-08-16 19:46:33 -07:00
voussoir 949f7177de Add css class gray_button, for more neutral / cancel actions.
Red seems too aggressive and indicates danger when not appropriate.
Gray seems better for reverting to an already safe state.
2018-07-28 20:18:10 -07:00
voussoir 63a3ecfa88 Add namespacing to editor.js. 2018-07-22 20:21:00 -07:00
voussoir c7cce5a4e5 Add namespacing to common.js. 2018-07-22 20:21:00 -07:00
voussoir 27885df64e Fix binding of the fallback handler. 2018-03-23 10:25:03 -07:00
voussoir 6de0ad8e36 Oops, add this.open fallback to the open binder. 2018-03-10 13:28:13 -08:00
voussoir 494d44aa03 Improve editor.js comments and usage of `this`.
I realized what I was doing wrong with `this`, so now the function
binder is much cleaner.
2018-03-10 13:23:37 -08:00
voussoir 56a998682d Create js folder. Move Editor to its own file. 2018-02-24 00:46:55 -08:00