Fix for quota initialization scripts

when rendered in a non-modal window -
create instance/volume pages

Fixes bug 1025482

Change-Id: I0a528b89d4e207c5a11126046d9b1e3c18f2cf51
This commit is contained in:
Tihomir Trifonov 2012-07-25 17:24:13 +03:00
parent 6c766326b5
commit f81afa6aa0
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
</div>
<script type="text/javascript" charset="utf-8">
if(typeof horizon !== 'undefined') {
if(typeof horizon.Quota !== 'undefined') {
horizon.Quota.initWithFlavors({{ flavors|safe|default:"{}" }});
} else {
addHorizonLoadEvent(function() {

View File

@ -41,7 +41,7 @@
</div>
<script type="text/javascript" charset="utf-8">
if(typeof horizon !== 'undefined') {
if(typeof horizon.Quota !== 'undefined') {
horizon.Quota.init();
} else {
addHorizonLoadEvent(function() {