ginebra2/chrome/bedrockchrome/historyview.superpage/clearhistorydialog.js
changeset 6 1c3b8676e58c
parent 5 0f2326c2a325
child 15 73c48011b8c7
--- a/ginebra2/chrome/bedrockchrome/historyview.superpage/clearhistorydialog.js	Wed Jun 23 17:59:43 2010 +0300
+++ b/ginebra2/chrome/bedrockchrome/historyview.superpage/clearhistorydialog.js	Tue Jul 06 14:03:49 2010 +0300
@@ -12,26 +12,22 @@
 
 function writeClearHistoryDialog()
 {
-	  var message = window.localeDelegate.translateText("txt_browser_history_delete_are_you_sure");
-	  //Following string to be localized - BR-2979 
-	  //var message = "Clear All History ?";
+    var message = window.localeDelegate.translateText("txt_browser_history_delete_are_you_sure");
     var html =
-        '<div class="top"></div>'+
-        '<div class="body">'+
-               '<div class="textLabel">'+message +'</div>' +
-               '<div class="controls">' +
-                 '<div type="button" onmouseup="clearAllHistoryDialog();" class="clearDoneButton"></div>'+ 
-                 '<div type="button" onmouseup="clearHistoryDialogIdHide();" class="clearCancelButton"></div>'+         
-                 '</div>'+ 
-          '</div>' +  /*body*/
-        '<div class="bottom"></div>';
-
+        '<div class="textLabel">'+message +'</div>' +
+        '<div class="controls">' +
+            '<div type="button" onmouseup="clearAllHistoryDialog();" class="historyDialogButton clearDoneButton"></div>'+ 
+            '<div type="button" onmouseup="clearHistoryDialogIdHide();" class="historyDialogButton clearCancelButton"></div>'+         
+        '</div>' +
+        '<div id="hiddenDialogOK"></div>' +
+        '<div id="hiddenDialogCancel"></div>';
   document.write(html);
 }
 
 function showClearHistoryDialog() {
   try{
-	    window.snippets.ClearHistoryDialogId.show(false);
+      window.snippets.ClearHistoryDialogId.show(false);
+      window.snippets.RecentUrlViewToolbarId.enabled = false;
   }catch(e){ alert(e); }
 } 
 
@@ -39,9 +35,10 @@
 {
     window.bookmarksManager.clearHistory();
     window.views.WebView.reload();    
-    window.snippets.ClearHistoryDialogId.hide();
+    clearHistoryDialogIdHide();
 }
 
 function clearHistoryDialogIdHide(){
     window.snippets.ClearHistoryDialogId.hide();
+    window.snippets.RecentUrlViewToolbarId.enabled = true;
 }