Ignore:
Timestamp:
Nov 23, 2007, 11:29:33 PM (17 years ago)
Author:
george
Message:

Minimanager 0.1.5b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/js/general.js

    r19 r142  
    99}
    1010
    11 function showHide(id){
     11function showHide(id,force){
    1212        var o, st;
    1313        if( document.getElementById ) // Standart way
     
    1818                o = document.layers[id];
    1919        st = o.style;
     20       
     21        if(force != undefined){
     22                st.display = (force) ? 'block' : 'none';
     23                return
     24        }
    2025        // if the style.display value is blank we try to figure it out here
    2126        if(st.display == '' && o.offsetWidth != undefined && o.offsetHeight != undefined)
     
    189194
    190195    var t = '<table class="' + this.classname + '"><tr><th colspan=2>'+((this.btn_icon)?'<img src="'+ this.btn_icon +'" width="48" height="48" alt="" align="absmiddle" />':'')+ this.text +'</th></tr>'
    191                 + '<tr align="center"><td><a class="button" style="width:120px;" href="' + action + '">' + this.btn_ok + '</a></td>'
    192                 + '<td><a class="button" style="width:120px;" href="#" onclick="answerbox.hide()">' + this.btn_cancel + '</a></td></tr></table>';
     196                + '<tr align="center"><td><a class="button" style="width:120px;" href="' + action + '" type="wrn">' + this.btn_ok + '</a></td>'
     197                + '<td><a class="button" style="width:120px;" href="#" onclick="answerbox.hide()" type="def">' + this.btn_cancel + '</a></td></tr></table>';
    193198
    194199    if(DOM || IE) this.obj.innerHTML = t;
Note: See TracChangeset for help on using the changeset viewer.