window.Asc.plugin.button = function(id, windowId) { if (!modalWindow) return; if (windowId) { switch (id) { case -1: default: window.Asc.plugin.executeMethod('CloseWindow', [windowId]); } } };