← Back to team overview

dhis2-devs team mailing list archive

Re: DHIS header d2HeaderBar

 

Hi Mark,

Here is the basic structure of our code attached. To run the app, go
through readme to setup nginx. we have a textarea in the app. Try typing
enter in that textarea and see if it redirects. Thanks in advance for
looking into the app and helping us out.

Thanks and Regards,
Sultan Ahamar.

On Tue, Apr 19, 2016 at 8:04 PM, Mark Polak <mark@xxxxxxxxx> wrote:

> Hey Sultan,
>
> When the apps menu is open and the search field is focused and enter is
> pressed it should navigate to the first item. Which seems what it does
> currently, however it shouldn't do it when other parts of the page have
> focus.
>
> It sounds like the field search-box incorrectly has focus, but if it also
> does so when the text-area has focus it might be a bug (what browser are
> you using?)
>
> Is this reports app anything you can share so i can have a more detailed
> look? I haven't seen this behaviour elsewhere yet. You shouldn't have to
> close it programatically for starters.
>
> Regards,
>
> Mark
>
> On Tue, Apr 19, 2016 at 11:03 AM, Sultanahamar Mohammad <
> sultanm@xxxxxxxxxxxxxxxx> wrote:
>
>> Hi Team,
>>
>> We are using d2HeaderBar in our custom app. We have a textarea in our app
>> and when we press enter in that or anywhere in document, app is redirecting
>> to dashboard page.  Without our knowledge, menu state is set open by
>> default, we had to close it programatically. To fix this, we have to add
>> this line to fix it temporarily.
>>
>> dhis2.menu.mainAppMenu.closeAll();
>>
>>
>>
>> This is how we are including header bar in our app.
>>
>> angular.module('Reports', ['ngResource', 'ngRoute', 'ngCookies', 'd2HeaderBar']);
>>
>>
>> and in html we are just using the tag and the scripts
>>
>> <d2-header-bar class="noprint"></d2-header-bar>
>>
>>
>> <script>
>>    window.dhis2 = window.dhis2 || {};
>>    dhis2.settings = dhis2.settings || {};
>>    dhis2.settings.baseUrl = '..';
>> </script>
>> <script type="text/javascript" src="/dhis-web-commons/javascripts/dhis2/dhis2.translate.js"></script>
>> <script type="text/javascript" src="/dhis-web-commons/javascripts/dhis2/dhis2.menu.js"></script>
>> <script type="text/javascript" src="/dhis-web-commons/javascripts/dhis2/dhis2.menu.ui.js"></script>
>> <link type="text/css" rel="stylesheet" href="/dhis-web-commons/font-awesome/css/font-awesome.min.css"/>
>> <link type="text/css" rel="stylesheet" media="screen" href="/dhis-web-commons/css/menu.css">
>>
>>
>>
>> Could you please let us know on if we are missing out anything.
>> *Note*: There is no issue in header bar. we are able to see it right and
>> it is functioning properly.
>>
>>
>>
>>
>> Thanks and Regards,
>> Sultan Ahamar.
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Regards,
>
>
> Mark Polak
> Software developer, DHIS 2
> University of Oslo
> http://www.dhis2.org <https://www.dhis2.org/>
> mark@xxxxxxxxx
>

Follow ups

References