mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
wip card description save
This commit is contained in:
parent
84d51393e4
commit
0f65e06338
6 changed files with 2380 additions and 4 deletions
|
@ -23,7 +23,11 @@ BlazeComponent.extendComponent({
|
|||
this.data().setDescription(description);
|
||||
},
|
||||
// Pressing Ctrl+Enter should submit the form
|
||||
'keydown form textarea'(evt) {
|
||||
// was keydown
|
||||
// extraevent for saving input. buffer of keydown vs buffer time
|
||||
'keyup form textarea'(evt) {
|
||||
const description = this.getInput()[0].value;
|
||||
this.data().setDescription(description);
|
||||
if (evt.keyCode === 13 && (evt.metaKey || evt.ctrlKey)) {
|
||||
const submitButton = this.find('button[type=submit]');
|
||||
if (submitButton) {
|
||||
|
|
|
@ -1710,10 +1710,16 @@ BlazeComponent.extendComponent({
|
|||
EscapeActions.register(
|
||||
'detailsPane',
|
||||
() => {
|
||||
//save description editing on EscapeAction
|
||||
if (document.getElementsByClassName("editor js-new-description-input").item(0))
|
||||
{
|
||||
Utils.getCurrentCard().setDescription(document.getElementsByClassName("editor js-new-description-input").item(0).value);
|
||||
}
|
||||
if (Session.get('cardDetailsIsDragging')) {
|
||||
// Reset dragging status as the mouse landed outside the cardDetails template area and this will prevent a mousedown event from firing
|
||||
Session.set('cardDetailsIsDragging', false);
|
||||
Session.set('cardDetailsIsMouseDown', false);
|
||||
|
||||
} else {
|
||||
// Prevent close card when the user is selecting text and moves the mouse cursor outside the card detail area
|
||||
Utils.goBoardId(Session.get('currentBoard'));
|
||||
|
|
1180
i18n/de.i18n.json
Normal file
1180
i18n/de.i18n.json
Normal file
File diff suppressed because it is too large
Load diff
1181
i18n/en.i18n.json
Normal file
1181
i18n/en.i18n.json
Normal file
File diff suppressed because it is too large
Load diff
6
package-lock.json
generated
6
package-lock.json
generated
|
@ -691,9 +691,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"caniuse-lite": {
|
||||
"version": "1.0.30001332",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001332.tgz",
|
||||
"integrity": "sha512-10T30NYOEQtN6C11YGg411yebhvpnC6Z102+B95eAsN0oB6KUs01ivE8u+G6FMIRtIrVlYXhL+LUwQ3/hXwDWw=="
|
||||
"version": "1.0.30001334",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001334.tgz",
|
||||
"integrity": "sha512-kbaCEBRRVSoeNs74sCuq92MJyGrMtjWVfhltoHUCW4t4pXFvGjUBrfo47weBRViHkiV3eBYyIsfl956NtHGazw=="
|
||||
},
|
||||
"chai": {
|
||||
"version": "4.3.6",
|
||||
|
|
|
@ -6,6 +6,10 @@ echo "Note: If you use other locale than en_US.UTF-8 , you need to additionally
|
|||
echo " with 'sudo dpkg-reconfigure locales' , so that MongoDB works correctly."
|
||||
echo " You can still use any other locale as your main locale."
|
||||
|
||||
export $(cat .env)
|
||||
|
||||
export OAUTH2_REQUEST_PERMISSIONS="openid profile email wekan_scope"
|
||||
|
||||
#Below script installs newest node 8.x for Debian/Ubuntu/Mint.
|
||||
|
||||
function pause(){
|
||||
|
@ -111,6 +115,7 @@ do
|
|||
|
||||
"Run Meteor for dev on http://localhost:4000")
|
||||
WRITABLE_PATH=.. NODE_OPTIONS="--max_old_space_size=4096" WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=http://localhost:4000 meteor run --exclude-archs web.browser.legacy,web.cordova --port 4000
|
||||
|
||||
break
|
||||
;;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue