Fixed 'are you sure?' dialog box's styling.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1583 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-10-16 19:13:34 +00:00
parent d99abaa52b
commit 8e8231d8c6
2 changed files with 24 additions and 18 deletions

View File

@ -0,0 +1,11 @@
<div class="dialog-frame" style="width: 400px;">
<div class="dialog-header" bind="dialogHeader">Are You Sure?</div>
<div class="dialog-body" bind="dialogBody"><table><tr>
<td width="30%"><img src="/images/cop.png" width="140px"></td>
<td>Are you sure this data is ready to be <b>tested</b> for upload into <b>Freebase</b>?</td>
</tr></table></div>
<div class="dialog-footer" bind="dialogFooter">
<button class="button" bind="okButton">Yes, I'm sure</button>
<button class="button" bind="cancelButton">No</button>
</div>
</div>

View File

@ -172,24 +172,19 @@ FreebaseLoadingDialog.prototype._load = function() {
}; };
if (qa) { if (qa) {
var dialog = $( var dialog = $(DOM.loadHTML("freebase", "scripts/dialogs/confirm-qa-dialog.html"));
'<div id="freebase-confirmation-dialog" title="Are you sure?">' + var elmts = DOM.bind(dialog);
'<table><tr><td width="30%"><img src="/images/cop.png" width="140px"></td><td width="70%" style="text-align: center; vertical-align: middle; font-size: 120%">Are you sure this data is ready to be tested for upload into <b>Freebase</b>?</td></tr></table>' + var level = DialogSystem.showDialog(dialog);
'</div>' var dismiss = function() {
).dialog({ DialogSystem.dismissUntil(level - 1);
resizable: false, };
width: 400,
height: 230, elmts.okButton.click(function() {
modal: true,
buttons: {
'yes, I\'m sure': function() {
$(this).dialog('close');
doLoad(); doLoad();
}, dismiss();
'hmm, not really': function() { });
$(this).dialog('close'); elmts.cancelButton.click(function() {
} dismiss();
}
}); });
} else { } else {
doLoad(); doLoad();