-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit Subscription form (front-end) lets you clear the value of required fields #195
Comments
👍 |
@raamdev @jaswsinc If you could create an outline for this, I'll be happy to work on it. :) |
Next Actions
|
Referencing: http://alxlit.name/bootstrap-chosen/ |
@jaswsinc Is the code supposed to look like this? I tried testing it on my site but nothing was changed. :( What am I missing? $('.manage-sub-form form tr.manage-sub-form-status select').chosen($.extend({}, chosenOps, {allow_single_deselect: false}));
$('.manage-sub-form form tr.manage-sub-form-deliver select').chosen($.extend({}, chosenOps, {allow_single_deselect: false})); Also, I'm not seeing any |
The |
Looks great, yes.
Whenever you tested did you have the Simple Templates enabled in Comment Mail? Or the Advanced Templates? If you haven't updated the Advanced Templates yet, you might not see the changes. Also, keep in mind that I haven't tested this change myself yet. I'm outlining, and it should work; well, because I want it to (code is forced to do as I wish, LOL). However, there are times when my magic powers are not working right. So if that's the case (i.e., just not working), give me another shout :-) |
I tested this just now for Comment Mail Pro:
Not sure what I'm missing |
Thanks Kristine! :-) Hmm, it looks like this option may not do what I thought. I suppose I should have thought about the name of this option some more. Now that I'm looking at it again, I think what this controls is the behavior associated with only single option; i.e., if there were only one option in the dropdown, it would allow you to enable/disable the close icon for that specific scenario. If that's the case, then that explains why it is not working for you like I thought it would. Still, it's good that you made that change, because we don't want it enabled for that case either. Now, to get this resolved, let's just use some CSS.
|
I did this but it's not hiding the However, if I try to disable it for |
Cool! :-) Nice work. If that's what works then let's go with it. If you can update the PR here and make this change in the lite version also, then we can merge this enhancement in. wpsharks/comment-mail-pro#45 |
@jaswsinc Can you help me with this please? :) #195 (comment) cc @raamdev |
That CSS file is loaded from a CDN and so you cannot edit it directly.
It should work in that file, because that file is loaded after the base copy from the CDN. You might need to use |
Next Lite Release Changelog:
|
Next Pro Release Changelog:
|
Comment Mail v160213 has been released and includes changes from this GitHub Issue. See the release announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#195). |
When editing a subscription on the front-end, the Status and Deliver fields have a little "X" in them that allows you to clear the value of that field. This doesn't make sense, since those fields are required and there is no reason to empty them.
Note that this is purely a UI issue--if you clear the fields and try to update the subscription, you are properly informed that you must select a value for those fields.
The text was updated successfully, but these errors were encountered: