dataCenter.rules[item.isDefault ? 'enableDefault' : 'select'](item, function(data, xhr) { if (data && data.ec === 0) { self.reselectRules(data); self.state.rules.setChanged(item.name, false); self.setState({}); self.triggerRulesChange('save'); if (self.state.disabledAllRules && confirm('All rules are disabled, do you want to enable them?')) { dataCenter.rules.disableAllRules({disabledAllRules: 0}, function(data, xhr) { if (data && data.ec === 0) { self.state.disabledAllRules = false; self.setState({}); } else { util.showSystemError(xhr); } }); } } else { util.showSystemError(xhr); } });
!confirm('The name `' + name + '` already exists, whether to overwrite it?')) { return;
if (!list.hasConflict || confirm('Conflict with existing content, whether to continue to overwrite them?')) { data = {}; list.forEach(function(item) { if (!list.hasConflict || confirm('Conflict with existing content, whether to continue to overwrite them?')) { data = {}; list.forEach(function(item) {
data[item.name] = item.value; }); if (!hasConflict || confirm('Conflict with existing content, whether to continue to overwrite them?')) { events.trigger(this.isValues ? 'uploadValues' : 'uploadRules', data); if (!confirm('Are you sure to delete \'' + item.name + '\'.')) { return; </div> <div className="modal-footer"> <button type="button" className="btn btn-primary" disabled={noData} onClick={this.confirm} data-dismiss="modal">Confirm</button> <button type="button" className="btn btn-default" data-dismiss="modal">Close</button> </div>
customConfirmDeleteRow(next, dropRowKeys) { const dropRowKeysStr = dropRowKeys.join(','); if (confirm(`Are you sure you want to delete ${dropRowKeysStr}?`)) { // If the confirmation is true, call the function that // continues the deletion of the record. next(); } }
(function ($, window) { window.editor; var init = function(){ setDefault(); bindEvent(); } var setDefault = function(){ } var bindEvent = function(){ $('#postListBody').on('click','.delete', function(evt){ evt.preventDefault(); if(!confirm('您是否确定要删除该博客?')){return;} var id = $(this).data('id'); $.post('/dashboard/post/aj_post_delete', {id:id},function(res){ if( res.code == 0){ alert('删除成功!'); window.location.reload(); }else{ alert(res.message || '删除失败,请稍后再试!') } },"JSON") }); } init(); })(jQuery, window)
if(!confirm('您是否确定要删除该用户?')){return;}
n.forEach(function(t) { var n = e[t], r = document.createElement("div"); r.className = "file"; var o = document.createElement("a"); o.className = "open", o.href = location.pathname + "?id=" + t, o.appendChild(document.createTextNode(n.name || t)), o.title = "Date: " + n.updated.substring(0, 19).replace("T", " "), r.appendChild(o); var s = document.createElement("a"); s.className = "remove", s.innerHTML = "×", s.title = 'Delete "' + n.name + '"', s.onclick = function(e) { e.stopPropagation(), e.preventDefault(), confirm('Are you sure you want to delete document "' + n.name + '"?\n\nThis action cannot be undone') && app.removeOnline(n) }, r.appendChild(s), i.appendChild(r) })
/** * 绑定删除 */ deleteBind() { $('.deleteLnk').click(() => { if (confirm(this.opts.LN.interface.index.deleteTips)) { return true; } else { return false; } }) }
function n() { if (!confirm("Are you sure you want to report this Comments?")) return !1; var e = H(this).closest(".ds-post-self"); return R.post("posts/report", { post_id: e.attr("data-post-id") }), alert("Thanks for your feedback!"), !1 }
handleRemoveDocument(mutate) { const { doc } = this.props; if (confirm('Are you sure? This is permanent!')) { this.setState({ mutation: 'removeDocument' }, () => { mutate({ variables: { _id: doc._id, }, }); }); } }
$('form#changelist-form button[name="index"]').click(function(event) { if (list_editable_changed) { return confirm(gettext("You have unsaved changes on individual editable fields. If you run an action, your unsaved changes will be lost.")); } });
createActionButton('Built-in Confirm Dialog', function () { if (typeof confirm === 'function') { confirm('You selected confirm'); } }, 'built_in_confirm');
n.forEach(function(t) { var n = e[t], r = document.createElement("div"); r.className = "file"; var o = document.createElement("a"); o.className = "open", o.href = location.pathname + "?id=" + t, o.appendChild(document.createTextNode(n.name || t)), o.title = "Date: " + n.updated.substring(0, 19).replace("T", " "), r.appendChild(o); var s = document.createElement("a"); s.className = "remove", s.innerHTML = "×", s.title = 'Delete "' + n.name + '"', s.onclick = function(e) { e.stopPropagation(), e.preventDefault(), confirm('Are you sure you want to delete document "' + n.name + '"?\n\nThis action cannot be undone') && app.removeOnline(n) }, r.appendChild(s), i.appendChild(r) })
function n() { if (!confirm("Are you sure you want to report this Comments?")) return !1; var e = H(this).closest(".ds-post-self"); return R.post("posts/report", { post_id: e.attr("data-post-id") }), alert("Thanks for your feedback!"), !1 }