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

TRUNK-3980: Add back button support for patient search page #315

Merged
merged 1 commit into from
May 22, 2013

Conversation

bhashitha
Copy link
Contributor

Browser back button for the patient search page, now displaying the previousely search resuts.

dkayiwa added a commit that referenced this pull request May 22, 2013
TRUNK-3980: Add back button support for patient search page
@dkayiwa dkayiwa merged commit 76d93ba into openmrs:master May 22, 2013

// Patient search doesn't support for Enter Key. So invoke keyup
// event with last character of searched text.
if (el.attr('id') === "findPatients") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like this in the generic widget, we need to do it in another way e.g use a widget property, what are you trying to solve?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes i fully agree that widget property is better!!!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wyclif,
I agree that hard coding this inside widget is not realy good. But do we really need a property to do this ? Because we already parse the id from the caller like new OpenmrsSearch("findPatients", ....etc. So, as I think we need a constant for string "findPatients" and we use it both at the caller and the widget.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First all, why are you doing this? Do you mean the back button wouldn't work on the findPatients page, if yes then there is another problem because it means the same thing can show up on another search page and who knows you will end up many ifs to check for the id for other searches

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previouse fix for the concept should supposed to be work for this as well. This is what you mean right. But the problem is there are some differents in the behaviour of those searches. findConcepts gives immediate results when click enter. But finPatient doesn't and also it breaks default search when click enter. If these two searches (and others as well) can support for result shoe when click enter, hopefully no modifications needs to openmrsSearch.js

RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants