Changeset 2022


Ignore:
Timestamp:
Sep 19, 2011, 2:08:02 PM (12 years ago)
Author:
tjeerd@…
Message:

VIS-18 fixed, added different effects for warnings (not so visible) and errors (highly visible). Also added bindings to enable close-on-document-click

Location:
trunk/web-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/css/visualization.css

    r2019 r2022  
    4848}
    4949
    50 div#message_counter.message_newmessage {
     50div#message_counter.message_warningnew {
     51    width: 50px;
     52    height: 50px;
     53    background-color: #eee;
     54}
     55
     56div#message_counter.message_errornew {
    5157    width: 150px;
    5258    height: 150px;
    53     background-color: pink;
     59    background-color: #ffe0e0;
    5460}
    5561
  • trunk/web-app/js/visualization.js

    r2019 r2022  
    1515    $("#menu_go").unbind('mouseover');
    1616
    17     $("#menu_go, .menu_arrow").mouseover(
     17    $("#menu_go").mouseover(
    1818        function() {
    1919            if(openForm!=null){
     
    2828                hideForm(openForm);
    2929            }
     30        }
     31    );
     32    $(document).click(
     33        function(event) {
     34            if(openForm!=null) {
     35                hideForm(openForm);
     36            }
     37        }
     38    );
     39    $(".menu_item").click(
     40        function(event) {
     41            event.stopPropagation();
     42            return false;
    3043        }
    3144    );
     
    267280            $( '#message_container' ).prepend( $( "<div>" ).addClass("message_box "+strClass).html( messages[index] ).css("position","relative").fadeIn().append(newClose) );
    268281    }
    269     $( '#message_counter' ).addClass("message_newmessage");
    270     $( '#message_counter' ).switchClass("message_newmessage","",2000);
     282    $( '#message_counter' ).addClass(strClass+"new");
     283    $( '#message_counter' ).switchClass(strClass+"new","",2000);
    271284    $( '#message_counter' ).html($('.message_box').length);
    272285}
Note: See TracChangeset for help on using the changeset viewer.