Last change
on this file since 6 was
6,
checked in by robert@…, 12 years ago
|
Resolved two bugs in synchronization:
- full synchronization didn't work when no studies were present in the database (initial synchronization)
- synchronization didn't work with spaces in the end of a studyToken
|
File size:
1.4 KB
|
Line | |
---|
1 | <html> |
---|
2 | <head> |
---|
3 | <meta name="layout" content="main" /> |
---|
4 | <title>Full synchronization| Metagenomics | dbNP</title> |
---|
5 | |
---|
6 | <script type="text/javascript"> |
---|
7 | $(function() { |
---|
8 | $( "#wait_dialog" ).dialog({ |
---|
9 | height: 100, |
---|
10 | width: 480, |
---|
11 | modal: true, |
---|
12 | autoOpen: true, |
---|
13 | buttons: {}, |
---|
14 | closeOnEscape: false, |
---|
15 | open: function(event, ui) { $(".ui-dialog-titlebar-close" ).hide(); }, |
---|
16 | resizable: false |
---|
17 | }); |
---|
18 | |
---|
19 | // Call synchronization URL |
---|
20 | $.ajax({ |
---|
21 | type: 'POST', |
---|
22 | url: "<g:createLink controller="synchronize" action="perform" />", |
---|
23 | success: function(data) { window.location.replace( "${url.encodeAsJavaScript()}" ); }, |
---|
24 | error: function(xhr, textStatus, errorThrown) { |
---|
25 | if( confirm( "Error " + xhr.responseCode + ": " + xhr.responseText + ". Would you like to try again?" ) ) { |
---|
26 | window.location.refresh(); |
---|
27 | } else { |
---|
28 | if( confirm( "Would you like to continue to the original page?") ) { |
---|
29 | window.location.replace( "${url.encodeAsJavaScript()}" ); |
---|
30 | } else { |
---|
31 | $( "#wait_dialog").dialog( "close" ); |
---|
32 | } |
---|
33 | } |
---|
34 | } |
---|
35 | }); |
---|
36 | }); |
---|
37 | </script> |
---|
38 | <style type="text/css"> |
---|
39 | #wait_dialog { padding: 20px; text-align: center;} |
---|
40 | </style> |
---|
41 | </head> |
---|
42 | <body> |
---|
43 | <div id="wait_dialog"> |
---|
44 | <span class="spinner" style="display: inline-block; zoom: 1; *display: inline;"></span> Please wait while synchronizing. This could take a few seconds. |
---|
45 | </div> |
---|
46 | </body> |
---|
47 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.