From 155c6ba3d7e8e9693d30b3cf70f591f0153610b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Tue, 14 May 2013 22:01:59 +0200 Subject: [PATCH] =?utf8?q?Utilisation=20des=20png24=20(et=20apng)=20pour?= =?utf8?q?=20l'affichage=20des=20boutons=20de=20d=C3=A9ploiement=20de=20l'?= =?utf8?q?arborescence.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- default_blocks/tree_block_script.js | 18 +++++++++--------- default_blocks/tree_block_template.pt | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/default_blocks/tree_block_script.js b/default_blocks/tree_block_script.js index cda2925..d115432 100644 --- a/default_blocks/tree_block_script.js +++ b/default_blocks/tree_block_script.js @@ -18,7 +18,7 @@ TreeMaker = function (root, filter, baseImgUrl) { this._lastAniImg = null; // preload images - var images = ['pl.gif', 'pl_ani.gif', 'mi.gif', 'mi_ani.gif'], img; + var images = ['pl.png', 'pl_ani.png', 'mi.png', 'mi_ani.png'], img; for (var i=0 ; i < images.length ; i++) { img = new Image(); img.src = this.baseImgUrl + images[i]; @@ -43,8 +43,8 @@ TreeMaker.prototype.refreshTree = function (evt) { switch (imgId) { - case "pl.gif" : - case "pl_ani.gif" : + case "pl.png" : + case "pl_ani.png" : var linkCell = parentTd.nextSibling; while (linkCell.nodeType != 1) linkCell = linkCell.nextSibling; @@ -63,7 +63,7 @@ TreeMaker.prototype.refreshTree = function (evt) { tm.importRows(req, parentRow); }; }; - target.src = this.baseImgUrl + "mi_ani.gif"; + target.src = this.baseImgUrl + "mi_ani.png"; this._lastAniImg = target; window.setTimeout(function(){tm._removeLastAniImg();}, 500); @@ -75,10 +75,10 @@ TreeMaker.prototype.refreshTree = function (evt) { break; - case "mi.gif" : - case "mi_ani.gif" : + case "mi.png" : + case "mi_ani.png" : this.removeChildNodes(parentRow); - target.src = this.baseImgUrl + "pl_ani.gif"; + target.src = this.baseImgUrl + "pl_ani.png"; this._lastAniImg = target; var tm = this; window.setTimeout(function(){tm._removeLastAniImg();}, 500); @@ -104,7 +104,7 @@ TreeMaker.prototype.getExpansion = function() { var steps = new Array(); steps.push(this.root.getAttribute('name')); - var expanded = (/.*mi\.gif$|.*mi_ani\.gif$/); + var expanded = (/.*mi\.png$|.*mi_ani\.png$/); for(i=0 ; i < rows.length ; i++) { row = rows[i]; cells = row.getElementsByTagName('TD'); @@ -194,7 +194,7 @@ TreeMaker.prototype.importRows = function(req, parentRow) { stateLink.href = "."; stateLink.setAttribute("name", row.getAttribute("name")); var stateImg = document.createElement("IMG"); - stateImg.src = this.baseImgUrl + "pl.gif"; + stateImg.src = this.baseImgUrl + "pl.png"; stateImg.border = "0"; stateImg.height = "16"; stateImg.width = "16"; diff --git a/default_blocks/tree_block_template.pt b/default_blocks/tree_block_template.pt index 468305d..d5b3842 100755 --- a/default_blocks/tree_block_template.pt +++ b/default_blocks/tree_block_template.pt @@ -69,7 +69,7 @@   + >