From b1de3d3f3fcb23a8da6fd46e1c6c95acc581515a Mon Sep 17 00:00:00 2001 From: "mgalli%geckonnection.com" Date: Thu, 22 Dec 2005 22:58:46 +0000 Subject: [PATCH] Sanitize bookmark function. --- minimo/chrome/content/preferences/preferences.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/minimo/chrome/content/preferences/preferences.js b/minimo/chrome/content/preferences/preferences.js index 21b2fe13560b..e1149a0b440f 100644 --- a/minimo/chrome/content/preferences/preferences.js +++ b/minimo/chrome/content/preferences/preferences.js @@ -144,6 +144,10 @@ function sanitizeAll() document.getElementById("privacySanitize").disabled=true; } +function sanitizeBookmarks() { + // in Common. + BookmarksDeleteAllAndSync(); +} /* * New Mini Pref Implementation @@ -374,8 +378,10 @@ function syncPrefSaveDOM() { } function syncPrefLoadDOM(elementList) { + for(var strCurKey in elementList) { + var elementAndPref=document.getElementById(elementList[strCurKey]); var prefName=elementAndPref.getAttribute("preference"); var prefUIType=elementAndPref.getAttribute("prefuitype");