Advertisement
patrickc

Untitled

Dec 10th, 2011
43
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 this.readontouchid = "com.sven-ziegler.readontouch";
  4.         var request = new Mojo.Service.Request("palm://com.palm.applicationManager", {
  5.                         method: 'open',
  6.                         parameters: {
  7.                             id: 'com.sven-ziegler.readontouch',
  8.             params: {action: 'addLink', url: "http://twitter.com/#!" + this.tweet.user.screen_name + "/" + "status/" + this.tweet.original_id}
  9.                         }});
  10.                 banner('Added URL to ReadOnTouch PRO');
  11.     },
  12.     copyUrl: function() {
  13.         var Twitter = new TwitterAPI(this.user);
  14.         var id = this.tweet.original_id;
  15.         this.controller.stageController.setClipboard("http://twitter.com/#!" + this.tweet.user.screen_name + "/" + "status/" + id,true);
  16.                 banner('Copied tweet URL to clipboard.');
  17.     },
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement