Displaying 5 results from an estimated 5 matches for "selected_id".
Did you mean:
selected_ids
2010 Sep 21
1
[PATCH] Fixing a loading issue with the Start On form
...he most appropriate starting host.
<%- end -%>
+
+<script type="text/javascript">
+ $(function() {
+
+ $('#start_vm_form').ajaxForm({
+ dataType: 'json',
+ success: afterVm
+ });
+
+ });
+
+ function start_vm_select(selected_rows) {
+ var selected_ids = new Array();
+ for (i=0; i<selected_rows.length; i++) {
+ load_widget_select(selected_rows[i]);
+ selected_ids[i] = selected_rows[i].id;
+ }
+ if (selected_ids.length == 1) {
+ $('#selected_starting_host')
+ .load('<%= url_for :controller => &q...
2010 Aug 26
1
[PATCH] Adding the ability to select a Host to start a VM
..."Start Virtual Machine") %>
+</form>
+<script type="text/javascript">
+ $(function() {
+
+ $('#start_vm_form').ajaxForm({
+ dataType: 'json',
+ success: afterVm
+ });
+
+ });
+
+ function start_vm_select(selected_rows) {
+ var selected_ids = new Array();
+ for (i=0; i<selected_rows.length; i++) {
+ load_widget_select(selected_rows[i]);
+ selected_ids[i] = selected_rows[i].id;
+ }
+ if (selected_ids.length == 1) {
+ $('#selected_starting_host')
+ .load('<%= url_for :controller => &q...
2010 Sep 03
1
[PATCH] Adding some control over usages in the network creation/edition form
...$('#network_usages_ids')
+ .append('<option value="'+usage.id+'">'+usage.label+'</option>');
+ }
+ },
+ 'json'
+ );
+ }
+ return false;
+});
+
+$('#delete_usages').click(function() {
+ var selected_ids = $('#network_usages_ids').val();
+
+ $.post(
+ "<%= remove_usages_path :format => 'json' %>",
+ {
+ '_method': 'delete',
+ 'ids[]': selected_ids
+ },
+ function(data, status) {
+ if (data.success) {
+...
2008 Jul 07
0
HAML and nestings
I have this partial:
1 - bairros = bairros_select
2 - selected_id ||= nil
3 - if bairros.any?
4 - cid = nil
5 = select_tag :imovel, :bairro_id do
6 - for b in bairros
7 - sel = b.id == selected_id ? {:selected => true} : {}
8 - if cid != b.cidade_id
9 %optgroup= b.cidade.cidade
10 - cid = b.cidade_id
11...
2009 May 21
1
[PATCH server] Updated look and feel for empty grid views
...+55,14 @@
}
if (vm_pools.indexOf($('#vmpool_selection_id').html()) != -1){
empty_summary('vmpool_selection', 'Virtual Machine Pool');
- }
+ }
}, 'json');
}
}
function vmpools_select(selected_rows)
{
- var selected_ids = new Array()
- for(i=0; i<selected_rows.length; i++) {
+ var selected_ids = new Array()
+ for(i=0; i<selected_rows.length; i++) {
load_widget_select(selected_rows[i]);
selected_ids[i] = selected_rows[i].id;
}
@@ -92,14 +92,11 @@
<% else %>
<div cl...