Skip to content
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

Set default business hours when adding a new business day #2684

Open
nicolaslimet opened this issue Sep 19, 2024 · 0 comments
Open

Set default business hours when adding a new business day #2684

nicolaslimet opened this issue Sep 19, 2024 · 0 comments

Comments

@nicolaslimet
Copy link

This user (https://secure.helpscout.net/conversation/2711088305/60579/) complains that when adding a new day, the default hours are shown but not set.

If the user adds a new day, and doesn't change the 9:00 - 17:00 default, the new day is not saved.

Can reproduce: yes

Fix (?):

change:

 jQuery(".gd-bh-add", this.$wrap).on("click", function(e) {
            $this.addSlot(jQuery(this));
            $this.onAddSlot();
            e.preventDefault();
        }); 

to:

jQuery(".gd-bh-add", this.$wrap).on("click", function(e) {
    $this.addSlot(jQuery(this));
    $this.onAddSlot();
    $this.handle24Hours(jQuery(this).closest('.gd-bh-item'));
    $this.setValue();
    e.preventDefault();
});

in add-listing.js line 522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants