[Logilogi-svn] SF.net SVN: logilogi:[1752] trunk
Status: Beta
Brought to you by:
wybow
|
From: <wy...@us...> - 2010-07-05 15:06:43
|
Revision: 1752
http://logilogi.svn.sourceforge.net/logilogi/?rev=1752&view=rev
Author: wybow
Date: 2010-07-05 15:06:37 +0000 (Mon, 05 Jul 2010)
Log Message:
-----------
Fixed submit bug
Modified Paths:
--------------
trunk/app/views/logi_inserts/new.html.erb
trunk/public/javascripts/body_inserter.js
Modified: trunk/app/views/logi_inserts/new.html.erb
===================================================================
--- trunk/app/views/logi_inserts/new.html.erb 2010-07-04 18:34:08 UTC (rev 1751)
+++ trunk/app/views/logi_inserts/new.html.erb 2010-07-05 15:06:37 UTC (rev 1752)
@@ -111,6 +111,7 @@
<div class="spacer"></div>
<div class="main_column">
+ <%= hidden_field_tag :selected_text_field, :autocomplete => "off" %>
<div id="common">
<% render :layout => 'application/panel', :locals => {
@@ -130,7 +131,7 @@
<% javascript_tag do -%>
body_inserter = new BodyInserter('body_with_inserts',
- 'selected_text_field','selected_text_text',
+ 'selected_text_field',
'<%= Const::Logi::INSERT_STRING %>',
'<%= t 'v.logi_inserts.no_selection_made' %>');
<% end -%>
Modified: trunk/public/javascripts/body_inserter.js
===================================================================
--- trunk/public/javascripts/body_inserter.js 2010-07-04 18:34:08 UTC (rev 1751)
+++ trunk/public/javascripts/body_inserter.js 2010-07-05 15:06:37 UTC (rev 1752)
@@ -16,12 +16,11 @@
var BodyInserter = Class.create({
// Constructors
- initialize: function(textarea_id, hidden_field_id, show_field_id,
+ initialize: function(textarea_id, hidden_field_id,
insert_place_holder_string, place_holder_string) {
this.textarea = $(textarea_id);
this.textarea_id = textarea_id;
this.hidden_field = $(hidden_field_id);
-// this.show_field = $(show_field_id);
this.insert_place_holder_string = insert_place_holder_string;
this.place_holder_string = place_holder_string;
if (Prototype.Browser.IE) {
@@ -75,18 +74,7 @@
editor.setContent(cl_content);
$('focus_field').focus();
this.hidden_field.value = cl_content;
-
-// if (cl_selection.text.empty()) {
-// this.show_field.innerHTML = '<p><i>' + this.place_holder_string +
-// '</i></p>';
-// } else {
-// this.show_field.innerHTML = '<p><i>' + cl_selection.text + '</i></p>';
-// }
- // Effect.ScrollTo(this.show_field);
}
- } else {
-// this.show_field.innerHTML = '<p><i>' + this.place_holder_string +
-// '</i></p>';
}
},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|