Changeset 7372 for trunk/workflow/js/scriptaculous
- Timestamp:
- 10/09/12 09:01:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/js/scriptaculous/lightbox.js
r795 r7372 133 133 info = "<div id='lbContent'></div>"; 134 134 new Insertion.Before($('lbLoadMessage'), info); 135 this.content(); 135 136 if (typeof(this.content) == "function") 137 { 138 this.content(); 139 } 140 else 141 { 142 this.content; 143 } 144 136 145 $('lightbox').className = "done"; 137 146 //this.actions(); … … 182 191 if (!$('overlay')) 183 192 addLightboxMarkup(); 193 184 194 lbox = document.getElementsByClassName('lbOn'); 195 185 196 for(i = 0; i < lbox.length; i++) { 186 197 valid = new lightbox(lbox[i]); … … 194 205 bod = document.getElementsByTagName('body')[0]; 195 206 overlay = document.createElement('div'); 196 overlay.id = 'overlay';207 overlay.id = 'overlay'; 197 208 lb = document.createElement('div'); 198 209 lb.id = 'lightbox'; 199 lb.className = 'loading';200 lb.innerHTML = '<div id="lbLoadMessage">' +210 lb.className = 'loading'; 211 lb.innerHTML = '<div id="lbLoadMessage">' + 201 212 '<p>Loading</p>' + 202 213 '</div>'; 214 203 215 bod.appendChild(overlay); 204 216 bod.appendChild(lb);
Note: See TracChangeset
for help on using the changeset viewer.