augustyd/enchancment/issue#98 (#155)
issue#98 save button when user creates new message and has unsaved data in old message Co-authored-by: augustyd <kainytsugua.kerad@gmail.com> Reviewed-on: #155 Reviewed-by: Adam Bem <bema@noreply.example.com> Co-authored-by: Dariusz Augustyniak <augustyd@noreply.example.com> Co-committed-by: Dariusz Augustyniak <augustyd@noreply.example.com>
This commit is contained in:
@@ -309,9 +309,11 @@
|
||||
<div>Unsaved data<i class="r-exclamation"></i></div>
|
||||
<button>×</button>
|
||||
</div>
|
||||
<div class="body">You haven't saved your message! Any changes will be lost.<br>Do you want to continue?</div>
|
||||
<div class="body">You haven't saved your message!<br> Do you want to save it?</div>
|
||||
<div class="function">
|
||||
<button>Yes</button>
|
||||
|
||||
<button type = "button" onclick = "updateData()" value = "Display">Save</button>
|
||||
|
||||
<button>No</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -155,6 +155,7 @@ function callMethodByName(methodObject){
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function updateData(){
|
||||
var updatedJson = generateJson();
|
||||
const dataSaved = function () {
|
||||
|
||||
Reference in New Issue
Block a user