MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / showConfirm

Function showConfirm

static/js/codemirror/keymap/vim.js:1997–2005  ·  view source on GitHub ↗
(cm, text)

Source from the content-addressed store, hash-verified

1995 }
1996 }
1997 function showConfirm(cm, text) {
1998 if (cm.openConfirm) {
1999 cm.openConfirm('<span style="color: red">' + text +
2000 '</span> <button type="button">OK</button>', function() {},
2001 {bottom: true});
2002 } else {
2003 alert(text);
2004 }
2005 }
2006 function makePrompt(prefix, desc) {
2007 var raw = '';
2008 if (prefix) {

Callers 2

parseQueryFunction · 0.85
VimFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected