Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Gabrielsson committed May 31, 2024
1 parent da22083 commit 0ecb426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nightly/front.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,9 @@ var dom = {
alert(value)
},

confirm: function () {
return confirm('Continue?')
confirm: function (element) {
var value = element.getAttribute('confirmtext') || ''
return confirm(value)
},

focus: function (element, value) {
Expand All @@ -383,7 +384,6 @@ var dom = {
},

blur: function (element, value) {
console.dir(element)
var target = value ? dom.get(value) : element
if (target) target.blur()
},
Expand Down Expand Up @@ -912,7 +912,7 @@ var app = {

if (onclickif) {
var val = onclickif.value.split(':'),
ret = app.call(val[0], val[1])
ret = app.call(val[0], [link, val[1]])
if (!ret) return
}

Expand Down

0 comments on commit 0ecb426

Please sign in to comment.