Subversion Repositories ALCASAR

Rev

Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
2786 rexy 1
function renderPlugin_iptables(data) {
2
 
3
    var directives = {
4
        Rule: {
5
            html: function () {
6
                return this.Rule;
7
            }
8
        }
9
    };
10
 
11
    if ((data.Plugins.Plugin_iptables !== undefined) && (data.Plugins.Plugin_iptables.iptables !== undefined)) {
12
        var upitems = items(data.Plugins.Plugin_iptables.iptables.Item);
13
        if (upitems.length > 0) {
14
            var up_memory = [];
15
            up_memory.push_attrs(upitems);
16
            $('#iptables-data').render(up_memory, directives);
17
 
18
            $('#block_iptables').show();
19
        } else {
20
            $('#block_iptables').hide();
21
        }
22
    } else {
23
        $('#block_iptables').hide();
24
    }
25
}