diff --git a/plugin/local/code/vimer.js b/plugin/local/code/vimer.js index eed768fa..b6eeeeaf 100644 --- a/plugin/local/code/vimer.js +++ b/plugin/local/code/vimer.js @@ -56,11 +56,6 @@ Volcanos(chat.ONFIGURE, { var node function add(list) { can.core.List(list, function(item) { item._menu = shy({ - trash: function(event) { - can.onaction._run(event, can, nfs.TRASH, [can.base.Path(path, item.path)], function() { - item._remove() - }) - }, create: function(event) { can.user.input(event, can, ["filename"], function(list) { if (can.base.endWith(item.path, ice.PS)) { @@ -74,6 +69,11 @@ Volcanos(chat.ONFIGURE, { }) }) }, + trash: function(event) { + can.onaction._run(event, can, nfs.TRASH, [can.base.Path(path, item.path)], function() { + item._remove() + }) + }, }), item._init = function(target) { item._remove = function() { can.page.Remove(can, target.parentNode), delete(node[item.path]) } } }) return can.onimport.tree(can, list, nfs.PATH, ice.PS, function(event, item) { can.onimport.tabview(can, path, item.path) }, target, node) } diff --git a/plugin/story/trend.js b/plugin/story/trend.js index 169fc6fa..80668699 100644 --- a/plugin/story/trend.js +++ b/plugin/story/trend.js @@ -16,7 +16,7 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb) { can.requireDraw(functio item.min = rest - item.del item.close = rest + item.add - item.del - begin = begin || value.date, count++ + begin = begin || item.date, count++ rest = item.close, add += item.add, del += item.del if (item.max - item.min > max) { max = item.max - item.min }