2024-04-23, 09:26 AM
hi ! am try to rip edit ajax button !
but is not working ! maybe is missed some code ?
am rip this code plus js scripts
but is not working ! maybe is missed some code ?
am rip this code plus js scripts
<script type="text/javascript">
<!--
var quickdelete_confirm = "{$lang->quickdelete_confirm}";
var quickrestore_confirm = "{$lang->quickrestore_confirm}";
var allowEditReason = "'.$alloweditreason.'";
lang.save_changes = "save_changes";
lang.cancel_edit = "cancel_edit";
lang.quick_edit_update_error = "{$lang->quick_edit_update_error}";
lang.quick_reply_post_error = "{$lang->quick_reply_post_error}";
lang.quick_delete_error = "{$lang->quick_delete_error}";
lang.quick_delete_success = "{$lang->quick_delete_success}";
lang.quick_delete_thread_success = "{$lang->quick_delete_thread_success}";
lang.quick_restore_error = "{$lang->quick_restore_error}";
lang.quick_restore_success = "{$lang->quick_restore_success}";
lang.editreason = "{$lang->postbit_editreason}";
lang.post_deleted_error = "{$lang->post_deleted_error}";
lang.softdelete_thread = "{$lang->soft_delete_thread}";
lang.restore_thread = "{$lang->restore_thread}";
// -->
</script>
<script type="text/javascript" src="' . $BASEURL . '/scripts/jeditable.min.js"></script>
<script type="text/javascript" src="' . $BASEURL . '/scripts/thread.js?ver=1827""></script>
<script type="text/javascript" src="' . $BASEURL . '/scripts/general_mybb.js"></script>
<script type="text/javascript" src="' . $BASEURL . '/scripts/jquery.plugins.min.js"></script>
<a href="editpost.php?pid='.$pid.'" id="edit_post_'.$pid.'" title="{$lang->postbit_edit}" class="postbit_edit postbit_mirage"><span>{$lang->postbit_button_edit}</span></a>
<div id="edit_post_'.$pid.'_popup" class="popup_menu" style="display: none;">
<div class="popup_item_container"><a href="javascript:void(0)" class="popup_item quick_edit_button" id="quick_edit_post_'.$pid.'">{$lang->postbit_quick_edit}</a></div>
<div class="popup_item_container"><a href="editpost.php?pid='.$pid.'" class="popup_item">{$lang->postbit_full_edit}</a></div></div>
<script type="text/javascript">
// <!--
$("#edit_post_'.$pid.'").popupMenu();
// -->
</script>';