Index: trunk/extensions/CentralNotice/SpecialBannerController.php |
— | — | @@ -124,8 +124,13 @@ |
125 | 125 | $( document ).ready( function () { |
126 | 126 | // Initialize the query string vars |
127 | 127 | $.centralNotice.fn.getQueryStringVariables(); |
128 | | - // Look for banners ready to go NOW |
129 | | - $.centralNotice.fn.loadBannerList( ); |
| 128 | + if( $.centralNotice.data.getVars['cnbanner'] ) { |
| 129 | + // if we're forcing one banner |
| 130 | + $.centralNotice.fn.loadBanner( $.centralNotice.data.getVars['cnbanner'] ); |
| 131 | + } else { |
| 132 | + // Look for banners ready to go NOW |
| 133 | + $.centralNotice.fn.loadBannerList( ); |
| 134 | + } |
130 | 135 | } ); //document ready |
131 | 136 | } )( jQuery ); |
132 | 137 | EOT; |