/** * Reset admin editor for a specific product via ajax on page leave * *@return void */ function postResetAdminEditor() { $table = Input::get('table'); $id = Input::get('id'); $adminID = Input::get('admin_id'); $editor = AdminModel::checkAdminEditor($table, $id); if ($editor == $adminID) { AdminModel::resetProductAdminEditor($table, $id); } }