Skip to content

Commit

Permalink
use async confirm in wq/app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Apr 4, 2017
1 parent 0915cde commit 50a3605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xlsconv/templates/edit.html
Expand Up @@ -14,7 +14,7 @@ <h1>{{^id}}Add{{/id}}{{#id}}Edit{{/id}} [[form.title]]</h1>
{{#page_config.can_delete}}
<form action="{{svc}}/[[form.urlpath]]/{{id}}" method="post" data-ajax="false"
data-wq-json="true" data-wq-background-sync="false"
onsubmit="return confirm('Are you sure you want to delete this record?');">
onsubmit="return require('wq/app').confirmSubmit(this, 'Are you sure you want to delete this record?');">
{{>csrf}}
<input type=hidden name="_method" value="DELETE">
<button type="submit" data-icon="delete" class="ui-btn-right">
Expand Down
2 changes: 1 addition & 1 deletion xlsconv/templates/list.html
Expand Up @@ -51,7 +51,7 @@ <h1>[[form.title]] List{{#parent_id}} for {{parent_label}}{{/parent_id}}</h1>
</div>
<div class="ui-block-b">
<button type="button" data-icon="delete"
onclick="if(confirm('Empty Outbox?'))require('wq/app').emptyOutbox();">
onclick="require('wq/app').emptyOutbox(true);">
Discard
</button>
</div>
Expand Down

0 comments on commit 50a3605

Please sign in to comment.