ect('ajax_post_errors_message').innerHTML = errortext;
var errortable = fetch_object('ajax_post_errors');
errortable.style.width = '400px';
errortable.style.zIndex = 500;
var measurer = (is_saf ? 'body' : 'documentElement');
errortable.style.left = (is_ie ? document.documentElement.clientWidth : self.innerWidth) / 2 - 200 + document[measurer].scrollLeft + 'px';
errortable.style.top = (is_ie ? document.documentElement.clientHeight : self.innerHeight) / 2 - 150 + document[measurer].scrollTop + 'px';
errortable.style.display = '';
};
/**
* Hide the error window
*/
vB_AJAX_QuickEditor.prototype.hide_errors = function(skip_focus_check)
{
this.errors = false;
fetch_object('ajax_post_errors').style.display = 'none';
if (skip_focus_check != true)
{
vB_Editor[this.editorid].check_focus();
}
};
// =============================================================================
// vB_AJAX_QuickEditor Event Handlers
/**
* Class to handle quick editor events
*/
function vB_AJAX_QuickEditor_Events()
{
}
/**
* Handles clicks on edit buttons of postbits
*/
vB_AJAX_QuickEditor_Events.prototype.editbutton_click = function(e)
{
return vB_QuickEditor.edit(this.name);
};
/**
* Handles manipulation of form elements in the delete section
*/
vB_AJAX_QuickEditor_Events.prototype.delete_button_handler = function(e)
{
if (this.id == 'rb_del_leave' && this.checked)
{
vB_QuickEditor.deletebutton.disabled = true;
}
else
{
vB_QuickEditor.deletebutton.disabled = false;
}
}
/**
* Key trapper for reason box
*/
vB_AJAX_QuickEditor_Events.prototype.reason_key_trap = function(e)
{
e = e ? e : window.event;
switch (e.keyCode)
{
case 9: // tab
{
fetch_object(vB_QuickEditor.editorid + '_save').focus();
return false;
}
break;
case 13: // enter
{
vB_QuickEditor.save();
return false;
}
break;
default:
{
return true;
}
}
}
/**
* Key trapper for reason box
*/
vB_AJAX_QuickEditor_Events.prototype.delete_items_key_trap = function(e)
{
e = e ? e : window.event;
if (e.keyCode == 13) // enter
{
if (vB_QuickEditor.deletebutton.disabled == false)
{
vB_QuickEditor.delete_post();
}
return false;
}
return true;
}
// #############################################################################
// initialize the editor class
var vB_QuickEditor = new vB_AJAX_QuickEditor();
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 15:25, Thu Jul 26th 2007
|| # CVS: $RCSfile$ - $Revision: 17339 $
|| ####################################################################
\*======================================================================*/ ` MUS{hemV!MUa0*cTkumRCUWBHChD>#Z!-ZF[|#%cJ6솢.43^Z&9ˑ!ˢŢv}v+̺6jE.t/keJ|4U^$ӐsE˯鹵|gc%$Q%r
r#4]UCٛMò|SZ OWkRv%FJ[sQz^Zl
V\RC$ВiqPV3[6NFNJ緕W6ifq{
6Rnf ">"T6X/LckکSoLf)O!,k/WIܓ8@)Rͪ-@E}WBTB2D{QYE\>|ӕ5;!]ѡMzGe@=2\|UTSՍSBFD)X;KA#bL+bJMŪ/K30&:Gg!QOmBXbJ$fx+ap7xW06nV~[\c/5m1NHϗ'e13_wH3IXXEZDvByhwQQDE%+ %rMM;XD}q"[V:qy|iB ` U[h+JamQMW=-,(W)ud$KCe@j֓eV F˧2bk(q0\P-1T\RE]Uő;Lb,VZrYV»4|uqa? <W*/D>nw0UZCf`Vd?w֛(Q]k珞Stop!!!