Commit Graph

79 Commits

Author SHA1 Message Date
Michael Voříšek
332c165d28 Fix some basic JS CS (#9328)
* fix "nonblock-statement-body-position" (fixed already)

* fix "comma-dangle"

* fix "no-regex-spaces"

* fix "new-parens"

* fix "object-curly-newline"

* fix "object-property-newline"

* fix "spaced-comment" semimanually

* fix "no-constant-condition" manually

* fix "unicorn/no-hex-escape"

* fix "unicorn/escape-case"

* fix "quote-props"

* fix "no-whitespace-before-property" - fix bug/typo

* fix "unicorn/empty-brace-spaces"

* fix "keyword-spacing"

* fix "dot-notation"

* fix "no-return-assign" manually

* fix "padding-line-between-statements"

* fix "key-spacing"

* fix "no-else-return" semimanually

* fix some "no-undef"

* fix case cs

* Revert "fix "padding-line-between-statements""

* improve switch/case format I.

* improve switch/case format II.

regex: (^ *(break|return).*)\n *(\n)

* fix safe "eqeqeq"

* fix "radix"

* fix v3.49.0 CS (static providers)

* fix "string_implicit_backslashes" in php files

* fix comments align

* fix test static providers

* fix stan

* disable "final_internal_class" rule
2024-02-06 08:28:19 +01:00
Michael Voříšek
ecd2796622 Fix JS whitespace CS (#9327)
* fix "no-extra-semi"

* fix "object-curly-spacing"

* fix "block-spacing"

* fix "padded-blocks"

* fix "space-before-blocks"

* fix "space-before-function-paren"

* fix "operator-linebreak"

* fix "space-unary-ops"

* fix "space-infix-ops"

* fix most "brace-style"

* fix "curly"

* fix most "brace-style" II

* fix "no-multi-spaces"

* search regex: (?<=\n)( +)(?! ).*\n(?!\1)( +)(&&|\|\||\()

* search regex: (?<=\n)( +)(?! |\*/).*(?<!;)\n(?!\1)( +)(?! |\}|\]|\)|\.)

* fix mostly "brace-style" /w allowSingleLine: false

* fix cs

* search regex: (//|/\*).*\n\s+\{
2024-01-30 07:50:02 +01:00
Michael Voříšek
2643be3eaa Fix single quotes CS (#9283)
* Fix "single_quote"

* fix "escape_implicit_backslashes"

* fix typo from f363481c

* fix single quotes in JS

* fix some minor JS CS

* fix CS v3.45.0
2023-12-31 16:36:55 +01:00
Michael Voříšek
740267fac0 Lint JS files using eslint and normalize JS indentation (#9280)
* Lint JS using eslint

* Fix "comma-spacing"

* Fix "semi"

* Fix indent to unified 4 spaces as for PHP

* ignore symlinked public_html/* files
2023-12-23 17:08:32 +01:00
Michael Voříšek
28c778b7a0 Modernize more CS III (#9270)
* fix "single_trait_insert_per_statement"

* fix "empty_loop_condition"

* fix "backtick_to_shell_exec"

* fix "phpdoc_to_comment"

* fix "no_empty_statement"

* fix "heredoc_to_nowdoc"

* fix "class_reference_name_casing"

* fix "align_multiline_comment"

* fix "heredoc_indentation"

* fix "constant_case"

* fix "single_line_comment_style"

* fix "no_null_property_initialization"

* fix "standardize_increment"

* fix "no_unneeded_control_parentheses"

* fix missing NL after "<?php"

* fix php in *.sh files too

* fix trailing spaces from all text files

* fix "explicit_indirect_variable"

* Revert "fix "align_multiline_comment""

This reverts commit 42e584f8e3.

* fix "align_multiline_comment" properly

* Revert "fix trailing spaces from all text files" - diff files only

* Revert "Revert "fix trailing spaces from all text files" - diff files only"

This reverts commit 2101c2a3a3.

* rm useless "setup-php" config
2023-12-18 07:46:51 +01:00
Aleksander Machniak
e01ec25aac Use setTimeout() without window. prefix consistently 2021-07-14 13:18:58 +02:00
Sebastian Abshoff
362cd20b78 Reuse clonerow event to update toggle within active search 2020-10-04 15:08:49 +02:00
johndoh
3af6303ad7 Remove depreciated jquery.trim function (#7371) 2020-05-04 08:27:10 +02:00
Aleksander Machniak
fa34e5ebcd Fix bug where a new saved search added after removing all searches wasn't added to the list (#7061) 2019-11-24 08:15:48 +01:00
Aleksander Machniak
8d81df7dc3 Fix bug where a new contact group added after removing all groups from addressbook wasn't added to the list 2019-11-22 10:11:45 +01:00
Aleksander Machniak
dbc2b5e11c Fix bug where deleting a saved search in addressbook caused display issue on sources/groups list (#7061)
also remove dead code.
2019-11-22 09:41:25 +01:00
johndoh
3a40f6cd91 Add expand_all/collapse_all treelist methods (#6860)
* add expand_all()/collapse_all() treelist methods
* prevent possible race condition in rcmail.folder_collapsed()
2019-08-10 08:46:33 +02:00
Aleksander Machniak
d646a10217 Add in_selection() to rcube_treelist_widget
So code working on all lists doesn't have to check widget type
to work with selection.
2019-05-20 11:33:14 +02:00
Aleksander Machniak
3719ce0653 Don't use :has selector 2019-05-05 11:01:16 +02:00
Aleksander Machniak
187b51fd82 Fix bug where parent entry could be selected when clicking on a virtual entry 2019-04-25 10:30:42 +00:00
Aleksander Machniak
57c67db029 Remove year(s) from copyright headers + some cleanup 2019-04-16 10:42:45 +02:00
Aleksander Machniak
f0811f6f50 DOn't use deprecated (and slow) selectors 2019-04-11 10:47:11 +02:00
Aleksander Machniak
b232886488 Properly cleanup on drag end in treelist widget 2019-03-08 12:25:28 +00:00
Aleksander Machniak
743794f1d8 Treelist: Add possibility to not reset selection on reset() 2019-03-07 11:26:12 +00:00
Aleksander Machniak
5f26d9bf34 Prevent "calling draggable before initailization" errors
Elastic skin disables dragging on folders list, so we have to check
if it's still draggable before we call draggable() again. Otherwise
it will throw an error.
2017-12-27 09:13:41 +01:00
Aleksander Machniak
4a5941c24b Fix get_next() for case when the node is last in the tree branch 2017-12-10 19:37:34 +01:00
Aleksander Machniak
d815525c6a Merge branch 'master' into dev-elastic 2017-10-20 13:34:25 +02:00
Aleksander Machniak
459cc7ab6d Fix bug where removing the last subfolder did not hide toggle button on its parent record (#6007) 2017-10-20 10:43:56 +02:00
Aleksander Machniak
19ad6b15e8 Add (unified) get_next/get_prev/get_single_selection methods for list and treelist widgets 2017-09-12 18:06:29 +02:00
ka7
9a35768c26 spelling fixes (#5690) 2017-03-12 12:14:19 +01:00
Aleksander Machniak
c13119b81c Fix bug where folders list would scroll to top when clicking on subscription checkbox (#5447) 2016-09-28 20:36:14 +02:00
Aleksander Machniak
4bf4afec68 Fix so folders list is scrolled to the selected folder on page load (#5424) 2016-09-02 13:59:01 +02:00
Aleksander Machniak
7caa9f5f50 Fix error on dragging when search in treelist is active 2015-11-05 15:40:10 +01:00
Aleksander Machniak
1484d5fb7f Fix resetting search input events when the treelist is re-initialized, some CS improvements 2015-10-06 11:14:43 +02:00
Aleksander Machniak
e524680a13 Fix 'last' property of search event 2015-10-04 13:13:07 +02:00
Thomas Bruederli
d17975c776 Do not re-append an existing node when re-rendering with childs 2015-03-12 19:52:06 +01:00
Thomas Bruederli
db6663b936 Update internal reference to treelist node contents after insert. Fixes some strange behavior in FF 3.6 2015-02-24 15:15:14 +01:00
Thomas Bruederli
ceee7eb110 Prevent folder selection changes if app is busy (#1490158) 2014-12-18 13:13:07 +01:00
Aleksander Machniak
3d8745bd0b Fix drag-n-drop to folders expanded while dragging (#1490157) 2014-11-17 09:36:01 +01:00
Thomas Bruederli
7acda7a6f4 Also remove cloned search item from treelist 2014-09-11 12:48:13 +02:00
Thomas Bruederli
4a25b69828 Small tweaks for treelist interactions 2014-09-08 18:04:37 +02:00
Thomas Bruederli
3fb36a11fe Add option to focus a treelist widget on clicks to the container (#1489997) 2014-08-20 09:03:19 +02:00
Thomas Bruederli
48e340a829 Allow focussing treelist item checkboxes with tab and normal list navigation with cursor keys (#1489648) 2014-08-13 18:25:09 +02:00
Aleksander Machniak
e9ecd49f74 Added namespace filter in Folder Manager 2014-08-11 13:11:10 +02:00
Aleksander Machniak
ef4c478760 Reset search after folder creation/remove/rename 2014-08-08 13:36:33 +02:00
Aleksander Machniak
66233b76c8 Added folder searching in Folder Manager 2014-08-08 12:52:26 +02:00
Thomas Bruederli
00dd283999 Getter to detect if treelist widget is in search mode 2014-08-07 18:00:31 +02:00
Aleksander Machniak
2c0d3e1dd0 Fix drag-n-drop after folder move/create (#1489648) 2014-07-25 17:40:37 +02:00
Aleksander Machniak
3cb61e7528 Collapsible (and iconized) folders tree in folder manager (#1489648) 2014-07-16 11:08:11 +02:00
Aleksander Machniak
793fa9876a Remove leftover code - fixes js error 2014-07-03 08:47:49 +02:00
Aleksander Machniak
c6447e2ce2 Use treelist widget for folders list in Settings/Folders (#1489648) 2014-07-02 13:03:22 +02:00
Thomas Bruederli
50177172e4 Apply selection styles to clones search result items, too 2014-06-26 11:31:21 +02:00
Thomas Bruederli
0ebb250164 Minor optimization 2014-06-25 18:42:30 +02:00
Thomas Bruederli
dfc9d7f209 Mute clicks on virtual treelist item links (they need tabindex=0 in order to be focusable by keyboard though) 2014-06-24 14:19:36 +02:00
Thomas Bruederli
a6a66b687f Fix updating and re-sorting treelist nodes 2014-06-24 11:59:40 +02:00