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() {
|
2011-12-02 08:00:15 +00:00
|
|
|
$('#buttons').raw().innerHTML = "<input type='button' value='Editor' onclick='Quick_Edit();' /><input type='submit' value='Send Message' />";
|
2011-03-28 14:21:28 +00:00
|
|
|
ajax.post("ajax.php?action=preview","messageform", function(response){
|
|
|
|
$('#quickpost').hide();
|
|
|
|
$('#preview').raw().innerHTML = response;
|
|
|
|
$('#preview').show();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function Quick_Edit() {
|
2011-12-02 08:00:15 +00:00
|
|
|
$('#buttons').raw().innerHTML = "<input type='button' value='Preview' onclick='Quick_Preview();' /><input type='submit' value='Send Message' />";
|
2011-03-28 14:21:28 +00:00
|
|
|
$('#preview').hide();
|
|
|
|
$('#quickpost').show();
|
|
|
|
}
|