2011-03-28 14:21:28 +00:00
|
|
|
//Using this instead of comments as comments has pertty damn strict requirements on the variable names required
|
|
|
|
|
|
|
|
function Quick_Preview() {
|
2013-05-04 08:00:48 +00:00
|
|
|
$('#buttons').raw().innerHTML = "<input type=\"button\" value=\"Editor\" onclick=\"Quick_Edit();\" /><input type=\"submit\" value=\"Send Message\" />";
|
|
|
|
ajax.post("ajax.php?action=preview","messageform", function(response) {
|
2013-06-17 08:01:02 +00:00
|
|
|
$('#quickpost').ghide();
|
2011-03-28 14:21:28 +00:00
|
|
|
$('#preview').raw().innerHTML = response;
|
2013-06-17 08:01:02 +00:00
|
|
|
$('#preview').gshow();
|
2011-03-28 14:21:28 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function Quick_Edit() {
|
2013-05-04 08:00:48 +00:00
|
|
|
$('#buttons').raw().innerHTML = "<input type=\"button\" value=\"Preview\" onclick=\"Quick_Preview();\" /><input type=\"submit\" value=\"Send Message\" />";
|
2013-06-17 08:01:02 +00:00
|
|
|
$('#preview').ghide();
|
|
|
|
$('#quickpost').gshow();
|
2011-03-28 14:21:28 +00:00
|
|
|
}
|