diff --git a/smartroom/frontboard-aggregator/css/neoplace.frontboard2.css b/smartroom/frontboard-aggregator/css/neoplace.frontboard2.css index 0fbe808..c6a6da6 100644 --- a/smartroom/frontboard-aggregator/css/neoplace.frontboard2.css +++ b/smartroom/frontboard-aggregator/css/neoplace.frontboard2.css @@ -508,6 +508,6 @@ div.none-yet { display: none; } #status{ - color: #000000; + color: #CCCCCC; font-size: 0.7em; } \ No newline at end of file diff --git a/smartroom/frontboard-aggregator/js/neoplace.frontboard-aggregator.js b/smartroom/frontboard-aggregator/js/neoplace.frontboard-aggregator.js index 8550e9f..3d48ccb 100644 --- a/smartroom/frontboard-aggregator/js/neoplace.frontboard-aggregator.js +++ b/smartroom/frontboard-aggregator/js/neoplace.frontboard-aggregator.js @@ -87,8 +87,8 @@ NEOplace.FrontBoardAggregator = (function() { }; // Shows board and toolbars. This function is called when sail is connected. var showHtmlContent = function() { - jQuery("#board").fadeIn("slow"); - jQuery("#toolbars").fadeIn("slow"); + jQuery("#board").fadeIn("fast"); + jQuery("#toolbars").fadeIn("fast"); jQuery("#board").show(); jQuery("#toolbars").show(); }; @@ -184,9 +184,9 @@ NEOplace.FrontBoardAggregator = (function() { data: stateObj, success: function () { - console.log("Saved state in frontboard_aggregator_states"); + console.log("Capture saved in collection"); //Sail.app.groupchat.sendEvent(sev); - jQuery("#status").html("State Saved"); + jQuery("#status").html("Captured"); }, error: function (e) { console.log('some error when saving state.'); @@ -251,7 +251,7 @@ NEOplace.FrontBoardAggregator = (function() { var theFullText = jQuery(this).text(); var myDivId = jQuery(this).attr("id"); - jQuery("#"+myDivId + " span").first().fadeIn("slow"); + jQuery("#"+myDivId + " span").first().fadeIn("fast"); jQuery("#"+myDivId + " span").first().show(); jQuery("#"+myDivId).mousedown(bringDraggableToFront); }); @@ -261,14 +261,22 @@ NEOplace.FrontBoardAggregator = (function() { jQuery("#board .assumption").click(function () { var myDivId = jQuery(this).attr("id"); - jQuery("#"+myDivId + " span").first().fadeIn("slow"); + jQuery("#"+myDivId + " span").first().fadeIn("fast"); jQuery("#"+myDivId + " span").first().hide(); jQuery("#"+myDivId).mousedown(bringDraggableToFront); }); + /* + remove opacities + since dbSaveState() can run before the fadeIn("fast") efect finishes, + Some divs are stored with an opacity. + */ + jQuery("#board .paper div").css("opacity", ""); + // bring element to front - jQuery("#board .paper div").focusin(function () { + jQuery("#board .paper div").mousedown(function () { + //jQuery(this).mousedown(bringDraggableToFront); jQuery(this).mousedown(bringDraggableToFront); }); @@ -328,7 +336,7 @@ NEOplace.FrontBoardAggregator = (function() { var theFullText = jQuery(this).text(); var myDivId = jQuery(this).attr("id"); - jQuery("#"+myDivId + " span").first().fadeIn("slow"); + jQuery("#"+myDivId + " span").first().fadeIn("fast"); jQuery("#"+myDivId + " span").first().show(); }); @@ -337,7 +345,7 @@ NEOplace.FrontBoardAggregator = (function() { element.click(function () { var myDivId = jQuery(this).attr("id"); - jQuery("#"+myDivId + " span").first().fadeIn("slow"); + jQuery("#"+myDivId + " span").first().fadeIn("fast"); jQuery("#"+myDivId + " span").first().hide(); }); @@ -365,7 +373,7 @@ NEOplace.FrontBoardAggregator = (function() { // bring the element to the top when clicked element.mousedown(bringDraggableToFront); - element.fadeIn("slow"); + element.fadeIn("fast"); element.css('position', 'absolute'); @@ -419,9 +427,6 @@ NEOplace.FrontBoardAggregator = (function() { }).toArray(); var maxZ = Math.max.apply(Math, zs); jQuery(this).css('z-index', maxZ + 1); - - //test make make all position absolute - //jQuery("#quadrant-content-A div").css('position', 'absolute'); }; self.events = {