Bri Prebilic Cole

GUI -- Device View still had hardcoded sort params - fixed.

- Minor other cleanup of variable names.

Change-Id: I17b40fa087e653fecb49ded4feb7ff1932fb52e9
......@@ -166,8 +166,8 @@
if (thElem.attr('sortable') === '') {
updateSortingIcons(thElem, sortIconAPI);
scope.ctrlCallback({
urlSuffix: sortRequestParams()
});
requestParams: sortRequestParams()
});
}
});
}
......
......@@ -4,7 +4,7 @@
<table class="summary-list"
onos-fixed-header
onos-sortable-header
sort-callback="sortCallback(urlSuffix)">
sort-callback="sortCallback(requestParams)">
<thead>
<tr>
<th colId="available"></th>
......
......@@ -34,13 +34,8 @@
$scope.$apply();
};
$scope.sortCallback = function (urlSuffix) {
// FIXME: fix hardcoded sort params
if (!urlSuffix) {
urlSuffix = '';
}
var payload = { sortCol: 'id', sortDir: 'asc' };
wss.sendEvent('deviceDataRequest', payload);
$scope.sortCallback = function (requestParams) {
wss.sendEvent('deviceDataRequest', requestParams);
};
var handlers = {
......@@ -53,9 +48,8 @@
wss.unbindHandlers(handlers);
});
$log.log('OvDeviceCtrl has been created');
$scope.sortCallback();
$log.log('OvDeviceCtrl has been created');
}]);
}());
......
......@@ -4,7 +4,7 @@
<table class="summary-list"
onos-fixed-header
onos-sortable-header
sort-callback="sortCallback(urlSuffix)">
sort-callback="sortCallback(requestParams)">
<thead>
<tr>
<th colId="id" sortable>Host ID </th>
......