diff --git a/extensions/freebase/module/scripts/dialogs/confirm-qa-dialog.html b/extensions/freebase/module/scripts/dialogs/confirm-qa-dialog.html
new file mode 100644
index 000000000..1f8e79bf3
--- /dev/null
+++ b/extensions/freebase/module/scripts/dialogs/confirm-qa-dialog.html
@@ -0,0 +1,11 @@
+
+
+
+ |
+ Are you sure this data is ready to be tested for upload into Freebase? |
+
+
+
\ No newline at end of file
diff --git a/extensions/freebase/module/scripts/dialogs/freebase-loading-dialog.js b/extensions/freebase/module/scripts/dialogs/freebase-loading-dialog.js
index 8e2e29aad..45b267c18 100644
--- a/extensions/freebase/module/scripts/dialogs/freebase-loading-dialog.js
+++ b/extensions/freebase/module/scripts/dialogs/freebase-loading-dialog.js
@@ -172,24 +172,19 @@ FreebaseLoadingDialog.prototype._load = function() {
};
if (qa) {
- var dialog = $(
- '' +
- '
| Are you sure this data is ready to be tested for upload into Freebase? |
' +
- '
'
- ).dialog({
- resizable: false,
- width: 400,
- height: 230,
- modal: true,
- buttons: {
- 'yes, I\'m sure': function() {
- $(this).dialog('close');
- doLoad();
- },
- 'hmm, not really': function() {
- $(this).dialog('close');
- }
- }
+ var dialog = $(DOM.loadHTML("freebase", "scripts/dialogs/confirm-qa-dialog.html"));
+ var elmts = DOM.bind(dialog);
+ var level = DialogSystem.showDialog(dialog);
+ var dismiss = function() {
+ DialogSystem.dismissUntil(level - 1);
+ };
+
+ elmts.okButton.click(function() {
+ doLoad();
+ dismiss();
+ });
+ elmts.cancelButton.click(function() {
+ dismiss();
});
} else {
doLoad();