Sha256: ae4f45e48bd7755d0dcbb09528d4980d738aca868c9deae1727fc1e8b8d95143

Contents?: true

Size: 449 Bytes

Versions: 9

Compression:

Stored size: 449 Bytes

Contents

# -*- coding: utf-8; -*-
#
# draft.rb: save draft data to Web Storage automatically
#
# Copyright (c) MATSUOKA Kohei <http://www.machu.jp/>
# Distributed under the GPL2 or any later version.
#
if /\A(form|edit|preview|showcomment)\z/ === @mode then
	enable_js('draft.js')
end

add_edit_proc do
	<<-EOS
	<div class="draft">
		下書き:
		<select name="drafts"></select>
		<button type="button" id="draft_load">読み込み</button>
	</div>
	EOS
end

Version data entries

9 entries across 8 versions & 1 rubygems

Version Path
tdiary-5.0.0 misc/plugin/draft.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/tdiary-4.2.0/misc/plugin/draft.rb
tdiary-4.2.1 misc/plugin/draft.rb
tdiary-4.2.0 misc/plugin/draft.rb
tdiary-4.1.3 misc/plugin/draft.rb
tdiary-4.1.2 misc/plugin/draft.rb
tdiary-4.1.1 misc/plugin/draft.rb
tdiary-4.1.0 misc/plugin/draft.rb
tdiary-4.1.0.20141126 misc/plugin/draft.rb