[sword-svn] r446 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Tue Apr 10 15:58:13 MST 2018
Author: scribe
Date: 2018-04-10 15:58:12 -0700 (Tue, 10 Apr 2018)
New Revision: 446
Modified:
trunk/webapp/eusebian.jsp
Log:
added ability to supply contextVerses when loading the Eusebian Gospel parallel for a verse
Modified: trunk/webapp/eusebian.jsp
===================================================================
--- trunk/webapp/eusebian.jsp 2018-01-15 18:57:10 UTC (rev 445)
+++ trunk/webapp/eusebian.jsp 2018-04-10 22:58:12 UTC (rev 446)
@@ -29,6 +29,8 @@
session.setAttribute("ActiveKey", activeKey);
}
+ int contextVerses = 0; try { contextVerses = Integer.parseInt(request.getParameter("context")); } catch (Exception e) {}
+
mgr.setGlobalOption("Footnotes", "Off");
mgr.setGlobalOption("Cross-references", "Off");
SWModule eusVs = mgr.getModuleByName("Eusebian_vs");
@@ -233,6 +235,11 @@
$('#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