You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@esme.apache.org by rh...@apache.org on 2010/06/28 17:31:39 UTC
svn commit: r958603 - in /incubator/esme/trunk/server/src/main/webapp: ./
info_view/ scripts/ templates-hidden/
Author: rhirsch
Date: Mon Jun 28 15:31:39 2010
New Revision: 958603
URL: http://svn.apache.org/viewvc?rev=958603&view=rev
Log:
[ESME-237] Script paths are wrong in Tomcat
Modified:
incubator/esme/trunk/server/src/main/webapp/index.html
incubator/esme/trunk/server/src/main/webapp/info_view/conversation.html
incubator/esme/trunk/server/src/main/webapp/info_view/search.html
incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js
incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js
incubator/esme/trunk/server/src/main/webapp/signup.html
incubator/esme/trunk/server/src/main/webapp/templates-hidden/base.html
incubator/esme/trunk/server/src/main/webapp/templates-hidden/default_signup.html
incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html
incubator/esme/trunk/server/src/main/webapp/templates-hidden/message_core.html
Modified: incubator/esme/trunk/server/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/index.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/index.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/index.html Mon Jun 28 15:31:39 2010
@@ -34,9 +34,9 @@
<head>
<script id="jquery" src="/classpath/jquery.js" type="text/javascript"/>
<script id="json" src="/classpath/json.js" type="text/javascript"/>
- <script src="/scripts/display_single_message.js" type="text/javascript"/>
- <script src="/scripts/pretty.js" type="text/javascript"/>
- <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
+ <script src="scripts/display_single_message.js" type="text/javascript"/>
+ <script src="scripts/pretty.js" type="text/javascript"/>
+ <link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
</head>
<!---BLUE HEADER-->
<div id="container-2nd-level-bg">
Modified: incubator/esme/trunk/server/src/main/webapp/info_view/conversation.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/info_view/conversation.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/info_view/conversation.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/info_view/conversation.html Mon Jun 28 15:31:39 2010
@@ -20,8 +20,8 @@
<lift:TableSorterSnip/>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<head>
- <script src="/scripts/display_messages.js" type="text/javascript"/>
- <script src="/scripts/pretty.js" type="text/javascript"/>
+ <script src="../scripts/display_messages.js" type="text/javascript"/>
+ <script src="../scripts/pretty.js" type="text/javascript"/>
</head>
<div id="back-header">
Modified: incubator/esme/trunk/server/src/main/webapp/info_view/search.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/info_view/search.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/info_view/search.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/info_view/search.html Mon Jun 28 15:31:39 2010
@@ -17,7 +17,7 @@
under the License. *
-->
<lift:surround with="base" at="left">
-<script src="/scripts/display_messages.js" type="text/javascript"/>
+<script src="../scripts/display_messages.js" type="text/javascript"/>
<div id="left">
<div id="back-header">
<h1><lift:loc>ui_messages_search_for</lift:loc> <i><lift:searchTerm/></i> </h1>
Modified: incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js (original)
+++ incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js Mon Jun 28 15:31:39 2010
@@ -68,6 +68,8 @@ function displayMessages(msgArray, eleme
var msgDateStr = prettyDate(msgDateObj);
+
+
var msgPool = '';
if (cometMsg.pool) msgPool = 'in pool ' + cometMsg.pool.name;
var msgPoolId = 0;
@@ -106,7 +108,7 @@ function displayMessages(msgArray, eleme
var avatar = newMsg.find('#avatar')
.attr('src', msgAuthor.imageUrl)
.attr('alt',msgAuthor.firstname + ' ' + msgAuthor.lastname);
-
+
newMsg.find('#body').html(msgBody);
newMsg.find('#supp_data').text(msgPool + " " + msgDateStr + " " + msgReason + " " + msgSource);
newMsg.find('#msgPool').text(msgPool);
@@ -122,8 +124,10 @@ function displayMessages(msgArray, eleme
attr('onclick', 'javascript:resend_msg(' + id + ');' +
'clearResend("resend_' + id + '")');
}
+
+
newMsg.find('#reply').attr('href',
- "javascript:setReplyTo(" + id + ", '"+ encodeURI(msgBody) + "'," + msgPoolId + ", '" + msgAuthor.nickname + "')");
+ "javascript:setReplyTo(" + id + ", '"+ escape(msgBody) + "'," + msgPoolId + ", '" + msgAuthor.nickname + "')");
var conversation = newMsg.find('#conversation');
if (msgConversation != 0) {
conversation.attr('href',
Modified: incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js (original)
+++ incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js Mon Jun 28 15:31:39 2010
@@ -11,8 +11,8 @@
*
Unless required by applicable law or agreed to in writing, *
software distributed under the License is distributed on an *
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
- KIND, either express or implied. See the License for the *
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
+ KIND, either express or implied. See the License for the *
specific language governing permissions and limitations *
under the License. *
*/
@@ -25,11 +25,13 @@
function login()
{
- if (document.forms[0].open_id.value != "") {
- document.forms[0].action='/open_id/login';
- }
+ var myAction;
+
+ if (document.forms[0].open_id.value != "")
+ document.forms[0].action = 'open_id/login';
else
- document.forms[0].action='/authentication/login';
+ document.forms[0].action = 'authentication/login';
+
document.forms[0].submit();
}
Modified: incubator/esme/trunk/server/src/main/webapp/signup.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/signup.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/signup.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/signup.html Mon Jun 28 15:31:39 2010
@@ -21,8 +21,8 @@
<head>
- <script src="/scripts/jquery.validate.js" type="text/javascript"/>
- <script src="/scripts/esme_validate.js" type="text/javascript"/>
+ <script src="scripts/jquery.validate.js" type="text/javascript"/>
+ <script src="scripts/esme_validate.js" type="text/javascript"/>
</head>
<div id="content">
Modified: incubator/esme/trunk/server/src/main/webapp/templates-hidden/base.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/templates-hidden/base.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/templates-hidden/base.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/templates-hidden/base.html Mon Jun 28 15:31:39 2010
@@ -38,7 +38,8 @@
<script id="json" src="/classpath/json.js" type="text/javascript"/>
<script src="../scripts/jquery.TipTip.js" type="text/javascript"/>
<script src="../scripts/esme_tool_tip.js" type="text/javascript"/>
- <script src="/scripts/jquery.validate.js" type="text/javascript"/>
+ <script src="../scripts/jquery.validate.js" type="text/javascript"/>
+ <script src="../scripts/esme_validate.js" type="text/javascript"/>
</head>
<body id="back">
<div id="messages" class="esme_message_bar" style="display: none"></div>
Modified: incubator/esme/trunk/server/src/main/webapp/templates-hidden/default_signup.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/templates-hidden/default_signup.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/templates-hidden/default_signup.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/templates-hidden/default_signup.html Mon Jun 28 15:31:39 2010
@@ -29,8 +29,8 @@
<link rel="stylesheet" href="style/tipTip.css" type="text/css" media="screen" />
<script id="jquery" src="/classpath/jquery.js" type="text/javascript"/><script id="json" src="/classpath/json.js" type="text/javascript"/>
<script id="jquery" src="/classpath/jquery.js" type="text/javascript"/>
- <script src="/scripts/jquery.TipTip.js" type="text/javascript"/>
- <script src="/scripts/esme_tool_tip.js" type="text/javascript"/>
+ <script src="scripts/jquery.TipTip.js" type="text/javascript"/>
+ <script src="scripts/esme_tool_tip.js" type="text/javascript"/>
</head>
<body id="home">
<div id="container-bg">
Modified: incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/templates-hidden/message.html Mon Jun 28 15:31:39 2010
@@ -21,8 +21,8 @@
<lift:surround with="base" at="left">
<head>
- <script src="/scripts/display_messages.js" type="text/javascript"/>
- <script src="/scripts/pretty.js" type="text/javascript"/>
+ <script src="scripts/display_messages.js" type="text/javascript"/>
+ <script src="scripts/pretty.js" type="text/javascript"/>
</head>
<div id="left">
Modified: incubator/esme/trunk/server/src/main/webapp/templates-hidden/message_core.html
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/templates-hidden/message_core.html?rev=958603&r1=958602&r2=958603&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/templates-hidden/message_core.html (original)
+++ incubator/esme/trunk/server/src/main/webapp/templates-hidden/message_core.html Mon Jun 28 15:31:39 2010
@@ -19,8 +19,8 @@
<div id="timeline_messages">
<head>
- <script src="/scripts/display_messages.js" type="text/javascript"/>
- <script src="/scripts/pretty.js" type="text/javascript"/>
+ <script src="../scripts/display_messages.js" type="text/javascript"/>
+ <script src="../scripts/pretty.js" type="text/javascript"/>
</head>
<div class="updates-box" id="message">
<div class="avatar">