|
|
|
@ -36,7 +36,16 @@ monitor.processes.init = function (x) {
|
|
|
|
|
// Auto start the first item in the menu
|
|
|
|
|
// This is designed not to let the user wander or wonder what is going on
|
|
|
|
|
//
|
|
|
|
|
jx.dom.get.children('menu')[0].click()
|
|
|
|
|
var nodes = jx.dom.get.children('menu')
|
|
|
|
|
if (nodes.length > 0) {
|
|
|
|
|
nodes[0].click()
|
|
|
|
|
} else {
|
|
|
|
|
//
|
|
|
|
|
// We should hide the panes for this
|
|
|
|
|
//
|
|
|
|
|
jx.dom.hide('apps')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setTimeout(monitor.sandbox.init,3000)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -363,7 +372,7 @@ monitor.folders.init = function () {
|
|
|
|
|
var data = []
|
|
|
|
|
for (var id in r) {
|
|
|
|
|
var item = r[id]
|
|
|
|
|
item.id = id
|
|
|
|
|
// item.id = id
|
|
|
|
|
data = data.concat(item)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -506,26 +515,26 @@ monitor.folders.render.summary = function (data) {
|
|
|
|
|
return 'small'
|
|
|
|
|
}
|
|
|
|
|
options.rowClick = function(args){
|
|
|
|
|
var item = args.item
|
|
|
|
|
// var item = args.item
|
|
|
|
|
|
|
|
|
|
age = jx.utils.patterns.visitor(item.details.age, function (row) {
|
|
|
|
|
return {y:row[0],x:row[1]}
|
|
|
|
|
})
|
|
|
|
|
size = jx.utils.patterns.visitor(item.details.size, function (row) {
|
|
|
|
|
return {y:row[0],x:row[1]}
|
|
|
|
|
})
|
|
|
|
|
// age = jx.utils.patterns.visitor(item.details.age, function (row) {
|
|
|
|
|
// return {y:row[0],x:row[1]}
|
|
|
|
|
// })
|
|
|
|
|
// size = jx.utils.patterns.visitor(item.details.size, function (row) {
|
|
|
|
|
// return {y:row[0],x:row[1]}
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
monitor.folders.render.details(item.name,{age:age,size:size})
|
|
|
|
|
// monitor.folders.render.details(item.name,{age:age,size:size})
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
// @TODO Add the units in days just in case
|
|
|
|
|
options.autoload = true
|
|
|
|
|
options.fields = [
|
|
|
|
|
{ name: 'id', type: 'text', title: "Host", headercss: "small bold", css: "small"},
|
|
|
|
|
{ name: 'label', type: 'text', title: "Folder Name", headercss: "small bold", css: "small"},
|
|
|
|
|
|
|
|
|
|
{ name: 'name', type: 'text', title: "Folder Name", headercss: "small bold", css: "small"},
|
|
|
|
|
|
|
|
|
|
{ name: "summary.size", type: "number", title: "Folder Size", type: "number", headercss: "small bold" },
|
|
|
|
|
{ name: "summary.count", type: "number", title: "File Count", type: "number", headercss: "small bold" }
|
|
|
|
|
{ name: "size", type: "number", title: "Folder Size", type: "number", headercss: "small bold" },
|
|
|
|
|
{ name: "count", type: "number", title: "File Count", type: "number", headercss: "small bold" }
|
|
|
|
|
]
|
|
|
|
|
var grid = $('#gridfolders').jsGrid(options) ;
|
|
|
|
|
|
|
|
|
|