Skip to content

Instantly share code, notes, and snippets.

@garbray
Created June 20, 2013 15:41
Show Gist options
  • Save garbray/5823895 to your computer and use it in GitHub Desktop.
Save garbray/5823895 to your computer and use it in GitHub Desktop.
rEx.create($('body'), 'window', 'modalWindow', {
width: 300,
centered: true,
style: 'default',
html: '<p>You only need to skim this term once in the article.</p><p>Is this different information like an additional gene name that you have found?</p><p>if so, then click "Continue" to save this skim, if it is not, then click "Cancel" and move onto the next concept</p>',
modal: true,
maskOpacity: 2,
clickOutside: true,
buttons: [
{
text: "Cancel",
width: 140,
id: "cancel-modal-btn",
style: "action",
handler: {
click: function() {
rEx.destroy('alertWindow');
}
}
},
{
text: "Continue",
width: 140,
id: "continue-modal-btn",
style: "action",
handler: {
click: function() {
rEx.destroy('alertWindow');
}
}
}
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment