Subversion Repositories ALCASAR

Rev

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

Rev Author Line No. Line
2781 rexy 1
function renderPlugin_uprecords(data) {
2
 
3
    var directives = {
4
        hash: {
5
            html: function () {
6
                return this.hash;
7
            }
8
        },
9
        Bootup: {
10
            html: function () {
11
                if (((datetimeFormat = data.Options["@attributes"].datetimeFormat) !== undefined) && (datetimeFormat.toLowerCase() === "locale")) {
12
                    var bootup = new Date(this.Bootup);
13
                    return bootup.toLocaleString();
14
                } else {
15
                    return this.Bootup;
16
                }
17
            }            
18
        }
19
    };
20
 
21
    if ((data.Plugins.Plugin_uprecords !== undefined) && (data.Plugins.Plugin_uprecords.Uprecords !== undefined)) {
22
        var upitems = items(data.Plugins.Plugin_uprecords.Uprecords.Item);
23
        if (upitems.length > 0) {
24
            var up_memory = [];
25
            up_memory.push_attrs(upitems);
26
            $('#uprecords-data').render(up_memory, directives);
27
 
28
            $('#block_uprecords').show();
29
        } else {
30
            $('#block_uprecords').hide();
31
        }
32
    } else {
33
        $('#block_uprecords').hide();
34
    }
35
}