NetTalk Central

Author Topic: Popup windows difference between NT7 and NT8  (Read 5427 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Popup windows difference between NT7 and NT8
« on: November 21, 2014, 02:43:40 PM »
I am upgrading a web server application from NT 7.31 to NT 8.30.  In NT 8, popup windows have a different close window icon in the upper right hand corner.  My users prefer the plain “X” icon of NT 7, can I get that icon back?

When popup window calls another popup window, the resize window icon of the first window displays through the second popup window. See attached image. Clicking on the resize icon brings the window beneath to the forefront, which is not good. In NT7 the  resize icon did not display through the second window.

Thanks,
Robert Kolanko


[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Popup windows difference between NT7 and NT8
« Reply #1 on: November 25, 2014, 10:59:54 PM »
Hi Rob,

there's a file missing in the Ui-Lightness theme. I've re-instated it in the 8.33 build.
That X moving is because of the missing file.

cheers
Bruce

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: Popup windows difference between NT7 and NT8
« Reply #2 on: November 26, 2014, 07:33:25 AM »
What is the name of the file that is missing. I am trying to keep some themes that I created in NT 7 with my products. Other than this issue, my themes where updated and working fine when I upgraded to NT 8.

Also in NT8, a tool tip (title) of "close" has been added to this button. This text is not being passed through the webhandler translate method for translation.  I am happier with no tip at all, than a text that can not be translated.

Rob
« Last Edit: November 26, 2014, 07:45:30 AM by Rob Kolanko »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Popup windows difference between NT7 and NT8
« Reply #3 on: November 26, 2014, 09:46:04 PM »
jquery-ui.css

If you look though you'll see it in the folder - but it's a hang-over from NT7. The NT8 version of the file is attached.

To use this file store it in the appropriate theme in your \clarion\accessory\libsrc\netweb\web folder.

Then in your app folder manually run the copyall.bat and gzipall.bat batch files.

cheers
Bruce


[attachment deleted by admin]

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: Popup windows difference between NT7 and NT8
« Reply #4 on: November 30, 2014, 04:35:49 PM »
Hi Bruce,
The file "jquery-ui.css" fixed the ui-lightness theme, but it did not fix my other themes created in NT7. This file made my other themes look like with the same colors as ui-lightness. Also there a number of errors reported in Debugview for image files that did not exist.
Is there any way to upgrade themes created in NT7 to NT8?  If not I guess I will have to recreate the themes as best as I can in Theme roller. What version of jquery should we generate the themes for ?

Thanks,
Rob

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Popup windows difference between NT7 and NT8
« Reply #5 on: November 30, 2014, 09:55:32 PM »
Hi Rob,

First thing - if you create a theme using ThemeRoller, then inside the CSS file is a URL. If you enter this URL in your browser you get your theme back into themeroller again. Then you can export the theme to the latest version.

At the moment you should be downloading your theme for the 1.10.4 build, although at some point I'll bump it up to 1.11.x

If you made manual changes to the theme then obviously those are lost. So it's best to make the manual changes in a separate file - overriding the parent as necessary.

If this approach won't work for you let me know - I think the actual change for the icon in the X is quite small, but I'd have to dig it out.

cheers
Bruce

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: Popup windows difference between NT7 and NT8
« Reply #6 on: December 02, 2014, 08:00:04 AM »
Thanks Bruce,
Wow, I was all set rebuild my custom themes from scratch. The URL in the CSS file saved me allot of time. However, I should have seen that this information on the Themeroller URL is in the NT webserver documentation on Themes.

In NT8, a tool tip (title) of "close" has been added to "X" close button. This text does not appear to passed through the webhandler translate method for translation.  My French speaking customers are happier with no tip at all, than English text.


Rob.
« Last Edit: December 02, 2014, 08:45:51 AM by Rob Kolanko »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Popup windows difference between NT7 and NT8
« Reply #7 on: December 02, 2014, 10:08:33 PM »
Glad to know the tip about the CSS helped. It's always worth at least _asking_ before embarking on a lot of work. Sometimes you just have to do the work, but sometimes there's a faster way.

>> In NT8, a tool tip (title) of "close" has been added to "X" close button.

This was a jQuery UI change, not a NetTalk change, but for build 8.33 I've made it a little smarter.

a) The text is set explicitly in the server app. I've used the text from the "Close" button as a starting point.
b) The text passes through the .Translate method so you can change it as you like and
c) (And this applies to build 8.32 and earlier) you can set the text specifically on a specific form by setting the dialog option;

p_web.SetOption(loc:options,'closeText','Fermer')

This comes before the generated line;

       p_web.jQuery('#' & lower('popup_MailboxesFormControl_div'),'dialog',loc:options,'.removeClass("nt-hidden")')

Cheers
Bruce