[sword-svn] r444 - trunk/webapp

scribe at crosswire.org scribe at crosswire.org
Mon Jan 15 11:54:31 MST 2018


Author: scribe
Date: 2018-01-15 11:54:31 -0700 (Mon, 15 Jan 2018)
New Revision: 444

Modified:
   trunk/webapp/simplegadget.jsp
Log:
added a check to clean poorly added spans


Modified: trunk/webapp/simplegadget.jsp
===================================================================
--- trunk/webapp/simplegadget.jsp	2018-01-15 18:53:28 UTC (rev 443)
+++ trunk/webapp/simplegadget.jsp	2018-01-15 18:54:31 UTC (rev 444)
@@ -191,6 +191,15 @@
 		$('.currentverse:last').html(text);
 		$('.currentverse > span').css('font-family','AntinoouWeb');
 	}
+	// find any poorly added spans and remove
+	else {
+		$('.currentverse').find('span').each(function() {
+			var oc = $(this).attr('onclick');
+			if (oc && oc.startsWith("p('',''")) {
+				$(this).replaceWith($(this).text());
+			}
+		})
+	}
 }
 
 




More information about the sword-cvs mailing list