[the-board] [firefox] Set link on all added things



commit c76a42561ae9ded5cfb29ae0e97e66006ff0ea1e
Author: Lucas Rocha <lucasr gnome org>
Date:   Sun Dec 5 20:27:47 2010 +0000

    [firefox] Set link on all added things

 src/firefox/chrome/content/the-board.js |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/firefox/chrome/content/the-board.js b/src/firefox/chrome/content/the-board.js
index 8ba79ca..218ef5c 100644
--- a/src/firefox/chrome/content/the-board.js
+++ b/src/firefox/chrome/content/the-board.js
@@ -197,7 +197,8 @@ function downloadFile(fileUrl, dirType, onComplete, onError) {
 }
 
 function addPhotoToTheBoard(imageUrl) {
-    var args = { id: "photo" };
+    var args = { id: "photo",
+                 link: window.content.location.href };
 
     var onFileDownloaded = function(filePath, filename) {
         args.imageFilename = filePath;
@@ -213,7 +214,8 @@ function addPhotoToTheBoard(imageUrl) {
 }
 
 function addVideoToTheBoard(videoUrl) {
-    var args = { id: "video" };
+    var args = { id: "video",
+                 link: window.content.location.href };
 
     var onFileDownloaded = function(filePath, filename) {
         args.videoFilename = filePath;
@@ -230,7 +232,8 @@ function addVideoToTheBoard(videoUrl) {
 
 function addNoteToTheBoard(text) {
     var args = { id: "note",
-                 text: text };
+                 text: text,
+                 link: window.content.location.href };
 
     callMethod("addThing", args,
                null, showErrorTheBoardNotRunning);
@@ -238,7 +241,8 @@ function addNoteToTheBoard(text) {
 
 function addLabelToTheBoard(text) {
     var args = { id: "label",
-                 text: text };
+                 text: text,
+                 link: window.content.location.href };
 
     callMethod("addThing", args,
                null, showErrorTheBoardNotRunning);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]