Mercurial > defr > DualBlog
comparison admin.js @ 29:750613da68ec
Ajout d'un fallback en cas d'absence de TreeWalker.
Ca devrait permettre de faire fonctionner l'administration dans la
plupart des navigateurs (modulo la vérification de validité XML
éventuellement).
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Thu, 01 Nov 2007 17:44:43 +0100 |
| parents | 629389204276 |
| children | 829d6b0d3d0b |
comparison
equal
deleted
inserted
replaced
| 28:bdf116822fc6 | 29:750613da68ec |
|---|---|
| 94 while(wBr.nextNode()) { | 94 while(wBr.nextNode()) { |
| 95 if(wBr.currentNode.firstChild.nodeValue == 'Editer') t.evtListener(wBr.currentNode,"click", editBrouillon, false); | 95 if(wBr.currentNode.firstChild.nodeValue == 'Editer') t.evtListener(wBr.currentNode,"click", editBrouillon, false); |
| 96 else if(wBr.currentNode.firstChild.nodeValue == 'Publier') t.evtListener(wBr.currentNode, "click", pubBrouillon, false); | 96 else if(wBr.currentNode.firstChild.nodeValue == 'Publier') t.evtListener(wBr.currentNode, "click", pubBrouillon, false); |
| 97 } | 97 } |
| 98 } catch(e) { | 98 } catch(e) { |
| 99 //Well, right now, we're sort of screwed... | 99 var tmpLinks = document.getElementById("GestPosts") |
| 100 .getElementsByTagName("a"); | |
| 101 for(var i = 0; i < tmpLinks.length; i++) { | |
| 102 if(editFilter.acceptNode(tmpLinks[i])) { | |
| 103 t.evtListener(tmpLinks[i], "click", editPubl, false) | |
| 104 } | |
| 105 } | |
| 106 | |
| 107 tmpLinks = document.getElementById("GestBrouillons") | |
| 108 .getElementsByTagName("a"); | |
| 109 for(var i = 0; i < tmpLinks.length; i++) { | |
| 110 if(brouillonsFilter.acceptNode(tmpLinks[i])) { | |
| 111 t.evtListener(tmpLinks[i], "click", editPubl, false) | |
| 112 } | |
| 113 } | |
| 100 } | 114 } |
| 101 } | 115 } |
| 102 | 116 |
| 103 function switchSection(e) { | 117 function switchSection(e) { |
| 104 var targetAc = bpEvt(e, 'li').rTarget; | 118 var targetAc = bpEvt(e, 'li').rTarget; |
