Changeset 4388
- Timestamp:
- 07/13/07 10:01:23 (1 year ago)
- Files:
-
- freepbx/branches/2.3/amp_conf/htdocs/admin/common/freepbx.css (added)
- freepbx/branches/2.3/amp_conf/htdocs/admin/common/interface.dim.js (added)
- freepbx/branches/2.3/amp_conf/htdocs/admin/common/mainstyle.css (modified) (4 diffs)
- freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx.php (modified) (2 diffs)
- freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx_reload.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.3/amp_conf/htdocs/admin/common/mainstyle.css
r4378 r4388 48 48 border:1px solid #ccc; 49 49 } 50 51 body {52 background-image: url('../images/shadow-side-background.png');53 background-repeat: repeat-y;54 background-position: left;55 }56 57 50 58 51 .attention { … … 541 534 } 542 535 #reloadBox { 536 border:2px solid #333; 543 537 background:#8c0000; 544 538 padding:15px; … … 556 550 #reload_reloading { 557 551 text-align:center; 552 cursor:wait; 558 553 } 559 554 #reload_reloading h2 { … … 563 558 #reload_reloading img { 564 559 align:center; 560 } 561 562 563 #moduleBox { 564 border:2px solid #333; 565 background:white; 566 padding:15px; 567 z-index:1000; 568 position:fixed; 569 width:500px; 570 height:400px; 571 } 572 #moduleBox iframe { 573 width:490px; 574 height:390px; 575 border:0; 565 576 } 566 577 freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx.php
r4378 r4388 33 33 <meta http-equiv="Content-Type" content="text/html" /> 34 34 <link href="common/mainstyle.css" rel="stylesheet" type="text/css" /> 35 <link href="common/freepbx.css" rel="stylesheet" type="text/css" /> 35 36 <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="favicon.ico" /> 36 37 <!--[if IE]> … … 71 72 <script type="text/javascript" src="common/jquery.dimensions.js"></script> <!-- used by reload/module admin --> 72 73 <script type="text/javascript" src="common/jquery.interface.js"></script> <!-- used to fade colors --> 74 <script type="text/javascript" src="common/interface.dim.js"></script> <!-- used for interface blocking (reload, modadmin) --> 73 75 <link href="common/jquery.tabs.css" rel="stylesheet" type="text/css" /> 74 76 freepbx/branches/2.3/amp_conf/htdocs/admin/views/freepbx_reload.php
r4378 r4388 1 1 <script type="text/javascript"> 2 var realHeight;3 4 2 function freepbx_show_reload() { 5 3 //$.blockUI($('#reloadBox')[0], { width: '400px' }); … … 10 8 $("#reload_response").hide(); 11 9 12 // hack: find the "real" height 13 navHeight = $('#nav').height(); 14 wrapperHeight = $('#wrapper').height() 15 realHeight = $('#header').height() + (wrapperHeight > navHeight ? wrapperHeight : navHeight); 16 17 // center the box 18 $('#reloadBox').css({ 19 top: ( Math.floor( $(window).height()/2 - ($('#reloadBox').height()/2) ) ), 20 left: ( Math.floor( $(window).width()/2 - ($('#reloadBox').width()/2) ) ) 21 }); 22 // dim screen 23 $.dimScreen(300, 0.7, function() { 24 // show reload box 25 $('#reloadBox').fadeIn(300); 26 }); 10 freepbx_modal_show('reloadBox'); 27 11 } 28 12 function freepbx_stop_reload() { 29 $('#reloadBox').fadeOut(300, function() { 30 $.dimScreenStop(300); 31 }); 13 freepbx_modal_close('reloadBox'); 32 14 } 15 33 16 function run_reload() { 34 17 … … 72 55 } 73 56 74 //dimScreen()75 //by Brandon Goldman76 jQuery.extend({77 //dims the screen78 dimScreen: function(speed, opacity, callback) {79 if(jQuery('#__dimScreen').size() > 0) return;80 81 if(typeof speed == 'function') {82 callback = speed;83 speed = null;84 }85 86 if(typeof opacity == 'function') {87 callback = opacity;88 opacity = null;89 }90 91 if(speed < 1) {92 var placeholder = opacity;93 opacity = speed;94 speed = placeholder;95 }96 97 if(opacity >= 1) {98 var placeholder = speed;99 speed = opacity;100 opacity = placeholder;101 }102 103 /* freepbx hack to get "real" height */104 dimHeight = (realHeight > 0) ? realHeight : $(window).height();105 106 speed = (speed > 0) ? speed : 500;107 opacity = (opacity > 0) ? opacity : 0.5;108 return jQuery('<div></div>').attr({109 id: '__dimScreen'110 ,fade_opacity: opacity111 ,speed: speed112 }).css({113 background: '#000'114 ,height: dimHeight + 'px'115 ,left: '0px'116 ,opacity: 0117 ,position: 'absolute'118 ,top: '0px'119 ,width: $(window).width() + 'px'120 ,zIndex: 999121 }).appendTo(document.body).fadeTo(speed, 0.7, callback);122 },123 124 //stops current dimming of the screen125 dimScreenStop: function(callback) {126 var x = jQuery('#__dimScreen');127 var opacity = x.attr('fade_opacity');128 var speed = x.attr('speed');129 x.fadeOut(speed, function() {130 x.remove();131 if(typeof callback == 'function') callback();132 });133 }134 });135 136 57 137 58 </script>
