Ticket #9238: hide-advanced-jmol-controls.patch

File hide-advanced-jmol-controls.patch, 1.4 KB (added by jason, 10 years ago)

apply after installing jmol spkg. Apply to sagenb repository

  • sagenb/data/sage/js/jmol_lib.js

    # HG changeset patch
    # User Jason Grout <jason.grout@drake.edu>
    # Date 1298954016 21600
    # Node ID 2427f79048f34c25ad8e312d28264b26f1c2efb1
    # Parent  23c49c15d5719b8a04c1b3438026a2883443227c
    [mq]: hide-advanced-jmol-controls.patch
    
    diff -r 23c49c15d571 -r 2427f79048f3 sagenb/data/sage/js/jmol_lib.js
    a b  
    278278    tableId = 'Jmol_Table_'+Id;
    279279    tableStr = '<table id="'+tableId+'" border="1"><tr><td id="'+tableId+'_cell_0_0">';
    280280    tableStr +='<div id = '+Id+'>';
    281     tableStr += 'Loading Jmol 3-D viewer...</div></td>';
     281    tableStr += 'Loading Jmol 3-D viewer...</div>';
     282    if (controlStr!='') {
     283        tableStr+='<button onClick="$(\'#'+tableId+'_cell_0_1\').toggle();">Advanced Controls</a>';
     284    }
     285    tableStr+='</td>';
    282286    if (controlStr!=''){
    283287        tempCntrlStr = '<a href="javascript:void(wakeJmol('+n+',jmolStatus))">'+ wakeMessage +'</a>';
    284288        tempCntrlStr +='<br/><a href="javascript:void(sleepJmol('+n+',jmolStatus))">'+sleepMessage+'</a>';
    285289        tempCntrlStr += '<br/><a href="javascript:void(jmol_help())">Help for Jmol 3-D viewer</a>'+controlStr;
    286         tableStr += '<td id="'+tableId+'_cell_0_1">'+tempCntrlStr+'</td>';
     290        tableStr += '<td id="'+tableId+'_cell_0_1" style="display:none;">'+tempCntrlStr+'</td>';
    287291        }
    288292    tableStr += '</tr>';
    289293    if (captionStr !=''){