Corot » History » Version 4
Anonymous, 17/04/2012 14:01
1 | 1 | Anonymous | h1. Corot |
---|---|---|---|
2 | 1 | Anonymous | |
3 | 1 | Anonymous | |
4 | 1 | Anonymous | h2. Gestion des imagettes dans le Detail |
5 | 1 | Anonymous | |
6 | 1 | Anonymous | Dans le fichier : /usr/local/Sitools2_Corot/workspace/client-user/js/components/viewDataDetail/viewDataDetail.js |
7 | 1 | Anonymous | Ligne 102 : collapsed : false |
8 | 2 | Anonymous | |
9 | 2 | Anonymous | |
10 | 2 | Anonymous | h2. Export VOTABLE |
11 | 3 | Anonymous | |
12 | 3 | Anonymous | Dans contextMenu.js (client) : |
13 | 3 | Anonymous | |
14 | 3 | Anonymous | <pre><code class="javascript"> |
15 | 4 | Anonymous | // ligne 864 fichier version 0.9.1 |
16 | 3 | Anonymous | // on test que l'utilisateur ne selectionne pas CHR et MON en meme temps + qu'il n'a pas pris de WINDESC et d'IMAG |
17 | 3 | Anonymous | if((request.search("EN2_STAR_CHR")!=-1 && request.search("EN2_STAR_MON")!=-1) || request.search("EN2_WIN")!=-1 || request.search("EN2_STAR_IMAG")!=-1){ |
18 | 3 | Anonymous | // si oui on l'averti que ce n'est pas possible et on ne lance pas le VOTable |
19 | 3 | Anonymous | Ext.Msg.alert("WARNING !", "DONT SELECT WINDESCRIPTOR OR IMAG" + "<br/>" + " ALSO DONT PICK EN2_STAR_MON AND EN2_STAR_CHR AT THE SAME TIME PLEASE !!!"); |
20 | 3 | Anonymous | |
21 | 3 | Anonymous | }else{ |
22 | 3 | Anonymous | // sinon on lance exportVOTable |
23 | 3 | Anonymous | |
24 | 3 | Anonymous | |
25 | 3 | Anonymous | url += "?1=1" + request; |
26 | 3 | Anonymous | if (!Ext.isEmpty(limit)) { |
27 | 3 | Anonymous | url += "&limit=" + limit; |
28 | 3 | Anonymous | } |
29 | 3 | Anonymous | if (! Ext.isEmpty(userParameters)) { |
30 | 3 | Anonymous | Ext.iterate(userParameters, function (key, value) { |
31 | 3 | Anonymous | url += "&" + key + "=" + value; |
32 | 3 | Anonymous | }); |
33 | 3 | Anonymous | } |
34 | 3 | Anonymous | |
35 | 3 | Anonymous | // If Get => the Resource MUST be synchrone and then send a representation |
36 | 3 | Anonymous | if (method == "GET") { |
37 | 3 | Anonymous | window.open(url); |
38 | 3 | Anonymous | Ext.getBody().unmask(); |
39 | 3 | Anonymous | return; |
40 | 3 | Anonymous | } else { |
41 | 3 | Anonymous | this._executeRequestForResource(url, method); |
42 | 3 | Anonymous | } |
43 | 3 | Anonymous | } |
44 | 3 | Anonymous | |
45 | 3 | Anonymous | </pre></code> |