Changeset 142 for minimanager/js/general.js
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/js/general.js
r19 r142 9 9 } 10 10 11 function showHide(id ){11 function showHide(id,force){ 12 12 var o, st; 13 13 if( document.getElementById ) // Standart way … … 18 18 o = document.layers[id]; 19 19 st = o.style; 20 21 if(force != undefined){ 22 st.display = (force) ? 'block' : 'none'; 23 return 24 } 20 25 // if the style.display value is blank we try to figure it out here 21 26 if(st.display == '' && o.offsetWidth != undefined && o.offsetHeight != undefined) … … 189 194 190 195 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>'; 193 198 194 199 if(DOM || IE) this.obj.innerHTML = t;
Note:
See TracChangeset
for help on using the changeset viewer.