summaryrefslogtreecommitdiffstats
path: root/static/functions/inbox.js
diff options
context:
space:
mode:
authorNightOath <WhatNightOath@gmail.com>2011-03-28 15:21:28 +0100
committerNightOath <WhatNightOath@gmail.com>2011-03-28 15:21:28 +0100
commitff67a811d4dfbb34c9249e40d73f9a00930423e9 (patch)
tree9af54ef6e154afb0a6bfcacc85c55fa23ca8988b /static/functions/inbox.js
downloadGazelle-ff67a811d4dfbb34c9249e40d73f9a00930423e9.zip
Gazelle-ff67a811d4dfbb34c9249e40d73f9a00930423e9.tar.gz
Gazelle-ff67a811d4dfbb34c9249e40d73f9a00930423e9.tar.bz2
Initial import from revision 11440
Diffstat (limited to 'static/functions/inbox.js')
-rw-r--r--static/functions/inbox.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/static/functions/inbox.js b/static/functions/inbox.js
new file mode 100644
index 0000000..602b036
--- /dev/null
+++ b/static/functions/inbox.js
@@ -0,0 +1,16 @@
+//Using this instead of comments as comments has pertty damn strict requirements on the variable names required
+
+function Quick_Preview() {
+ $('#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){
+ $('#quickpost').hide();
+ $('#preview').raw().innerHTML = response;
+ $('#preview').show();
+ });
+}
+
+function Quick_Edit() {
+ $('#buttons').raw().innerHTML = "<input type='button' value='Preview' onclick='Quick_Preview();' /><input type='submit' value='Send Message!' />";
+ $('#preview').hide();
+ $('#quickpost').show();
+}