aboutsummaryrefslogtreecommitdiffstats
path: root/src/ControlBar.js
diff options
context:
space:
mode:
authorAdam Abrons2010-01-26 11:27:50 -0800
committerAdam Abrons2010-01-26 11:27:50 -0800
commit88384854c209f87507c273218fea85009f3801d6 (patch)
treea8b088b4930fca2870de5d3a94e4dc3f014af2ff /src/ControlBar.js
parenta2540fd581f35e8f79240d827d2252da5798c3a2 (diff)
downloadangular.js-88384854c209f87507c273218fea85009f3801d6.tar.bz2
add default rake task (compile and test), send database name to login
Diffstat (limited to 'src/ControlBar.js')
-rw-r--r--src/ControlBar.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ControlBar.js b/src/ControlBar.js
index 73be74db..685beeb2 100644
--- a/src/ControlBar.js
+++ b/src/ControlBar.js
@@ -1,6 +1,7 @@
-function ControlBar(document, serverUrl) {
+function ControlBar(document, serverUrl, database) {
this._document = document;
this.serverUrl = serverUrl;
+ this.database = database;
this._window = window;
this.callbacks = [];
};
@@ -26,7 +27,7 @@ ControlBar.prototype = {
login: function (loginSubmitFn) {
this.callbacks.push(loginSubmitFn);
if (this.callbacks.length == 1) {
- this.doTemplate("/user_session/new.mini?return_url=" + encodeURIComponent(this.urlWithoutAnchor()));
+ this.doTemplate("/user_session/new.mini?database="+encodeURIComponent(this.database)+"&return_url=" + encodeURIComponent(this.urlWithoutAnchor()));
}
},