Advertisement
patrickc

Untitled

Dec 10th, 2011
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. addToReadOnTouchPro: function() {
  2.         var Twitter = new TwitterAPI(this.user);
  3.         var id = this.tweet.original_id;
  4.         //var this.readontouchid = "com.sven-ziegler.readontouch";
  5.         var request = new Mojo.Service.Request("palm://com.palm.applicationManager", {
  6.                         method: 'open',
  7.                         parameters: {
  8.                             id: 'com.sven-ziegler.readontouch',
  9.             params: {action: 'addLink', url: "http://twitter.com/#!" + this.tweet.user.screen_name + "/" + "status/" + id}
  10.                         }});
  11.                 banner('Added URL to ReadOnTouch PRO');
  12.     },
  13.     copyUrl: function() {
  14.         var Twitter = new TwitterAPI(this.user);
  15.         var id = this.tweet.original_id;
  16.         this.controller.stageController.setClipboard("http://twitter.com/#!" + this.tweet.user.screen_name + "/" + "status/" + id,true);
  17.                 banner('Copied tweet URL to clipboard.');
  18.     },
  19.  
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement