MyBB Community Forums

Full Version: postbit_edit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

<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.