[sword-svn] r1859 - trunk/src/modules/filters
scribe at crosswire.org
scribe at crosswire.org
Thu Oct 13 10:48:23 MST 2005
Author: scribe
Date: 2005-10-13 10:48:22 -0700 (Thu, 13 Oct 2005)
New Revision: 1859
Modified:
trunk/src/modules/filters/gbfwordjs.cpp
trunk/src/modules/filters/osiswordjs.cpp
trunk/src/modules/filters/thmlwordjs.cpp
Log:
added class to clickable words
Modified: trunk/src/modules/filters/gbfwordjs.cpp
===================================================================
--- trunk/src/modules/filters/gbfwordjs.cpp 2005-10-12 08:25:36 UTC (rev 1858)
+++ trunk/src/modules/filters/gbfwordjs.cpp 2005-10-13 17:48:22 UTC (rev 1859)
@@ -188,7 +188,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
text.insert(textStr, spanStart);
lastAppendLen = spanStart.length();
}
@@ -269,7 +269,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
text.insert(textStr, spanStart);
}
}
Modified: trunk/src/modules/filters/osiswordjs.cpp
===================================================================
--- trunk/src/modules/filters/osiswordjs.cpp 2005-10-12 08:25:36 UTC (rev 1858)
+++ trunk/src/modules/filters/osiswordjs.cpp 2005-10-13 17:48:22 UTC (rev 1859)
@@ -132,7 +132,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- text.appendFormatted("<span onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ text.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
wordNum++;
}
if ((*token == '/') && (token[1] == 'w') && option) { // Word
Modified: trunk/src/modules/filters/thmlwordjs.cpp
===================================================================
--- trunk/src/modules/filters/thmlwordjs.cpp 2005-10-12 08:25:36 UTC (rev 1858)
+++ trunk/src/modules/filters/thmlwordjs.cpp 2005-10-13 17:48:22 UTC (rev 1859)
@@ -203,7 +203,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
text.insert(textStr, spanStart);
lastAppendLen = spanStart.length();
}
@@ -284,7 +284,7 @@
const char *m = strchr(morph.c_str(), ':');
if (m) m++;
else m = morph.c_str();
- spanStart.appendFormatted("<span onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
+ spanStart.appendFormatted("<span class=\"clk\" onclick=\"p(\'%s\',\'%s\','%s','%s');\" >", lexName.c_str(), strong.c_str(), wordID.c_str(), m);
text.insert(textStr, spanStart);
}
}
More information about the sword-cvs
mailing list