[sword-svn] r447 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Tue Apr 10 16:08:58 MST 2018
Author: scribe
Date: 2018-04-10 16:08:57 -0700 (Tue, 10 Apr 2018)
New Revision: 447
Modified:
trunk/webapp/eusebian.jsp
Log:
updated eusebian gospel parallels a bit to keep from unnecessarily rendering with no context if we're just going to replace it
Modified: trunk/webapp/eusebian.jsp
===================================================================
--- trunk/webapp/eusebian.jsp 2018-04-10 22:58:12 UTC (rev 446)
+++ trunk/webapp/eusebian.jsp 2018-04-10 23:08:57 UTC (rev 447)
@@ -145,6 +145,9 @@
</div>
</div>
<div id="eusebianTable">
+<% // if we're only showing 1 verse of context (default), we'll include a simple rendering here
+ // to help with search engines which won't include ajax content added after page load
+ if (contextVerses == 0) { %>
<table style="margin:100px 10px 10px 10px; border-collapse:collapse;" class="<%= lang %>">
<thead>
<tr>
@@ -216,14 +219,19 @@
</tr>
</tbody>
</table>
+<% } %>
</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
+ var contextVerses = <%= contextVerses %>;
+ $('#contextValue').html(contextVerses);
+
$("#contextControl").slider({
min: 0, max: 5,
+ value: contextVerses,
change: function(event, ui) {
var postData = 'mod=<%=activeModule.getName()%>&key=<%=activeKey%>&context='+ui.value;
@@ -235,11 +243,12 @@
$('#contextValue').html(ui.value);
}
});
- var contextVerses = <%= contextVerses %>;
+
if (contextVerses) {
$("#contextControl").slider('value', contextVerses);
$('#contextValue').html(contextVerses);
}
+
});
</script>
</tiles:put>
More information about the sword-cvs
mailing list