1 | <%-- |
---|
2 | Copyright (C) 2011 Nicklas Nordborg |
---|
3 | |
---|
4 | This file is part of the Example Code Package for BASE. |
---|
5 | Available at http://baseplugins.thep.lu.se/ |
---|
6 | BASE main site: http://base.thep.lu.se/ |
---|
7 | |
---|
8 | This is free software; you can redistribute it and/or |
---|
9 | modify it under the terms of the GNU General Public License |
---|
10 | as published by the Free Software Foundation; either version 3 |
---|
11 | of the License, or (at your option) any later version. |
---|
12 | |
---|
13 | The software is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | GNU General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with BASE. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | --%> |
---|
21 | <%@ page |
---|
22 | pageEncoding="UTF-8" |
---|
23 | session="false" |
---|
24 | contentType="text/javascript" |
---|
25 | import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
---|
26 | %> |
---|
27 | <%! |
---|
28 | final String homeUrl = |
---|
29 | ExtensionsControl.getHomeUrl("net.sf.basedb.examples.extensions.toolbar.iteminfo"); |
---|
30 | %> |
---|
31 | var Examples = new function() |
---|
32 | { |
---|
33 | this.showItemInfo = function(itemType, itemId) |
---|
34 | { |
---|
35 | var url = '<%=homeUrl%>/item_info.jsp'; |
---|
36 | url += '?ID='+getSessionId(); |
---|
37 | url += '&item_type=' + itemType; |
---|
38 | url += '&item_id='+itemId; |
---|
39 | Main.openPopup(url, 'ItemInfo', 400, 300); |
---|
40 | } |
---|
41 | |
---|
42 | this.filterAnnotated = function(itemType) |
---|
43 | { |
---|
44 | var url = '<%=homeUrl%>/filter_annotated.jsp'; |
---|
45 | url += '?ID='+getSessionId(); |
---|
46 | url += '&item_type=' + itemType; |
---|
47 | Main.openPopup(url, 'AnnotationFilter', 400, 300); |
---|
48 | } |
---|
49 | } |
---|
50 | (); |
---|