aboutsummaryrefslogtreecommitdiffstats
path: root/view/jot-header.tpl
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-22 22:41:45 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-22 22:41:45 -0700
commit36b66dccb60a7d65724da542f9d7a2d6722fc6aa (patch)
treec44dd1fae5d16c393b789ca814e31b4c90f4ce55 /view/jot-header.tpl
parent88bfe21bead769c3ba81e181b79f9d6426ace351 (diff)
downloadvolse-hubzilla-36b66dccb60a7d65724da542f9d7a2d6722fc6aa.tar.gz
volse-hubzilla-36b66dccb60a7d65724da542f9d7a2d6722fc6aa.tar.bz2
volse-hubzilla-36b66dccb60a7d65724da542f9d7a2d6722fc6aa.zip
ajaxify the wall poster
Diffstat (limited to 'view/jot-header.tpl')
-rw-r--r--view/jot-header.tpl20
1 files changed, 16 insertions, 4 deletions
diff --git a/view/jot-header.tpl b/view/jot-header.tpl
index 97e30cdae..3f8fe5302 100644
--- a/view/jot-header.tpl
+++ b/view/jot-header.tpl
@@ -27,16 +27,28 @@ tinyMCE.init({
var uploader = new window.AjaxUpload(
'wall-image-upload',
{ action: 'wall_upload',
- name: 'userfile',
- onComplete: function(file,response) {
- tinyMCE.execCommand('mceInsertRawHTML',false,response);
- }
+ name: 'userfile',
+ onSubmit: function(file,ext) { $('#profile-rotator').show(); },
+ onComplete: function(file,response) {
+ tinyMCE.execCommand('mceInsertRawHTML',false,response);
+ $('#profile-rotator').hide();
+ }
}
);
});
+ function jotGetLink() {
+ reply = prompt("Please enter a link URL:");
+ $('#profile-rotator').show();
+ $.get('parse_url?url=' + reply, function(data) {
+ tinyMCE.execCommand('mceInsertRawHTML',false,data);
+ $('#profile-rotator').hide();
+ });
+ }
+
+
</script>
<!--