Commit cf9130a8 by kimth

Widow prevention should be active when there are actual words

parent a9b03483
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
$(".ui-accordion-header a, .ui-accordion-content .subtitle").each(function() { $(".ui-accordion-header a, .ui-accordion-content .subtitle").each(function() {
var wordArray = $(this).text().split(" "); var wordArray = $(this).text().split(" ");
var finalTitle = ""; var finalTitle = "";
if ($.isEmptyObject(wordArray)) { if (!($.isEmptyObject(wordArray))) {
for (i=0;i<=wordArray.length-1;i++) { for (i=0;i<=wordArray.length-1;i++) {
finalTitle += wordArray[i]; finalTitle += wordArray[i];
if (i == (wordArray.length-2)) { if (i == (wordArray.length-2)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment