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

Date Range Selector issue #139

Open
ghost opened this issue Apr 24, 2014 · 5 comments
Open

Date Range Selector issue #139

ghost opened this issue Apr 24, 2014 · 5 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2014

Every time I select “Today” in the date selector on dateRange field, it is not getting changed. For example, today is 24th — but when I select Today on this report, it will not be selected.

-- VARIABLE: { name: "range", display: "Range", type: "daterange", default: { start: "yesterday", end: "yesterday" }, format: "Y-m-d" }

Can you please suggest the solution for the same.

@jdorn
Copy link
Owner

jdorn commented Apr 24, 2014

I believe that's a bug with the change event not firing. If you change to some other date and then back to "Today" it should work.

@ghost
Copy link
Author

ghost commented May 21, 2014

I fixed the issue. It is because of the if condition in daterangepicker library: public/js/daterangepicker-1.3.2.js

Comment the if condition in Hide Function :

     hide: function (e) {
         this.container.hide();
        //if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate))
             this.notify();
         this.oldStartDate = this.startDate.clone();

@ghost ghost closed this as completed May 21, 2014
@ghost
Copy link
Author

ghost commented May 21, 2014

Hi Mr. @jdorn

How can I push the above fix, I am able to clone the repo but unable to push the changes, I got the below error:

git push origin master
ERROR: Permission to jdorn/php-reports.git denied to sreekanth-reddy-ila.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Can you please help me to push the fix.

@ghost ghost reopened this May 21, 2014
@jdorn
Copy link
Owner

jdorn commented May 23, 2014

Thanks for wanting to contribute. You need to fork the repository and submit a pull request in order to get fixes into the main project. Here's some info from GitHub about how to do this:

Forking - https://help.github.com/articles/fork-a-repo
Pull Requests - https://help.github.com/articles/using-pull-requests

@ghost
Copy link
Author

ghost commented May 26, 2014

Thanks @jdorn

Added pull request (#145) please review the changes.

Thanks,
Sreekanth

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

No branches or pull requests

1 participant