User tests: Successful: Unsuccessful:
Pull Request for Issue # .
A solution for: #10761
The issue was created by "event.which === 188" which means ',' on keyup event but I changed it to 2 different events. Keyup to check if enter is pressed and keypress to check if ',' is pressed while typing in English. An event listener is changed to two event listener and a function.
I tested code with multiple languages such as Hebrew, Persian, Arabic and ... to see if there is a key charCode equal to 44 among their numbers and alphabet which would cause issues and other key code tests and typing test in Joomla tag field to make sure there is no conflict. I found out that 44 is probably an unique charCode. The code passed all tests successfully
There is an issue in typing tags in different languages. Pressing ',' in tags means you are done and it will be saved, but it's only for English not other languages such as Arabic, Persian, Hebrew and ... which was bothering me and many other Joomla users. So that I made changes to solve this problem. Now, you can press ',' but it submits tag just if you are typing in English language and if you are typing in other languages continue as long as you want and press enter at the end. Tested in many languages and everything works fine.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Layout |
Category | Layout | ⇒ | Layout Tags |
Category | Layout com_tags | ⇒ | Layout |
From code review: I suggest to not deleting blank lines in more cases, before comments and after closing parentheses such as }
or );
.
I didn't. It had been done previously. This time I just copied this version and changed two parts, which is described in the last commit here.
Take a look at the red lines at https://github.com/joomla/joomla-cms/pull/12366/files
OK that was a mistake because I didn't copy and past properly. It's resolved now,
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-11-21 06:23:46 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | Closed | ⇒ | Pending |
Status | Pending | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/12366
closed in Favor of #18768.
Hi, IMO comma should not be added to tag when there is only a few letters (less that 3).
Can you test and add this changes: