How is the exit behavior controlled after a plot is complete in CollectEarth?

  • Asked
  • Active
  • Viewed 4358 times
0

How is the exit behavior controlled after a plot is complete in CollectEarth?

0

Accepted answer

You cannot control it, it always does that.

If you need to change it so that it doesn't do anything after the data is saved then you will have to modify the earth.js file inside the CEP in the folder earthFiles/js (as always open the CEP file with WinRAR/WinZIP/any compression software) :

if (json.validData) {
    showSuccessMessage(json.message);
    forceWindowCloseAfterDialogCloses($("#dialogSuccess"));
}

So you will need to comment that forceWindowCloseAfterDialogCloses method by adding a couple of backslashes like so:

//forceWindowCloseAfterDialogCloses($("#dialogSuccess"));

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.