svghmi/svghmi.js
branchsvghmi
changeset 2920 3ee337c8c769
parent 2917 c8d923dd707f
child 2921 2670f5c53caf
equal deleted inserted replaced
2919:c6e6051898f5 2920:3ee337c8c769
   503 
   503 
   504     parent.removeChild(tmpgrp);
   504     parent.removeChild(tmpgrp);
   505 
   505 
   506     current_modal = undefined;
   506     current_modal = undefined;
   507 };
   507 };
       
   508 
       
   509 function widget_active_activable(eltsub) {
       
   510     if(eltsub.inactive_style === undefined)
       
   511         eltsub.inactive_style = eltsub.inactive.getAttribute("style");
       
   512     eltsub.inactive.setAttribute("style", "display:none");
       
   513     if(eltsub.active_style !== undefined)
       
   514             eltsub.active.setAttribute("style", eltsub.active_style);
       
   515     console.log("active", eltsub);
       
   516 };
       
   517 function widget_inactive_activable(eltsub) {
       
   518     if(eltsub.active_style === undefined)
       
   519         eltsub.active_style = eltsub.active.getAttribute("style");
       
   520     eltsub.active.setAttribute("style", "display:none");
       
   521     if(eltsub.inactive_style !== undefined)
       
   522             eltsub.inactive.setAttribute("style", eltsub.inactive_style);
       
   523     console.log("inactive", eltsub);
       
   524 };