fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8f049b6
)
bugfix
master
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 5 May 2025 11:04:10 +0000
(13:04 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 5 May 2025 11:04:10 +0000
(13:04 +0200)
src/redakcja/static/js/wiki/base.js
patch
|
blob
|
history
diff --git
a/src/redakcja/static/js/wiki/base.js
b/src/redakcja/static/js/wiki/base.js
index
3ee92c4
..
574dd59
100644
(file)
--- a/
src/redakcja/static/js/wiki/base.js
+++ b/
src/redakcja/static/js/wiki/base.js
@@
-250,7
+250,7
@@
/* bind buttons */
function dataUiAction(elem) {
- var action = $(
this
).attr('data-ui-action');
+ var action = $(
elem
).attr('data-ui-action');
console.log("Button pressed, action: ", action);
try {
@@
-265,7
+265,7
@@
$('button[data-ui-action]', self.$elem).click(function(event) {
event.preventDefault();
dataUiAction(this);
- }).on('keydown'
)
, function(event) {
+ }).on('keydown', function(event) {
if (event.key == 'Enter') {
event.preventDefault();
dataUiAction(this);