Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dialogCommandHandler(command)
- {
- if (command.label === "Yes") {
- saveCharInfo()
- }
- else
- {
- return;
- }
- }
- function message(message) {
- var msgBox = new Windows.UI.Popups.MessageDialog(message);
- msgBox.commands.append(new Windows.UI.Popups.UICommand("Yes", dialogCommandHandler));
- msgBox.commands.append(new Windows.UI.Popups.UICommand("No", dialogCommandHandler));
- msgBox.showAsync();
- }
- function testSaveCharInfo()
- {
- charName = document.getElementById("char_name");
- if (charName.value.length === 0)
- {
- alert("Fill in a name first");
- }
- else
- {
- message("Are you sure you want to save?\nYou can't change this later on without resetting your character");
- }
- }
- function saveCharInfo()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement