Changeset 452 for trunk/modules/user_guide
- Timestamp:
- 08/30/2007 01:06:24 AM (15 months ago)
- Location:
- trunk/modules/user_guide/views/user_guide
- Files:
-
- 2 modified
-
css/layout.php (modified) (2 diffs)
-
js/effects.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/user_guide/views/user_guide/css/layout.php
r451 r452 22 22 Template Styles 23 23 */ 24 #loading { position: absolute; top: 0; left: 50%; z-index: 9999; width: 12em; margin-left: -6em; padding: 0.5em 2em; background: #fff; border: solid 1 #444; border-top: 0; text-align: center; font-size: 2em; color: #494; }25 24 #container { position: relative; width: 70%; min-width: 30em; max-width: 60em; margin: 0 auto; } 26 25 #menu { position: absolute; right: -10.1em; width: 10em; padding: 0.2em 0; } … … 37 36 #body ul { list-style: circle; } 38 37 #body li { padding: 0.1em 0; } 38 #loading { position: absolute; top: 0; right: 0; z-index: 9999; padding: 0.5em 2em; background: #fff; border: solid 0 #aaa; border-width: 0 0 1px 1px; text-align: center; text-transform: uppercase; font-size: 0.7em; } 39 #loading span { color: #400; } 39 40 /* 40 41 Content Styles -
trunk/modules/user_guide/views/user_guide/js/effects.php
r450 r452 2 2 $(document).ready(function(){ 3 3 // Append the AJAX loader 4 $(' body').append('<div id="loading">…loading…</div>');4 $('#container').append('<div id="loading"><span>…loading</span></div>'); 5 5 // To prevent extra querying 6 6 Kohana.loading = $('#loading').hide().css('opacity', 0.85); … … 39 39 // Fetch the current link 40 40 var link = $(this); 41 // Remove the "lite" class from the active link42 $('#menu li.active li.lite').removeClass('lite');43 41 // Make AJAX request 44 42 $.get(link.attr('href'), {ajax: 'true'}, function(data) { 45 43 // Add the "lite" class to the current link 44 $('#menu li.active li.lite').removeClass('lite'); 46 45 link.parent().addClass('lite'); 47 46 // Load new AJAX content … … 63 62 // If we are waiting for an animation, retry in 5ms 64 63 if (Kohana.waiting == true) { 65 setTimeout('Kohana.toggleLoading('+on+')', 5);64 setTimeout('Kohana.toggleLoading('+on+')', 100); 66 65 return false; 67 66 }
