Dynamically create popdown image
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Feb 2009 07:45:27 +0000 (00:45 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 18 Feb 2009 07:45:27 +0000 (00:45 -0700)
imp/js/src/DimpBase.js
imp/js/src/fullmessage-dimp.js
imp/templates/index/index-dimp.inc

index 665d56a..9b2d775 100644 (file)
@@ -581,7 +581,7 @@ var DimpBase = {
     {
         if (popdown) {
             var bidelt = $(p.id);
-            bidelt.insert({ after: $($('popdown_img').cloneNode(false)).writeAttribute('id', p.id + '_img').show() });
+            bidelt.insert({ after: new Element('SPAN', { className: 'iconImg popdownImg popdown', id: p.id + '_img' }) });
             p.id += '_img';
             p.offset = bidelt.up();
             p.left = true;
index 42fa7a8..aaa47e4 100644 (file)
@@ -134,7 +134,7 @@ var DimpFullmessage = {
     _addPopdown: function(bid, ctx)
     {
         var bidelt = $(bid);
-        bidelt.insert({ after: $($('popdown_img').cloneNode(false)).writeAttribute('id', bid + '_img').show() });
+        bidelt.insert({ after: new Element('SPAN', { className: 'iconImg popdownImg popdown', id: p.id + '_img' }) });
         DimpCore.DMenu.addElement(bid + '_img', 'ctx_' + ctx, { offset: bidelt.up(), left: true });
     },
 
index 837f4b4..477f6b5 100644 (file)
@@ -436,7 +436,6 @@ function _simpleButton($id, $text, $image, $imagedir = null)
 </div>
 
 <div style="display:none">
- <span id="popdown_img" class="iconImg popdownImg popdown"></span>
  <?php foreach ($thread_imgs as $val) { echo $val; } ?>
  <span id="largeaddrspan">
   <span class="largeaddrtoggle">