diff --git a/server/camlistored/newui/blob_item_container.js b/server/camlistored/newui/blob_item_container.js index 0d77f4f47..bd5a13dde 100644 --- a/server/camlistored/newui/blob_item_container.js +++ b/server/camlistored/newui/blob_item_container.js @@ -14,13 +14,22 @@ goog.require('camlistore.BlobItem'); /** + * @param {camlistore.ServerConnection} connection Connection to the server + * for fetching blobrefs and other queries. * @param {goog.dom.DomHelper=} opt_domHelper DOM helper to use. * * @extends {goog.ui.Container} * @constructor */ -camlistore.BlobItemContainer = function(opt_domHelper) { +camlistore.BlobItemContainer = function(connection, opt_domHelper) { goog.base(this, opt_domHelper); + + /** + * @type {camlistore.ServerConnection} + * @private + */ + this.connection_ = connection; + /** * @type {goog.events.EventHandler} * @private @@ -63,7 +72,10 @@ camlistore.BlobItemContainer.prototype.disposeInternal = function() { */ camlistore.BlobItemContainer.prototype.enterDocument = function() { camlistore.BlobItemContainer.superClass_.enterDocument.call(this); - // Add event handlers here + + this.eh_.listen(this.getElement(), goog.events.EventType.CLICK, function() { + console.log('Printing from connection: ' + this.connection_.stupidHello()); + }); }; @@ -73,5 +85,5 @@ camlistore.BlobItemContainer.prototype.enterDocument = function() { */ camlistore.BlobItemContainer.prototype.exitDocument = function() { camlistore.BlobItemContainer.superClass_.exitDocument.call(this); - // Clear event handlers here + this.eh_.removeAll(); }; diff --git a/server/camlistored/newui/index.css b/server/camlistored/newui/index.css new file mode 100644 index 000000000..5c5c347e9 --- /dev/null +++ b/server/camlistored/newui/index.css @@ -0,0 +1,3 @@ +.cam-index-page { + font: 16px/1.4 normal Arial, sans-serif; +} diff --git a/server/camlistored/newui/index.html b/server/camlistored/newui/index.html index 60bfc5c54..c85c3930d 100644 --- a/server/camlistored/newui/index.html +++ b/server/camlistored/newui/index.html @@ -8,11 +8,12 @@ goog.require('camlistore.IndexPage'); +