Changeset 3432


Ignore:
Timestamp:
08/20/13 11:17:27 (11 years ago)
Author:
vronk
Message:

loading userdocs on startup, added custom handling for links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SMC/trunk/SMC/src/web/scripts/js/ui.js

    r2487 r3432  
    5656       
    5757       
     58  // loading userdocs as welcome info
     59  $(graph_container).load(userdocs_file + " div.document");
     60 
     61                loadDetailInfo ();
     62               
    5863                initGraph();
    59                 loadDetailInfo ();
    6064               
    6165       
     
    8892            });
    8993   
    90     $('#infovis-wrapper').resizable( {
     94  /*  $('#infovis-wrapper').resizable( {
    9195                   start: function(event, ui) {
    9296                            graph_container.hide();
     
    97101                       }
    98102                }
    99                 );
     103                );*/
    100104
    101     $('#input-link').live("mousedown", function(event) {
     105    /*$('#input-link').live("mousedown", function(event) {
    102106    console.log(this);
    103107                $(this).attr("target", "_blank");
    104108                    $(this).attr("href", generateLink());
    105109                   });
    106    
     110    */
    107111    $('#input-download').live("mousedown", genDownload);
    108112   
     
    112116                $(this).parent().find('.detail').toggle();
    113117              });
    114              
     118
     119 $(".node-item .detail a").live("click", function(event) {
     120                event.preventDefault();               
     121                key = $(this).attr("data-key");
     122                console.log(key);
     123                selectNodeByKey([key]);
     124               
     125              });
     126
     127
     128$("a.scan").live("click", function(event) {
     129                console.log(this);
     130                event.preventDefault();
     131                url = $(this).attr("href");
     132                $(this).parent().find('.node-detail').html("loading");
     133                $(this).parent().find('.node-detail').load(url + " div.content");
     134              });
     135
    115136
    116137}
Note: See TracChangeset for help on using the changeset viewer.