fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor editing improvements.
[redakcja.git]
/
src
/
redakcja
/
static
/
js
/
wiki
/
loader.js
diff --git
a/src/redakcja/static/js/wiki/loader.js
b/src/redakcja/static/js/wiki/loader.js
index
e9cf2b1
..
adc2cb4
100644
(file)
--- a/
src/redakcja/static/js/wiki/loader.js
+++ b/
src/redakcja/static/js/wiki/loader.js
@@
-119,6
+119,17
@@
$(function() {
CurrentDocument.active = new Date();
});
CurrentDocument.active = new Date();
});
+ $(window).keydown(function(e) {
+ if (e.ctrlKey || e.metaKey) {
+ switch (e.key) {
+ case 's':
+ e.preventDefault();
+ $("#save-button").click();
+ break;
+ }
+ }
+ });
+
console.log("Fetching document's text");
$(document).bind('wlapi_document_changed', function(event, doc) {
console.log("Fetching document's text");
$(document).bind('wlapi_document_changed', function(event, doc) {