From: phasefx Date: Wed, 19 Sep 2007 18:13:27 +0000 (+0000) Subject: More obvious Migration prompt X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=825ad9bffea13418eee42badf74dedd5d238953d;p=Evergreen.git More obvious Migration prompt git-svn-id: svn://svn.open-ils.org/ILS/trunk@7803 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.js b/Open-ILS/xul/staff_client/chrome/content/main/main.js index c57693a444..36e88cade2 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.js @@ -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) {