'); else p_ShowError('');
if ($("BlQuickpost"))
{
$("BlQuickpostHeaderOfPost").disabled=disable;
$("BlQuickpostMessage").disabled=disable;
$("BlQuickpostTags").disabled=disable;
$("BlQuickpostSubmit").disabled=disable;
}
}
/* -----------[ ShowError ]----------- */
function p_ShowError(content)
{
document.getElementById('p_info_block').innerHTML=content;
}
/* -----------[ Result ]----------- */
function p_do_PostEvent_callback()
{
if (p_request.readyState == 4)
{
clearTimeout(p_reqTimeout);
p_load_process=0;
if (p_request.status == 200)
{
result=unescape(p_request.responseText);
retval=result.substr(0,2);
content=result.substr(3);
if (retval=='OK') //пїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ, пїЅпїЅпїЅпїЅпїЅпїЅ html
{
s=content.indexOf('|');
postid=content.substr(0,s);
posthtml=content.substr(s+1);
document.getElementById('BlQuickpostArea').innerHTML=posthtml+document.getElementById('BlQuickpostArea').innerHTML;
document.getElementById('BlQuickpostHeaderOfPost').value='пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ';
document.getElementById('BlQuickpostMessage').value='';
document.getElementById('BlQuickpostTags').value='пїЅпїЅпїЅпїЅпїЅ';
document.getElementById('BlQuickpost').style.display='none';
p_DisableControls(false);
p_ShowError('');
}
else //пїЅпїЅпїЅпїЅпїЅпїЅ, пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ
{
p_DisableControls(false);
p_ShowError(content);
}
}
else
{
if (!p_request.status)
{
p_DisableControls(false);
eval("document.BlQuickpost.submit();");
}
else alert("пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ (пїЅпїЅпїЅ " + p_request.status + ", пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ "+ p_request.statusText+")");
}
}
}
/* -----------[ Stop query ]----------- */
function p_stop_query()
{
if (p_load_process==1)
{
p_request.abort();
p_load_process=0;
p_DisableControls(false);
p_ShowError('пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ');
}
}
/* -----------[ Post event ]----------- */
function p_do_PostEvent()
{
if (p_load_process==1) return;
p_load_process=1;
headerofpost=new String($("BlQuickpostHeaderOfPost").value);
message=new String($("BlQuickpostMessage").value);
tags=new String($("BlQuickpostTags").value);
if (window.XMLHttpRequest)
{
try
{
p_request = new XMLHttpRequest();
}
catch (e) {}
}
else if (window.ActiveXObject)
{
try
{
p_request = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
p_request = new AciveXObject("Microsoft.XMLHTTP");
}
catch (e) {}
}
}
if (p_request)
{
// Get token
new Ajax.Request('/journal_proc.php?action=token-json', {
method: 'get',
parameters: {
action : 'token-json',
journalid : 2835299,
jpostid : autosave_postid
},
onComplete:function(transport)
{
var token = transport.responseText.replace(/"/g, "");
postrequest="action=newpost&autosave_postid="+autosave_postid+"&journalid=2835299&make_br_sel=yes&commentsubscribe=yes&nocomment=0&parseurl=yes&close_level=0"+"&headerofpost="+escape(headerofpost.replace(/\+/g,'%u002B'))+"&message="+escape(message.replace(/\+/g,'%u002B'))+"&tags="+escape(tags.replace(/\+/g,'%u002B'));
postrequest = postrequest + "&tok=" + token;
p_request.open("POST","/journal_addpost.php?doajax=1",true);
p_request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
p_request.onreadystatechange=p_do_PostEvent_callback;
p_reqTimeout=setTimeout("p_stop_query()",30000);
try
{
p_request.send(postrequest);
}
catch (e)
{
eval("document.BlQuickpost.submit();");
// if (confirm('пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ AJAX пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ. пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ?')) eval("document.BlQuickpost.submit();");
}
p_DisableControls(true);
}
});
}
else
{
// alert("пїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ AJAX.");
eval("document.BlQuickpost.submit();");
}
}
-
8
пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ
-
22
пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ
-
0
пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ
-