diff options
author | marijus <mario@mariovavti.com> | 2014-06-26 19:08:16 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-06-26 19:08:16 +0200 |
commit | c6cae8e0c260d4286720626f765baab1280c2330 (patch) | |
tree | 995f48ac031870a03e83fbd1d1bb542b7fdcc089 /library/jquery.divgrow/jquery.divgrow-1.3.1.js | |
parent | 4d093e0e6db6fb8953a7d7761c335b812977c9f9 (diff) | |
download | volse-hubzilla-c6cae8e0c260d4286720626f765baab1280c2330.tar.gz volse-hubzilla-c6cae8e0c260d4286720626f765baab1280c2330.tar.bz2 volse-hubzilla-c6cae8e0c260d4286720626f765baab1280c2330.zip |
make it a div to prevent extra borders in some browsers after click
Diffstat (limited to 'library/jquery.divgrow/jquery.divgrow-1.3.1.js')
-rw-r--r-- | library/jquery.divgrow/jquery.divgrow-1.3.1.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/jquery.divgrow/jquery.divgrow-1.3.1.js b/library/jquery.divgrow/jquery.divgrow-1.3.1.js index e79c7928c..780d0ab82 100644 --- a/library/jquery.divgrow/jquery.divgrow-1.3.1.js +++ b/library/jquery.divgrow/jquery.divgrow-1.3.1.js @@ -46,9 +46,9 @@ obj.after('<p class="divgrow-brackets">[…]</p><a href="#" class="divgrow-showmore' + " divgrow-obj-" + divgrowid + '"' + '></a>');
}
else {
- obj.after('<a href="#" class="divgrow-showmore' + " divgrow-obj-" + divgrowid + '"' + '></a>');
+ obj.after('<div class="divgrow-showmore' + " divgrow-obj-" + divgrowid + '"' + '></div>');
}
- $("a.divgrow-showmore").html(options.moreText);
+ $("div.divgrow-showmore").html(options.moreText);
$("." + "divgrow-obj-" + divgrowid).toggle(function () {
//alert(obj.attr('class'));
@@ -61,7 +61,7 @@ if (options.showBrackets) {
$(this).nextAll("p.divgrow-brackets:first").fadeOut();
}
- $(this).nextAll("a.divgrow-showmore:first").html(options.lessText);
+ $(this).nextAll("div.divgrow-showmore:first").html(options.lessText);
});
@@ -74,7 +74,7 @@ if (options.showBrackets) {
$(this).nextAll("p.divgrow-brackets:first").stop(true, false).fadeIn();
}
- $(this).nextAll("a.divgrow-showmore:first").stop(true, false).html(options.moreText);
+ $(this).nextAll("div.divgrow-showmore:first").stop(true, false).html(options.moreText);
});
});
|