source: extensions/net.sf.basedb.examples/trunk/resources/scripts/examples.jsp @ 1391

Last change on this file since 1391 was 1391, checked in by Nicklas Nordborg, 12 years ago

Fixes #314: Switch to GPL3

Almost all files were missing the license information. I have added it with copyright information for 2011 only.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Id
File size: 1.5 KB
Line 
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%>
31var 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();
Note: See TracBrowser for help on using the repository browser.