1. Added notification plugin for the temporal graph vis,

2. Made sure that notification appears when more than 10 entites are attempted to be compared.
This commit is contained in:
cdtank 2011-01-06 20:52:23 +00:00
parent 1e27c494eb
commit c5904868c0
6 changed files with 252 additions and 12 deletions

View file

@ -660,14 +660,13 @@ function clearRenderedObjects(){
}
function createNotification( template, vars, opts ){
return $notificationContainer.notify("create", template, vars, opts);
}
function updateCounter(){
//notification about the max items that can be clicked
$("#counter").text(renderedObjects.length);
if (freeColors.length == 0) {
$.jGrowl("You can not select more than 10 entities at one time.", {
life: 3000
});
}
}
function displayLineGraphs(){
@ -737,7 +736,7 @@ function prepareTableForDataTablePagination(jsonData){
var row = $('<tr>');
var checkboxTD = $('<td>');
checkboxTD.html('<input type="checkbox" class="if_clicked_on_school" value="' + index + '"'+'/>');
checkboxTD.html('<div class="disabled-checkbox-event-receiver">&nbsp;</div><input type="checkbox" class="if_clicked_on_school" value="' + index + '"'+'/>');
var labelTD = $('<td>');
labelTD.css("width", "100px");
@ -876,6 +875,7 @@ function disableUncheckedEntities(){
$.each($("input[type=checkbox].if_clicked_on_school:not(:checked)"), function(index, val){
$(val).attr('disabled', true);
$(val).prev().show();
});
//console.log($("input[type=checkbox].if_clicked_on_school:not(:checked)"));
@ -887,6 +887,7 @@ function enableUncheckedEntities(){
$.each($("input[type=checkbox].if_clicked_on_school:not(:checked)"), function(index, val){
$(val).attr('disabled', false);
$(val).prev().hide();
});