| 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 |
}
|