Schedules / Activity Stream

Changed status_change to schedule_change in schedules socket on test page. Started fixing activity stream brokeness.
This commit is contained in:
Chris Houseknecht
2014-07-17 16:45:46 -04:00
parent e17a9a9e1d
commit 4df2fbc38f
2 changed files with 4 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ function SocketsController ($scope, $compile, ClearScope, Socket) {
test_scope.messages.push(data);
});
schedules_socket.on("status_changed", function(data) {
schedules_socket.on("schedule_changed", function(data) {
schedules_scope.messages.push(data);
});

View File

@@ -19,9 +19,9 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti
// Try not to overlap footer. Because stream is positioned absolute, the parent
// doesn't resize correctly when stream is loaded.
var sheight = $('#stream-content').height(),
theight = parseInt($('#tab-content-container').css('min-height').replace(/px/, '')),
theight = parseInt($('#main-view').css('min-height').replace(/px/, '')),
height = (theight < sheight) ? sheight : theight;
$('#tab-content-container').css({
$('#main-view').css({
"min-height": height
});
};
@@ -79,7 +79,7 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti
stream.detach();
stream.empty();
stream.unbind();
$('#tab-content-container').css({
$('#main-view').css({
'min-height': 0
}); //let the parent height go back to normal
}, 500);