]> git.mxchange.org Git - friendica.git/blobdiff - view/jot-header.tpl
ajaxify the wall poster
[friendica.git] / view / jot-header.tpl
index 97e30cdae79f2d3fc5e18e4bc4252fc4728c8342..3f8fe5302f59c331604148d4d454bec1dacd0eb4 100644 (file)
@@ -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>
 
 <!--