Magnus Hovland Hoff
58a859b014
Completely disable setting focus.
...
setSelectionRange causes Safari to set focus to the element. Trying to get rid of distracting focus changes that pops up an on-screen keyboard
2018-10-08 07:53:41 +02:00
Magnus Hovland Hoff
7373af0417
Select random theme for new articles client side
2018-10-05 11:19:47 +02:00
Magnus Hovland Hoff
65ad262bd8
Bugfix.
...
Cancel button is always disabled and shown conditionally
2018-10-05 11:03:41 +02:00
Magnus Hovland Hoff
d5410f2a22
Revert focusing the body text editor when entering edit mode.
...
This behaves badly in multiple mobile browsers, causing confusion. Perhaps it is better to disable this feature altogether
2018-10-01 09:02:55 +02:00
Magnus Hovland Hoff
17c23da9bf
Better scroll handling when toggling editing.
...
It will now retain the scroll position relative to the full document height when entering and leaving editing mode. This places the viewport closer to the contents you were watching. This is likely less disorienting
2018-10-01 09:01:27 +02:00
Magnus Hoff
c6dd37ed9e
Centralize handling of form elements state handling.
...
This makes it easier to maintain state changes. Seems to handle all states well now
2018-09-30 22:30:52 +02:00
Magnus Hovland Hoff
62378007b1
Reset theme when editing is canceled
2018-09-24 18:21:50 +02:00
Magnus Hoff
3bbe5840ee
Implement theme picker UI
2018-09-24 08:43:36 +02:00
Magnus Hovland Hoff
ecf4c1e98e
Disable save hotkey when it is not appropriate
2018-09-16 22:31:57 +02:00
Magnus Hovland Hoff
999253a778
Place text caret at end of text to reduce visual distraction caused by stuff moving around
2018-09-16 12:16:03 +02:00
Magnus Hovland Hoff
94db59c44c
Add hotkey for saving
2018-08-22 08:14:25 +02:00
Magnus Hoff
e26e60ce2c
Iterate on the design
...
Less box-shadow
2018-07-16 22:11:53 +02:00
Magnus Hoff
a6e329faf0
Simplify "Discard changes?" dialog
2017-12-02 11:06:20 +01:00
Magnus Hoff
bc0f8b8046
Restyle and refactor popup dialogs
2017-12-02 11:01:24 +01:00
Magnus Hoff
259c884045
Refactor popups a little
2017-12-01 16:52:39 +01:00
Magnus Hoff
ebef585c9c
Replace use of confirm()
, for #47
2017-12-01 16:44:07 +01:00
Magnus Hoff
35d13308b9
Replace use of alert()
, for #47
2017-12-01 16:37:41 +01:00
Magnus Hoff
578d525e25
Better styling of popup dialog
2017-12-01 16:22:36 +01:00
Magnus Hoff
74d2c18943
Use heuristic to guess that we hit a login redirect on saving
2017-11-29 12:53:41 +01:00
Magnus Hoff
2e406f4480
Handle authorization problems when saving article with JS
2017-11-24 17:26:46 +01:00
Magnus Hoff
07c3f4204f
Always update body text when editing, it could be changed server-side due to merging
2017-11-21 09:57:59 +01:00
Magnus Hoff
a09aa4b601
Expose merge conflicts in the JavaScript editor. This fixes #23
2017-11-20 16:37:52 +01:00
Magnus Hoff
3ca84dbb4e
Attempt to stop navigation when there is an edit in progress. This fixes #16
2017-10-28 15:26:50 +02:00
Magnus Hoff
6d56ad0001
Ask user for confirmation when they abandon an edit in progress. This fixes #17
2017-10-28 15:21:47 +02:00
Magnus Hoff
27ba110ad6
Fix regression
2017-10-24 15:16:01 +02:00
Magnus Hoff
700cf42eb0
Improve footer when article does not exist
2017-10-19 13:39:03 +02:00
Magnus Hoff
904bfd2a0b
Restructure footer.
...
Less irrelevant information. Refactor rendering of "last updated"
2017-10-19 13:26:54 +02:00
Magnus Hoff
1d485798eb
Implement /_new, for creating new articles without making up a URL first
2017-10-02 17:08:59 +02:00
Magnus Hoff
f205de053a
Allow edit requests to include credentials
2017-09-26 13:39:44 +02:00
Magnus Hoff
cf123f40eb
Fixes for Chrome
2017-09-21 12:18:09 +02:00
Magnus Hoff
cd784e34c3
Bugletfixes
2017-09-21 12:11:08 +02:00
Magnus Hoff
3feed530ff
Implement support for editing page title
2017-09-21 10:09:57 +02:00
Magnus Hoff
53c4ff1b5c
Extract CSS and JS from templates and serve as static assets
2017-09-15 14:54:47 +02:00