aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-06-09 18:21:20 +0100
committerRobin Houston <robin@lenny.robin>2011-06-09 18:21:20 +0100
commitc3d4255d5e78eedda28d96a8ac8aa43c401dd8ea (patch)
treedc8d3a78821774006e380c616f58e8ed3255a5c8
parent85c05d8e967deb9bf6cd544119da577acb035714 (diff)
Remove the spelling checker, because:
1/ It introduces a PHP dependency, which complicates testing and deployment outside the mySociety infrastructure; 2/ Modern browsers have built-in spell-checking capabilities.
-rw-r--r--app/views/comment/_comment_form.rhtml1
-rw-r--r--app/views/layouts/default.rhtml2
-rw-r--r--app/views/request/_followup.rhtml1
-rw-r--r--app/views/request/new.rhtml4
4 files changed, 0 insertions, 8 deletions
diff --git a/app/views/comment/_comment_form.rhtml b/app/views/comment/_comment_form.rhtml
index f943cf8ad..509cc05bb 100644
--- a/app/views/comment/_comment_form.rhtml
+++ b/app/views/comment/_comment_form.rhtml
@@ -1,7 +1,6 @@
<% form_for(:comment, @comment, :url => { :controller => "comment", :action => "new", :type => "request" }, :html => { :id => 'comment_form' } ) do |f| %>
<p>
<%= f.text_area :body, :rows => 10, :cols => 55 %>
- <br><script type="text/javascript">document.write('<input name="doSpell" type="button" value="Check spelling" onClick="openSpellChecker(document.getElementById(\'comment_form\').body);"/> (optional)')</script>
</p>
<% if !TrackThing.find_by_existing_track(@user, track_thing) && (!@user || @info_request.user != @user) %>
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index aa532e481..938b032df 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -1,8 +1,6 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">
<head>
- <script type="text/javascript" src="/jslib/spell/spellChecker.js"></script>
-
<% if @profile_photo_javascript %>
<script type="text/javascript" src="/javascripts/jquery.js"></script>
<script type="text/javascript" src="/javascripts/jquery.Jcrop.js"></script>
diff --git a/app/views/request/_followup.rhtml b/app/views/request/_followup.rhtml
index f3dcbd785..de9d5530d 100644
--- a/app/views/request/_followup.rhtml
+++ b/app/views/request/_followup.rhtml
@@ -55,7 +55,6 @@
<% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>
<p>
<%= o.text_area :body, :rows => 15, :cols => 55 %>
- <br><script type="text/javascript">document.write('<input name="doSpell" type="button" value="Check spelling" onClick="openSpellChecker(document.getElementById(\'followup_form\').body);"/> (optional)')</script>
</p>
<% if @internal_review %>
diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml
index b2fa9176e..e9e89aa5d 100644
--- a/app/views/request/new.rhtml
+++ b/app/views/request/new.rhtml
@@ -115,10 +115,6 @@
<%= o.text_area :body, :rows => 20, :cols => 60 %>
</p>
<% end %>
-
- <div class="form_button">
- <script type="text/javascript">document.write('<input name="doSpell" type="button" value="Check spelling" onClick="openSpellChecker(document.getElementById(\'write_form\').body);"/> (optional)')</script>
- </div>
<% if !@user %>
<p class="form_note">