Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [SOLVED] Required input fields' changing

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[SOLVED] Required input fields' changing

More
11 years 1 month ago - 11 years 3 weeks ago #4572 by meroving
Hello,
On an ads upload if i didn't fill every required fields adsmanager notice me that some fields are required. Thats working well. Also that Adsmanager write a
style="background-color: red; background-position: initial initial; background-repeat: initial initial;
into the required and empty input fields.
I would like to change that feature for a class for example:
class="required"
In which file could i rewrite this?
Thank you for your help!
Regards, Laszlo (Adsmanager Gold edition)
Last edit: 11 years 3 weeks ago by loic.
The following user(s) said Thank You: adarr
More
11 years 4 weeks ago #4580 by loic
Replied by loic on topic Required input fields' changing
Hello,

This part of the code is a little difficult, but you can modify it.

First, i advice you to create an override of the details view, then go to the 'submitbutton' javascript function, line 585:

In this function, you will find those lines:
me[i].style.background = "red";
or
elem.style.background = "red";

The variable name before '.style.background' may change.

You just need to replace those lines by this:
{variable_name}.className = {variable_name}.className + ' required';

So in the two exemple above, you need to write the code like this:
me[i].className = me[i].className + ' required';
or
elem.className = elem.className + ' required';

I hope my explication is understandable :)
The following user(s) said Thank You: meroving, adarr
More
11 years 4 weeks ago #4589 by meroving
Replied by meroving on topic Required input fields' changing
Hello,

First thank you for your fast response.
Your explanation is well understandable just i cannot find the proper file.

I see components / com_adsmanager / views / details / view.html.php and
components / com_adsmanager / views / details / tmpl / default.php but in these files there are no any line you mentioned.

Could you specify where are these files?

Regards, Laszlo
The following user(s) said Thank You: adarr
More
11 years 4 weeks ago #4614 by loic
Replied by loic on topic Required input fields' changing
Hello,

My bad, I made an error.

It's in the edit view, beginning at line 585.

You can find the file in 'components/com_adsmanager/views/edit/tmpl/default.php'.
The following user(s) said Thank You: meroving, adarr
More
11 years 3 weeks ago #4639 by meroving
Replied by meroving on topic Required input fields' changing
Great! Thank you for your help. This is working well and smoothly :)

Have a nice day!
The following user(s) said Thank You: adarr
More
11 years 3 weeks ago #4652 by loic
Replied by loic on topic Required input fields' changing
Great :), have a nice day.
The following user(s) said Thank You: adarr
Time to create page: 0.124 seconds
Powered by Kunena Forum