/[drupal]/contributions/modules/cache_browser/cache_browser.js
ViewVC logotype

Contents of /contributions/modules/cache_browser/cache_browser.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Sep 15 02:55:44 2008 UTC (14 months, 1 week ago) by markuspetrux
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/javascript
- Initial commit for the cache_browser project.
1 // $Id$
2
3 var cache_browser_icon_plus = new Image();
4 cache_browser_icon_plus.src = Drupal.settings.cache_browser.icon_plus;
5 var cache_browser_icon_minus = new Image();
6 cache_browser_icon_minus.src = Drupal.settings.cache_browser.icon_minus;
7
8 if (Drupal.jsEnabled) {
9 $(document).ready(function () {
10 $("#dump-hotspot-expand").bind("click", function() {
11 $(".cache-browser-dump-block").css("display", "inline");
12 $(".cache-browser-dump-hotspot").attr("src", cache_browser_icon_minus.src);
13 this.blur();
14 return false;
15 });
16 $("#dump-hotspot-collapse").bind("click", function() {
17 $(".cache-browser-dump-block").css("display", "none");
18 $(".cache-browser-dump-hotspot").attr("src", cache_browser_icon_plus.src);
19 this.blur();
20 return false;
21 });
22 $(".cache-browser-dump-hotspot").bind("click", function() {
23 var i = $(this).attr("id").replace(/dump-hotspot-/, "");
24 if ($("#dump-block-"+ i).css("display") != "none") {
25 $("#dump-block-"+ i).hide("fast");
26 $("#dump-hotspot-"+ i).attr("src", cache_browser_icon_plus.src);
27 }
28 else {
29 $("#dump-block-"+ i).show("fast", function() { $(this).css("display", "inline"); });
30 $("#dump-hotspot-"+ i).attr("src", cache_browser_icon_minus.src);
31 }
32 });
33 });
34 }

  ViewVC Help
Powered by ViewVC 1.1.2