Permalink
Browse files

Fix #30 by forcing project ID to be a Number

  • Loading branch information...
1 parent 6f0b34d commit 5067c5eb2f27320de149fdef48411ed7fc486394 @ryanstewart ryanstewart committed Oct 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 main.js
View
@@ -520,7 +520,8 @@ define(function (require, exports, module) {
else if (val == -1) { // Unlinking
linkedProjectId = null;
} else if (action === Dialogs.DIALOG_BTN_OK) {
- linkedProjectId = val;
+ // RCS - force this to be cast as a number so we don't upload a new project after linking our code (fix for #30)
+ linkedProjectId = Number(val);
showAlert(Strings.LINK_SUCCESSFUL_MESSAGE + Strings.SEND_FILES_MENU_ENTRY + ".", false, null, false);
}
});

0 comments on commit 5067c5e

Please sign in to comment.