Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: maple on November 06, 2012, 12:35:14
-
Hello,
into Media Manager, when I try rename the filename, I can't insert an hyphen "-". It's deleted automatically.
Thanks
-
Use dashes.
-
Middle dash "-" doens't work. The examples pictures, they're a lot of dashes like "machu-picchu.jpg", "taj-mahal.jpg" and so on.
I can upload a photo with middle dashes correctly, but I can't insert a middle dash renaming a filename from Media manager.
-
Fixed!
Do this to fix it:
Open components/com_emedia/js/emedia.js
Go to line 105
Replace this:
cleaned = cleaned.replace(/[^_a-zA-Z0-9]/g, "");
With this:
cleaned = cleaned.replace(/[^\-\_a-zA-Z0-9]/g, "");
Save the file and hit control+f5 in your browser to refresh its cache. It should work fine now.
-
Perfect, works well!
Thanks a lot!
pd: perhaps could be updated for the next revision.
-
I already updated Elxis 4.0, this is why I wrote fixed :)
-
I already updated Elxis 4.0, this is why I wrote fixed :)
Ooooooooh ;D