Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Conversation

@jangxyz
Copy link
Contributor

@jangxyz jangxyz commented Jan 26, 2014

더 이상 '글 쓰다 날렸어요 엉엉~' 하는 피해자를 막기 위해 캐쉬 기능을 넣었습니다.

  1. 사용자가 작성 중일 때 localStorage에 저장, submit 하면 지움

  2. 만약에 submit 안 하고 창을 닫아서 남아 있게 되면, 사용자한테 알려줌

    2014-01-27 12 23 16

  3. 사용자는 apply 를 누르면 내용을 넣을 수 있다. (덮어쓰기)

    • 무시하고 계속 쓰면, 캐쉬가 덮어써짐

기본적인 기능은 이러한데, 기타 잡다한 기능도 추가했습니다:

  • 여러개의 캐쉬가 남았을 때 확인 후 비우는 기능
  • 캐쉬 남긴 시간이 언제인지 알려줌 (moment.js 짱짱맨)
  • view 페이지에 <textarea name="body"> 추가
  • 기타 다양한 .infobox 추가 및 CSS

발로 짜서 코드가 좀 지저분하긴 한데, 이런 기능을 위한 토론의 장이 되었으면 합니다.

- saves page content to localStorage when:
	1. focus is blurred on code-mirror
	2. user types enter
- displays message box to user when there is unapplied content:
	1. at current revision (on pageview), link redirects to edit page
	2. at current revision (on editview), link swaps content to saved cache

- lots of spaghetti
- think of when it was saved from another browser
- displays time elapsed since cache saved.
- need to add 'current content' to view page
	- add `article textarea[name="body"]` and hide it
@akngs
Copy link
Owner

akngs commented Feb 1, 2014

딱 좋은데요, 지금 한참 편집기 쪽을 고치는 중이라 이거 좀 있다가 합칠게요 ^^

감사합니다!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants