35 var modal = ( notmodal ==
true ) ?
"no" :
"yes";
36 var messagebox_data =
new Object();
37 messagebox_data.title = title;
38 messagebox_data.message =
message;
39 messagebox_data.wantcancel = wantcancel;
40 window.openDialog(
"chrome://songbird/content/xul/messageBox.xul",
"messagebox",
"chrome,titlebar=yes,resizable=no,modal="+modal+
", centerscreen", messagebox_data );
41 return messagebox_data.result;
45 alert(
"sbMessageBox - " + err);
52 var sbs = Components.classes[
"@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
53 var songbirdStrings = sbs.createBundle(
"chrome://songbird/locale/songbird.properties");
57 msg = songbirdStrings.GetStringFromName(msgstring);
58 title = songbirdStrings.GetStringFromName(titlestring);
function sbMessageBox(title, message, wantcancel, notmodal)
function sbMessageBox_strings(titlestring, msgstring, deftitle, defmsg, wantcancel, notmodal)
Components classes["@mozilla.org/observer-service;1"] true