Simon Hunt
Committed by Gerrit Code Review

GUI -- Minor adjustments to sample UI components (archetypes).

Change-Id: I410fc1822b0a3dac279b1e070e008a9c7b5d1b03
......@@ -35,35 +35,35 @@
.controller('OvSampleCustomCtrl',
['$log', '$scope', 'WebSocketService', 'KeyService',
function (_$log_, _$scope_, _wss_, _ks_) {
$log = _$log_;
$scope = _$scope_;
wss = _wss_;
ks = _ks_;
function (_$log_, _$scope_, _wss_, _ks_) {
$log = _$log_;
$scope = _$scope_;
wss = _wss_;
ks = _ks_;
var handlers = {};
$scope.data = {};
var handlers = {};
$scope.data = {};
// data response handler
handlers[dataResp] = respDataCb;
wss.bindHandlers(handlers);
// data response handler
handlers[dataResp] = respDataCb;
wss.bindHandlers(handlers);
addKeyBindings();
addKeyBindings();
// custom click handler
$scope.getData = getData;
// custom click handler
$scope.getData = getData;
// get data the first time...
getData();
// get data the first time...
getData();
// cleanup
$scope.$on('$destroy', function () {
wss.unbindHandlers(handlers);
ks.unbindKeys();
$log.log('OvSampleCustomCtrl has been destroyed');
});
// cleanup
$scope.$on('$destroy', function () {
wss.unbindHandlers(handlers);
ks.unbindKeys();
$log.log('OvSampleCustomCtrl has been destroyed');
});
$log.log('OvSampleCustomCtrl has been created');
}]);
$log.log('OvSampleCustomCtrl has been created');
}]);
}());
......
......@@ -123,8 +123,8 @@ public class AppUiTableMessageHandler extends UiMessageHandler {
// fake data for demonstration purposes...
Item item = getItem(id);
ObjectNode rootNode = MAPPER.createObjectNode();
ObjectNode data = MAPPER.createObjectNode();
ObjectNode rootNode = objectNode();
ObjectNode data = objectNode();
rootNode.set(DETAILS, data);
if (item == null) {
......
/* css for sample app view */
#ov-sample h2 {
#ov-sample-table h2 {
display: inline-block;
}
#ov-sample-table div.ctrl-btns {
width: 45px;
}
/* Panel Styling */
#ov-sample-table-item-details-panel.floatpanel {
position: absolute;
......