|
|
|
@ -286,8 +286,11 @@ monitor.sandbox.init = function () {
|
|
|
|
|
|
|
|
|
|
var r = JSON.parse(x.responseText)
|
|
|
|
|
|
|
|
|
|
if (r.length > 0){
|
|
|
|
|
if (r.length > 0) {
|
|
|
|
|
jx.dom.show('sandbox')
|
|
|
|
|
monitor.sandbox.render(r);
|
|
|
|
|
} else {
|
|
|
|
|
jx.dom.hide('sandbox')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -367,8 +370,33 @@ monitor.folders.init = function () {
|
|
|
|
|
monitor.folders.render.init(data)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
monitor.folders.search = {}
|
|
|
|
|
monitor.folders.search.reset = function () {
|
|
|
|
|
jx.dom.set.value('folder_search', '')
|
|
|
|
|
var data = jx.dom.get.attribute('folder_search', 'data')
|
|
|
|
|
monitor.folders.render.summary(data)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
monitor.folders.search.init = function(){
|
|
|
|
|
var term = jx.dom.get.value('folder_search')
|
|
|
|
|
var data = jx.dom.get.attribute('folder_search', 'data')
|
|
|
|
|
|
|
|
|
|
term = term.replace(/\x32/g,'')
|
|
|
|
|
if (term.length == 0) {
|
|
|
|
|
monitor.folders.render.summary(data)
|
|
|
|
|
} else if (term.length > 3) {
|
|
|
|
|
|
|
|
|
|
data = jx.utils.patterns.visitor(data, function (row) {
|
|
|
|
|
if (row.id.match(term)) {
|
|
|
|
|
return row
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
monitor.folders.render.summary(data)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
monitor.folders.render = {}
|
|
|
|
|
monitor.folders.render.init = function (data) {
|
|
|
|
|
jx.dom.set.attribute('folder_search','data',data)
|
|
|
|
|
monitor.folders.render.summary(data)
|
|
|
|
|
}
|
|
|
|
|
monitor.folders.show = {}
|
|
|
|
@ -493,7 +521,7 @@ monitor.folders.render.summary = function (data) {
|
|
|
|
|
// @TODO Add the units in days just in case
|
|
|
|
|
options.autoload = true
|
|
|
|
|
options.fields = [
|
|
|
|
|
{ name: 'id', type: 'text', title: "Context", 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" },
|
|
|
|
|