hmmm the site is acting weird
vBulletin-Systemmitteilung
Änderungen verwerfen
<!-- /*©2000-2007 Jelsoft Enterprises Ltd. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || #
http://www.vbulletin.com |
http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ /** * Initialize AJAX post editing * * @param mixed ID of element (or actual element) containing postbits */ function vB_AJAX_QuickEdit_Init(postobj) { if (AJAX_Compatible) { if (typeof postobj == 'string') { postobj = fetch_object(postobj); } var anchors = fetch_tags(postobj, 'a'); var postid = 0; for (var i = 0; i < anchors.length; i++) { if (anchors
.name && anchors.name.indexOf('vB::QuickEdit::') != -1) { anchors.onclick = vB_AJAX_QuickEditor_Events.prototype.editbutton_click; } } } } // ############################################################################# // vB_AJAX_QuickEditor // ############################################################################# /** * Class to allow quick editing of posts within postbit via AJAX */ function vB_AJAX_QuickEditor() { this.postid = null; this.messageobj = null; this.container = null; this.originalhtml = null; this.ajax = null; this.editstate = false; this.editorcounter = 0; this.pending = false; } // ============================================================================= // vB_AJAX_QuickEditor methods /** * Check if the AJAX system is ready for us to proceed * * @return boolean */ vB_AJAX_QuickEditor.prototype.ready = function() { if (this.editstate || this.pending) { return false; } else { return true; } }; /** * Prepare to edit a single post * * @param string Name attribute of clicked link - takes the form of 'vB::QuickEdit::$postid' * * @return boolean false */ vB_AJAX_QuickEditor.prototype.edit = function(anchor_name) { var test_ajax = new vB_AJAX_Handler(true); if (!test_ajax.init() || (typeof vb_disable_ajax != 'undefined' && vb_disable_ajax > 0)) { // couldn't initialize, return true to allow click to go through return true; } var tmppostid = anchor_name.substr(anchor_name.lastIndexOf('::') + 2); if (this.pending) { // something is waiting to complete return false; } else if (!this.ready()) { if (this.postid == tmppostid) { this.full_edit(); return false; } this.abort(); } this.editorcounter++; this.editorid = 'vB_Editor_QE_' + this.editorcounter; this.postid = tmppostid; this.messageobj = fetch_object('post_message_' + this.postid); this.originalhtml = this.messageobj.innerHTML; this.unchanged = null; this.unchanged_reason = null; this.fetch_editor(); this.editstate = true; return false; }; /** * Send an AJAX request to fetch the editor HTML */ vB_AJAX_QuickEditor.prototype.fetch_editor = function() { if (fetch_object('progress_' + this.postid)) { fetch_object('progress_' + this.postid).style.display = ''; } document.body.style.cursor = 'wait'; this.ajax = new vB_AJAX_Handler(true); this.ajax.onreadystatechange(this.display_editor); this.ajax.send('ajax.php?do=quickedit&p=' + this.postid, 'do=quickedit&p=' + this.postid + '&editorid=' + PHP.urlencode(this.editorid)); this.pending = true; }; /** * Display the editor HTML when AJAX says fetch_editor() is ready