Displaying 2 results from an estimated 2 matches for "vm_action_data".
2010 Sep 21
1
[PATCH] Fixing a loading issue with the Start On form
...d_rows[i].id;
+ }
+ if (selected_ids.length == 1) {
+ $('#selected_starting_host')
+ .load('<%= url_for :controller => "host", :action => "quick_summary" %>',
+ { id: parseInt(selected_ids[0].substring(3)) });
+ $('#vm_action_data').val(selected_ids[0].substring(3));
+ }
+ }
+
+ function start_vm_deselect(selected_rows) {
+ var selected_ids = new Array()
+ for (i=0; i<selected_rows.length; i++) {
+ load_widget_deselect(selected_rows[i]);
+ selected_ids[i] = selected_rows[i].id;
+ }
+ refresh...
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
...ON_START_VM %>
+ Selected Migration Target:
+ <div id='selected_starting_host'>
+ <div class="selection_left">
+ <div>No starting host selected.</div>
+ </div>
+ </div>
+ <%= hidden_field_tag 'vm_action_data', "" %>
+ <% end %>
+ </div>
+ <%= popup_footer("$('#start_vm_form').submit()", "Start Virtual Machine") %>
+</form>
+<script type="text/javascript">
+ $(function() {
+
+ $('#start_vm_form').ajaxFo...