More obvious Migration prompt
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Sep 2007 18:13:43 +0000 (18:13 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 19 Sep 2007 18:13:43 +0000 (18:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@7804 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/main.js

index c57693a..36e88ca 100644 (file)
@@ -256,17 +256,20 @@ function main_init() {
                        false
                );
                if ( found_ws_info_in_Achrome() ) {
-                       var hbox = x.parentNode; var b = document.createElement('button'); 
-                       b.setAttribute('label','Migrate legacy settings'); hbox.appendChild(b);
-                       b.addEventListener(
-                               'command',
-                               function() {
-                                       try {
-                                               handle_migration();
-                                       } catch(E) { alert(E); }
-                               },
-                               false
-                       );
+                       //var hbox = x.parentNode; var b = document.createElement('button'); 
+                       //b.setAttribute('label','Migrate legacy settings'); hbox.appendChild(b);
+                       //b.addEventListener(
+                       //      'command',
+                       //      function() {
+                       //              try {
+                       //                      handle_migration();
+                       //              } catch(E) { alert(E); }
+                       //      },
+                       //      false
+                       //);
+                       if (window.confirm('This version of the staff client stores local settings in a different location than your previous installation.  Should we attempt to migrate these settings?')) {
+                               setTimeout( function() { handle_migration(); }, 0 );
+                       }
                }
 
        } catch(E) {