[open-ils-commits] r7803 -
trunk/Open-ILS/xul/staff_client/chrome/content/main
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 19 14:22:18 EDT 2007
Author: phasefx
Date: 2007-09-19 14:13:27 -0400 (Wed, 19 Sep 2007)
New Revision: 7803
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
Log:
More obvious Migration prompt
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js 2007-09-19 16:10:39 UTC (rev 7802)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js 2007-09-19 18:13:27 UTC (rev 7803)
@@ -256,17 +256,20 @@
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) {
More information about the open-ils-commits
mailing list