Revision 67679131 ui/templates/standard.html

b/ui/templates/standard.html
28 28
        </a>
29 29
        <h5 class="settings">
30 30
            {% trans "Show:" %} 
31
            <a href="#">{% trans "disks" %}</a> | 
32
            <a href="#">{% trans "networks" %}</a> | 
33
            <a href="#">{% trans "group" %}</a> | 
31
            <a class="show-disks"href="#">{% trans "disks" %}</a> | 
32
            <a class="show-networks"href="#">{% trans "networks" %}</a> | 
33
            <a class="show-group"href="#">{% trans "group" %}</a> | 
34 34
            <a class="show-metadata" href="#">{% trans "metadata" %}</a>
35 35
        </h5>
36 36
        <div class="confirm_single">
......
66 66
        top: 'center',
67 67
        closeOnClick: false,
68 68
        oneInstance: false,
69
        load: false,
70
        onClose: function(){
71
            // With partial refresh working properly,
72
            // it is no longer necessary to refresh the whole page
73
            // choose_view();
74
        }
69
        load: false
75 70
    });
76 71
    $("a#meta-editor-1").data('overlay').load();
77 72
    return false; 
78 73
});
79 74

  
75
// intercept create new metadata entry click
76
$("a.show-group").live('click', function() {
77
    // get server name and server ID
78
    var serverID = $(this).parent().parent().attr("id");
79
    var serverName = $(this).parent().prevAll("a.name").find("span.name").text();
80
    // set server name in box's title
81
    $("a#meta-editor-2 h3").text(serverName);
82
    var triggers = $("a#meta-editor-2").overlay({
83
        // some mask tweaks suitable for modal dialogs
84
        mask: '#000',
85
        effect: 'default',
86
        top: 'center',
87
        closeOnClick: false,
88
        oneInstance: false,
89
        load: false
90
    });
91
    $("a#meta-editor-2").data('overlay').load();
92
    return false; 
93
});
94

  
80 95
// intercept reboot click 
81 96
$("div.actions a.action-reboot").live('click', function(){
82 97
    var serverID = $(this).parent().parent().attr("id");

Also available in: Unified diff