Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Elxis 5.5 Calypso supports 2 factor authentication login with e-mail or SMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
I can't insert an hyphen - Media Manager [SOLVED]
« previous
next »
Print
Pages: [
1
]
Author
Topic: I can't insert an hyphen - Media Manager [SOLVED] (Read 5427 times)
maple
Full Member
Posts: 192
I can't insert an hyphen - Media Manager [SOLVED]
«
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
«
Last Edit: November 06, 2012, 18:16:02 by maple
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: I can't insert an hyphen - Media Manager
«
Reply #1 on:
November 06, 2012, 13:14:08 »
Use dashes.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
maple
Full Member
Posts: 192
Re: I can't insert an hyphen - Media Manager
«
Reply #2 on:
November 06, 2012, 13:55:29 »
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.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: I can't insert an hyphen - Media Manager
«
Reply #3 on:
November 06, 2012, 18:07:08 »
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.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
maple
Full Member
Posts: 192
Re: I can't insert an hyphen - Media Manager
«
Reply #4 on:
November 06, 2012, 18:15:27 »
Perfect, works well!
Thanks a lot!
pd: perhaps could be updated for the next revision.
Logged
datahell
Elxis Team
Hero Member
Posts: 10356
Re: I can't insert an hyphen - Media Manager [SOLVED]
«
Reply #5 on:
November 06, 2012, 18:39:48 »
I already updated Elxis 4.0, this is why I wrote
fixed
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
maple
Full Member
Posts: 192
Re: I can't insert an hyphen - Media Manager [SOLVED]
«
Reply #6 on:
November 06, 2012, 18:48:29 »
Quote from: datahell on November 06, 2012, 18:39:48
I already updated Elxis 4.0, this is why I wrote
fixed
Ooooooooh
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
I can't insert an hyphen - Media Manager [SOLVED]