From 5e2b19be6bee5033c1c1bfd9cb23bafad6e6ce70 Mon Sep 17 00:00:00 2001 From: teramako Date: Sat, 26 Mar 2011 08:54:21 +0900 Subject: update validator --- statusline-toolbar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'statusline-toolbar.js') diff --git a/statusline-toolbar.js b/statusline-toolbar.js index 1555b56..4de6bd5 100644 --- a/statusline-toolbar.js +++ b/statusline-toolbar.js @@ -121,8 +121,10 @@ function init () { return [ elm.id, elm.getAttribute("label") || "-" ]; })); }, - validator: function (val) { - return true; + validator: function (ids) { + return ids.every(function(id) { + return ($(id) || gToolbox.palette.querySelector("#" + id)); + }); }, }); -- cgit v1.2.3