Changeset 1266
- Timestamp:
- Dec 15, 2010, 12:39:03 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/common/_topnav.gsp
r1263 r1266 52 52 <ul class="subnav"> 53 53 <li><g:link controller="publication" action="list">View publications</g:link></li> 54 <li><g:link controller="publication" action=" add">Add publication</g:link></li>54 <li><g:link controller="publication" action="create">Add publication</g:link></li> 55 55 </ul> 56 56 </li> -
trunk/grails-app/views/study/show.gsp
r1254 r1266 11 11 <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}"/> 12 12 <title><g:message code="default.show.label" args="[entityName]"/></title> 13 <script type="text/javascript"> 13 <script type="text/javascript"> 14 // Flag whether the timelines have been loaded 15 var timelineloaded = false; 16 14 17 // Number of timelines that should be loaded 15 18 var numTimelines = ${studyList?.size()}; … … 18 21 $(function() { 19 22 $("#tabs").tabs({ 20 load: function(event, ui) { 21 // If the events tab is shown, the timeline should be redrawn 22 if (ui.tab.hash == '#Events_timeline') { 23 loadTimeline('eventstimeline', 'eventtitles', 0); 24 } 25 }, 23 show: function(event, ui) { 24 // If the events tab is shown, the timeline should be redrawn 25 if( ui.tab.hash == '#events-timeline' && !timelineloaded ) { 26 loadTimeline( 'eventstimeline', 'eventtitles', 0 ); 27 timelineloaded = true; 28 } 29 }, 26 30 ajaxOptions: { 27 31 error: function(xhr, status, index, anchor) { … … 62 66 <li><a href="#study">Study Information</a></li> 63 67 <li><a href="<g:createLink action="show_subjects" id="${studyList.id.join(',')}"/>" title="Subjects"><span>Subjects</span></a></li> 64 <li><a href=" <g:createLink action="show_events_timeline" id="${studyList.id.join(',')}"/>" title="Eventstimeline"><span>Events timeline</span></a></li>68 <li><a href="#events-timeline"><span>Events timeline</span></a></li> 65 69 <li><a href="<g:createLink action="show_events_table" id="${studyList.id.join(',')}"/>" title="Events table"><span>Events table</span></a></li> 66 70 <li><a href="<g:createLink action="show_assays" id="${studyList.id.join(',')}"/>" title="Assays"><span>Assays</span></a></li> … … 180 184 </div> 181 185 186 <div id="events-timeline"> 187 <g:if test="${studyList*.events?.flatten()?.size()==0 && studyInstance*.samplingEvents?.flatten()?.size()==0 }"> 188 No events in these studies 189 </g:if> 190 <g:else> 191 <g:each in="${studyList}" var="study" status="i"> 192 <div style="margin: 10px; "> 193 <div class="eventtitles" id="eventtitles-${i}"></div> 194 <div class="eventstimeline" id="eventstimeline-${i}"></div> 195 </div> 196 </g:each> 197 <noscript> 198 Javascript is needed for showing the timeline, but it has been disabled in your browser. Please enable javascript or use 199 the events table instead. 200 </noscript> 201 </g:else> 202 </div> 203 182 204 <% /* 183 205 All other tabs are moved to separate views and are loaded using -
trunk/web-app/css/default_style.css
r1265 r1266 74 74 font-size: 1.2em; 75 75 background: url(../images/default_style/topnav/topnav_bg.gif) repeat-x; 76 z-index: 100 0;76 z-index: 1005; /** Important: keeps submenu's on top of other elements in IE7. See http://www.shawnpreisz.com/css/z-index-internet-explorer-7-ie7#comment-547 */ 77 77 } 78 78 … … 82 82 padding: 0 15px 0 0; 83 83 position: relative; /*--Declare X and Y axis base--*/ 84 z-index: 1004; /** Important: keeps submenu's on top of other elements in IE7. See http://www.shawnpreisz.com/css/z-index-internet-explorer-7-ie7#comment-547 */ 84 85 } 85 86 … … 130 131 -webkit-border-bottom-right-radius: 5px; 131 132 border: 1px solid #111; 133 z-index: 1001; /** Important: keeps submenu's on top of other elements in IE7. See http://www.shawnpreisz.com/css/z-index-internet-explorer-7-ie7#comment-547 */ 132 134 } 133 135 … … 139 141 clear: both; 140 142 width: 170px; 143 position:relative; 144 z-index: 1000; /** Important: keeps submenu's on top of other elements in IE7. See http://www.shawnpreisz.com/css/z-index-internet-explorer-7-ie7#comment-547 */ 141 145 } 142 146 … … 440 444 #facebookConnect { 441 445 padding:0px 0px 10px 0px; 442 z-index: -1; 443 } 446 position:relative; 447 z-index: 0; 448 } -
trunk/web-app/css/wizard.css
r1182 r1266 242 242 -o-transform: rotate(180g); 243 243 cursor: pointer; 244 zoom: 1; /* IE 6 & 7 hack */ 245 *display: inline; /* IE 6 & 7 hack */ 244 246 } 245 247 … … 325 327 } 326 328 327 .wizard .table .highlight, .wizard .table .highlight input, .wizard .table .highlight select, .wizard .table .highlight b{329 #wizard div.row:hover, #wizard div.row:hover b{ 328 330 background-color: #006DBA; 329 331 color: #fff; 330 332 } 331 333 332 .wizard .table .highlight input, .wizard .table .highlightselect {334 #wizard div.row:hover input, #wizard div.row:hover select { 333 335 background-color: #6e99d4; 334 336 color: #fff; 335 337 } 338 336 339 /* END :: TABLE */ 337 340 -
trunk/web-app/js/importer.js
r980 r1266 217 217 // attach subject events 218 218 function attachTableEvents() { 219 $('div#wizard').find('div.row').each(function() { 220 $(this).hover( 221 function() { 222 $(this).addClass('highlight'); 223 }, 224 function() { 225 $(this).removeClass('highlight'); 226 } 227 ); 228 }); 219 // This method handled the background hover color on table rows 220 // Since this broke select boxes in IE7, this is now handled by css 221 // See wizard.css and #234 and #237 229 222 } 230 223 -
trunk/web-app/js/wizard.js
r1182 r1266 222 222 // attach subject events 223 223 function attachTableEvents() { 224 $('div#wizard').find('div.row').each(function() { 225 $(this).hover( 226 function() { 227 $(this).addClass('highlight'); 228 }, 229 function() { 230 $(this).removeClass('highlight'); 231 } 232 ); 233 }); 224 // This method handled the background hover color on table rows 225 // Since this broke select boxes in IE7, this is now handled by css 226 // See wizard.css and #234 and #237 234 227 } 235 228
Note: See TracChangeset
for help on using the changeset viewer.