diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-03-25 07:25:11 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-03-25 07:25:11 +0000 |
| commit | 746eb0d3a39acc9b7469672047454165e3961230 (patch) | |
| tree | b8ef32a83207c18192bfb1d65b0c1c1566ed146e /js/webtrees.js | |
| parent | 7aa217ea9c6a59f1f59b9d5e6506290bc02b0856 (diff) | |
| download | webtrees-746eb0d3a39acc9b7469672047454165e3961230.tar.gz webtrees-746eb0d3a39acc9b7469672047454165e3961230.tar.bz2 webtrees-746eb0d3a39acc9b7469672047454165e3961230.zip | |
Replace $WT_IMAGES array of images with CSS.
Diffstat (limited to 'js/webtrees.js')
| -rw-r--r-- | js/webtrees.js | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/js/webtrees.js b/js/webtrees.js index f2e95f1070..f9a17e82f5 100644 --- a/js/webtrees.js +++ b/js/webtrees.js @@ -587,9 +587,10 @@ function expandbox(boxid, bstyle) { oldiconsdislpay = icons.style.display; icons.style.display = "block"; } - if (iconz) { - if (iconz.src==zoominout[0].src) iconz.src = zoominout[1].src; - else iconz.src = zoominout[0].src; + if (jQuery(iconz).hasClass("icon-zoomin")) { + jQuery(iconz).removeClass("icon-zoomin").addClass("icon-zoomout"); + } else { + jQuery(iconz).removeClass("icon-zoomout").addClass("icon-zoomin"); } oldboxid=boxid; big = 1; @@ -961,18 +962,6 @@ function timeout_submenu(elementid) { menutimeouts[elementid] = tout; } } -function checkKeyPressed(e) { - if (IE) key = window.event.keyCode; - else key = e.which; - if (key==118) { - if (pastefield) findSpecialChar(pastefield); - } - if (key==112) { - helpPopup(whichhelp); - } - //else if (pastefield) pastefield.value=key; -} - function focusHandler(evt) { var e = evt ? evt : window.event; if (!e) return; @@ -994,7 +983,6 @@ function loadHandler() { var IE = document.all?true:false; if (!IE) document.captureEvents(Event.MOUSEMOVE|Event.KEYDOWN|Event.KEYUP); document.onmousemove = getMouseXY; -document.onkeyup = checkKeyPressed; //Highlight image script - START //Highlight image script- By Dynamic Drive |
