svn: /web/php/trunk/ include/shared-manual.inc styles/site.css
| From: | Hannes Magnusson | Date: | Wed, 07 Oct 2009 08:48:43 +0000 |
| Subject: | svn: /web/php/trunk/ include/shared-manual.inc styles/site.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-6092@lists.php.net to get a copy of this message | ||
bjori Wed, 07 Oct 2009 08:48:43 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=289274
Log:
Fixed bug#49783 (Clicking around on the website makes things disappear)
# Patch by Adam Harvey, aharvey@
Bug: http://bugs.php.net/49783 (Assigned) Clicking around on
the website makes things disappear
Changed paths:
U web/php/trunk/include/shared-manual.inc
U web/php/trunk/styles/site.css
Modified: web/php/trunk/include/shared-manual.inc
===================================================================
--- web/php/trunk/include/shared-manual.inc 2009-10-07 06:45:36 UTC (rev 289273)
+++ web/php/trunk/include/shared-manual.inc 2009-10-07 08:48:43 UTC (rev 289274)
@@ -108,16 +108,35 @@
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
- $(".refsect1 .title").click(function() {
- $(this).siblings().slideToggle("slow");
- });
+ var toggleImage = function(elem) {
+ if ($(elem).hasClass("shown")) {
+ $(elem).removeClass("shown").addClass("hidden");
+ $("img", elem).attr("src", "/images/notes-add.gif");
+ }
+ else {
+ $(elem).removeClass("hidden").addClass("shown");
+ $("img", elem).attr("src", "/images/notes-reject.gif");
+ }
+ };
+
$(".refsect1 .title").each(function() {
url = "http://bugs.php.net/report.php?bug_type=Documentation+problem&manpage="
+ $(this).parent().parent().attr("id") + "%23" + $(this).text();
$(this).parent().prepend("<div class=\'reportbug\'><a href=\'"
+ url + "\'>Report a bug</a></div>");
+ $(this).prepend("<a class=\'toggler shown\' href=\'#\'><img
src=\'/images/notes-reject.gif\' /></a> ");
});
- $("#usernotes .head").click(function() {
- $(this).next().slideToggle("slow");
+ $("#usernotes .head").each(function() {
+ $(this).prepend("<a class=\'toggler shown\' href=\'#\'><img
src=\'/images/notes-reject.gif\' /></a> ");
});
+ $(".refsect1 .title .toggler").click(function() {
+ $(this).parent().siblings().slideToggle("slow");
+ toggleImage(this);
+ return false;
+ });
+ $("#usernotes .head .toggler").click(function() {
+ $(this).parent().next().slideToggle("slow");
+ toggleImage(this);
+ return false;
+ });
});
</script>
',
Modified: web/php/trunk/styles/site.css
===================================================================
--- web/php/trunk/styles/site.css 2009-10-07 06:45:36 UTC (rev 289273)
+++ web/php/trunk/styles/site.css 2009-10-07 08:48:43 UTC (rev 289274)
@@ -956,6 +956,10 @@
font-size: 0.9em;
}
+div.refsect1 .title .toggler {
+ border-bottom: none;
+}
+
div.classsynopsisinfo_comment {
text-indent: 30px;
padding-top: 2em;