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

Added DropDown Functionality in screener screen . RAXAJSS-311 #165

Merged
merged 13 commits into from Oct 3, 2012

Conversation

SidhiAgarwal
Copy link

Modules been dynamically added to the DropDown and changed the text and font of the modules added in the DropDown in Screener screen.

xtype: 'selectfield',
id: 'topbarSelectfield',
centered: true ,
value: 'screener' ,
Copy link
Contributor

Choose a reason for hiding this comment

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

is screener always the default?

Copy link
Contributor

Choose a reason for hiding this comment

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

screener would be the default here, but the listeners below should go into the actual toolbar file (otherwise we would have to add them in manually into each module)

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops- yes, value should be "screener" here.

Agreed on moving listeners

Copy link
Contributor

Choose a reason for hiding this comment

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

So add all of this into the toptoolbar.js file. We would ideally like to use this in other modules. Make the default value 'login' rather than 'screener', then inside this file, set the value to 'screener'.

var url = window.location.href;
var array = url.split('/');
var lastsegment = array[array.length-2];
if(lastsegment != Ext.getCmp('topbarSelectfield').getValue())
Copy link
Contributor

Choose a reason for hiding this comment

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

This works fine for an url like src/screener/ but eventually we will have src/screener/#somepageinscreener

Instead of splitting by /, check to see whether the url contains the topbar field value as a substring.

computer added 4 commits September 12, 2012 12:50
…l splitting , now instead of splitting the url its checking the indexOf the field , that whether it exists or not .
…SS-311 . Change the functionality of code by changing the splitting part of url to indexOf part .
…made the '--" in place of all unreal data , probably some backend work is required in this .
if(url.indexOf("Dashboard") >= 0)
{
if(Ext.getCmp('topbarSelectfield').getValue() == 'patientfacing') {
value: Ext.getCmp('topbarSelectfield').getValue();
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you get the value here, but not in any of the other if blocks?

@nathanleiby
Copy link
Contributor

@SidhiAgarwal will you have time today to update and merge with the latest code?

@ghost ghost assigned johnstoecker Sep 17, 2012
computer added 4 commits September 24, 2012 11:36
…SS-311

Changes made to clean up and for latest comment.
…S-311

Changes made to clean up and for latest comment.
…S-311

Changes made to clean up and for latest comment.
…S-311

Changes made to clean up and for latest comment.
@johnstoecker
Copy link
Contributor

Looks good, merging.

johnstoecker added a commit that referenced this pull request Oct 3, 2012
Added DropDown Functionality in screener screen . RAXAJSS-311
@johnstoecker johnstoecker merged commit 3b3c474 into Raxa:master Oct 3, 2012
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