root/cdat/trunk/laserver/custom.js
Revision 1723, 1.1 kB (checked in by drach, 8 years ago) |
---|
Line | |
---|---|
1 | //Custom JavaScript include file |
2 | //Add your JavaScript customizations here |
3 | |
4 | // Define a new LAS user interface operation |
5 | var newop = new Operation('test', 'GIF image', 'test', 'gif'); |
6 | |
7 | // Define the TestServer object, as defined in the new XML operation test |
8 | function TestServer(index, dataset, url, name) { |
9 | this.base = V; |
10 | this.base(index, dataset, url, name); |
11 | } |
12 | |
13 | // Inherit from the V (Variable) base class |
14 | setInherit("TestServer", "V"); |
15 | |
16 | // Return an array containing a list of LAS user interface operations |
17 | // that are to be displayed in the Select Product menu. In this case, |
18 | // only one operation as defined above is used |
19 | TestServer.prototype.getOpMenuList = function(mode, view) { |
20 | return ['test']; |
21 | } |
22 | |
23 | // Return the LAS server operation to be associated with the passed |
24 | // output and view. This should not be confused with a LAS user interface |
25 | // operation. |
26 | TestServer.prototype.getOpType = function(output, view) { |
27 | return 'test'; |
28 | } |
29 | |
30 | // Don't allow this variable to be compared to other variables |
31 | TestServer.prototype.allowCompare = function() { return false; } |
Note: See TracBrowser for help on using the browser.