[sword-svn] r448 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Sun Jun 24 08:03:36 MST 2018
Author: scribe
Date: 2018-06-24 08:03:35 -0700 (Sun, 24 Jun 2018)
New Revision: 448
Modified:
trunk/webapp/simplegadget.jsp
Log:
added example configuration
Modified: trunk/webapp/simplegadget.jsp
===================================================================
--- trunk/webapp/simplegadget.jsp 2018-04-10 23:08:57 UTC (rev 447)
+++ trunk/webapp/simplegadget.jsp 2018-06-24 15:03:35 UTC (rev 448)
@@ -55,6 +55,8 @@
%>
</UserPref>
<UserPref name="autoSelectMod" datatype="bool" display_name="Auto Select Bible from Last Manuscript Language" default_value="false" />
+<UserPref name="exampleReference" datatype="string" display_name="Example Reference" default_value="Type a verse; e.g., jn.3.3" />
+
<Content type="html">
<![CDATA[
<head>
@@ -123,7 +125,7 @@
<div id="tabs-1" style="padding:.2em .3em;">
<div style="width:100%;">
<div style="float:left;margin-top:.2em;">Quick Lookup: </div>
- <div style="overflow:hidden;"><input name="verseRef" style="width:100%;" id="verseRef" placeholder="Type a verse; e.g., jn.3.3" onKeyPress="return keyPress('verseRef', event);"/></div>
+ <div style="overflow:hidden;"><input name="verseRef" style="width:100%;" id="verseRef" placeholder="" onKeyPress="return keyPress('verseRef', event);"/></div>
<span id="currentVerse" style="float:right;display:inline-block;"></span>
<div style="clear:both;"></div>
</div>
@@ -364,6 +366,8 @@
var prefs = new gadgets.Prefs();
swordModule = prefs.getString('swordModule');
autoSelectMod = prefs.getBool('autoSelectMod');
+ var exampleReference = prefs.getString('exampleReference');
+ $('#verseRef').prop('placeholder', exampleReference);
chosenModule = swordModule;
preferredHeight = parseInt(prefs.getString('height'));
if (gadgets.util.hasFeature('dynamic-height')) gadgets.window.adjustHeight(preferredHeight == -1 ? 500 : preferredHeight);
More information about the sword-cvs
mailing list