summaryrefslogtreecommitdiffstats
path: root/app/views/news
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-27 12:38:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-27 12:38:29 +0000
commit70374d084e19dba21e83e8a360a62ff0168ff207 (patch)
tree8db177647094fbbd16d8a242827579d949d40d1e /app/views/news
parentf335e943ad807de82f8ff860922d9c9aa2f3a3bc (diff)
downloadredmine-70374d084e19dba21e83e8a360a62ff0168ff207.tar.gz
redmine-70374d084e19dba21e83e8a360a62ff0168ff207.zip
Slight views refactoring
git-svn-id: http://redmine.rubyforge.org/svn/trunk@548 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/news')
-rw-r--r--app/views/news/_form.rhtml14
1 files changed, 1 insertions, 13 deletions
diff --git a/app/views/news/_form.rhtml b/app/views/news/_form.rhtml
index d5fec279a..1ea3c6aa7 100644
--- a/app/views/news/_form.rhtml
+++ b/app/views/news/_form.rhtml
@@ -5,16 +5,4 @@
<p><%= f.text_area :description, :required => true, :cols => 60, :rows => 15, :class => 'wiki-edit' %></p>
</div>
-<% if Setting.text_formatting == 'textile' %>
-<%= javascript_include_tag 'jstoolbar' %>
-<script type="text/javascript">
-//<![CDATA[
-if (document.getElementById) {
- if (document.getElementById('news_description')) {
- var commentTb = new jsToolBar(document.getElementById('news_description'));
- commentTb.draw();
- }
-}
-//]]>
-</script>
-<% end %> \ No newline at end of file
+<%= wikitoolbar_for 'news_description' %>