Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
postbit_edit
#1
I could use a little help figuring postbit_edit button out. My attempt has failed. I want to use <input type="button". I can get it to go to the editor but not the pop up menu.

Code:
<input type="button" value="Edit" onClick="window.location.href='editpost.php?pid={$post['pid']}';" />
<div id="edit_post_{$post['pid']}_popup" class="popup_menu" style="display: none;"><div class="popup_item_container"><a href="javascript:;" onclick="Thread.quickEdit({$post['pid']});" class="popup_item">{$lang->postbit_quick_edit}</a></div><div class="popup_item_container"><a href="editpost.php?pid={$post['pid']}" class="popup_item">{$lang->postbit_full_edit}</a></div></div>
<script type="text/javascript">
// <!--
    if(use_xmlhttprequest == "1")
    {
        new PopupMenu("edit_post_{$post['pid']}");
    }
// -->
</script>

I am planning to do the same for multiquote but I can not remember what js file its in.
Unemployed and going style editing!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)