ACK<br><br><div class="gmail_quote">On Wed, May 27, 2009 at 4:26 PM, Scott Seago <span dir="ltr"><<a href="mailto:sseago@redhat.com">sseago@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There were two javascript functions with the same name, and the wrong one was being called. I renamed one to avoid conflicts.<br>
<br>
Signed-off-by: Scott Seago <<a href="mailto:sseago@redhat.com">sseago@redhat.com</a>><br>
---<br>
 src/app/views/vm/add_to_smart_pool.rhtml |    3 ++-<br>
 src/public/javascripts/ovirt.js          |    2 +-<br>
 2 files changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/app/views/vm/add_to_smart_pool.rhtml b/src/app/views/vm/add_to_smart_pool.rhtml<br>
index cdfe92d..161496b 100644<br>
--- a/src/app/views/vm/add_to_smart_pool.rhtml<br>
+++ b/src/app/views/vm/add_to_smart_pool.rhtml<br>
@@ -20,7 +20,8 @@<br>
              :vms_per_page => 40} %><br>
 </div><br>
<br>
-<%= popup_footer("add_vms_to_smart_pool('#{url_for :controller => "smart_pools",<br>
+<%= popup_footer("add_vms_to_current_smart_pool('#{url_for :controller =><br>
+                                                            "smart_pools",<br>
                                                      :action => "add_vms",<br>
                                                      :id => @pool}')",<br>
                  "Add Vms") %><br>
diff --git a/src/public/javascripts/ovirt.js b/src/public/javascripts/ovirt.js<br>
index 2754817..67dc455 100644<br>
--- a/src/public/javascripts/ovirt.js<br>
+++ b/src/public/javascripts/ovirt.js<br>
@@ -115,7 +115,7 @@ function add_storage_to_smart_pool(url)<br>
                }, 'json');<br>
     }<br>
 }<br>
-function add_vms_to_smart_pool(url)<br>
+function add_vms_to_current_smart_pool(url)<br>
 {<br>
     vms= get_selected_checkboxes("add_smart_vms_grid_form");<br>
     if (validate_selected(vms, "vm")) {<br>
<font color="#888888">--<br>
1.6.0.6<br>
<br>
_______________________________________________<br>
Ovirt-devel mailing list<br>
<a href="mailto:Ovirt-devel@redhat.com">Ovirt-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ovirt-devel" target="_blank">https://www.redhat.com/mailman/listinfo/ovirt-devel</a><br>
</font></blockquote></div><br>