mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
change syntax
This commit is contained in:
parent
7d33f13f54
commit
fccbe9f922
@ -2969,14 +2969,14 @@ define([
|
||||
UI.openCustomModal(m);
|
||||
};
|
||||
|
||||
function triggerEnter(selector, $context) {
|
||||
var triggerEnter = function (selector, $context) {
|
||||
$context.find(selector).on('keypress', function (event) {
|
||||
if (event.which === 13) { // enter
|
||||
event.preventDefault();
|
||||
$(this).trigger('click'); // the keypress event triggers the click event
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var addNewPadHandlers = function ($block, isInRoot) {
|
||||
// Handlers
|
||||
|
||||
Loading…
Reference in New Issue
Block a user