diff options
author | Alex Legler <a3li@gentoo.org> | 2011-11-19 17:45:59 +0100 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2011-11-19 17:45:59 +0100 |
commit | dbd12fcb9d03e64e364124eeb55085a6809422e0 (patch) | |
tree | 575ad25bec3788631a61f4b7a4af414c7a244945 | |
parent | Drop secret_token.rb, set it in the local glsamaker config (diff) | |
download | glsamaker-dbd12fcb9d03e64e364124eeb55085a6809422e0.tar.gz glsamaker-dbd12fcb9d03e64e364124eeb55085a6809422e0.tar.bz2 glsamaker-dbd12fcb9d03e64e364124eeb55085a6809422e0.zip |
Enable templates for the title field
-rw-r--r-- | app/views/glsa/edit.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/glsa/edit.html.erb b/app/views/glsa/edit.html.erb index 100e4ff..3d5b801 100644 --- a/app/views/glsa/edit.html.erb +++ b/app/views/glsa/edit.html.erb @@ -54,7 +54,8 @@ <div id="left"> <div class="box"> - <%= box_title('Title', :icon => 'icons/title.png', :label => 'title') %> + <%= box_title('Title', :icon => 'icons/title.png', + :toolbar => [{:title => 'Add template', :uri => "javascript:GLSAMaker.editing.templates.dropdown(this, 'title');", :icon => 'icons/template.png'}]) %> <p><textarea name="glsa[title]" id="title" class="largetext nice" rows="1"><%= lastrev_content(@glsa, 'title') %></textarea></p> </div> @@ -166,6 +167,7 @@ <%= template_popups %> <script language="JavaScript" type="text/javascript"> + GLSAMaker.editing.templates.observeClick($('title')); GLSAMaker.editing.templates.observeClick($('synopsis')); GLSAMaker.editing.templates.observeClick($('description')); GLSAMaker.editing.templates.observeClick($('impact')); |