j1_template_mde 2018.4.29 → 2018.4.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_app.html +2 -2
  3. data/_includes/themes/j1/layouts/content_generator_blog_archive.html +2 -0
  4. data/_includes/themes/j1/layouts/content_generator_collection.html +2 -0
  5. data/_includes/themes/j1/layouts/content_generator_page.html +2 -1
  6. data/_includes/themes/j1/layouts/content_generator_post.html +2 -1
  7. data/_includes/themes/j1/layouts/content_generator_raw.html +2 -2
  8. data/_includes/themes/j1/layouts/layout_metadata_generator.html +5 -5
  9. data/_includes/themes/j1/layouts/layout_module_generator.html +3 -3
  10. data/_includes/themes/j1/layouts/layout_resource_generator.html +3 -3
  11. data/_includes/themes/j1/layouts/layout_shim_generator.html +8 -19
  12. data/_includes/themes/j1/layouts/layout_theme_generator.html +4 -4
  13. data/_includes/themes/j1/modules/navigator/generator.html +53 -52
  14. data/_includes/themes/j1/modules/navigator/procedures/quicklinks.proc +16 -9
  15. data/_includes/themes/j1/modules/navigator/procedures/sidebar.proc +9 -9
  16. data/_includes/themes/j1/modules/navigator/procedures/topsearch.proc +3 -3
  17. data/_includes/themes/j1/procedures/layouts/content_writer.proc +4 -4
  18. data/_includes/themes/j1/procedures/layouts/default_writer.proc +6 -10
  19. data/_includes/themes/j1/procedures/layouts/module_writer.proc +9 -9
  20. data/_includes/themes/j1/procedures/layouts/resource_writer.proc +6 -6
  21. data/_layouts/default.html +18 -19
  22. data/_layouts/home.html +6 -6
  23. data/lib/j1/version.rb +1 -1
  24. data/lib/j1_app/j1_auth_manager/auth_manager.rb +10 -9
  25. data/lib/starter_web/Gemfile +1 -1
  26. data/lib/starter_web/_config.yml +1 -1
  27. data/lib/starter_web/_data/j1_resources.yml +5 -3
  28. data/lib/starter_web/_data/modules/j1_navigator.yml +0 -1
  29. data/lib/starter_web/_data/modules/j1_stickybits.yml +19 -0
  30. data/lib/starter_web/_rack/nginx.conf +85 -0
  31. data/lib/starter_web/assets/images/pages/roundtrip/package.json +1 -1
  32. data/lib/starter_web/assets/themes/j1/core/js/adapter/algolia.js +4 -4
  33. data/lib/starter_web/assets/themes/j1/core/js/adapter/navigator.js +69 -108
  34. data/lib/starter_web/assets/themes/j1/core/js/adapter/stickybits.js +96 -0
  35. data/lib/starter_web/assets/themes/j1/core/js/adapter/template.js +9 -10
  36. data/lib/starter_web/assets/themes/j1/core/js/template.js +22 -7
  37. data/lib/starter_web/assets/themes/j1/core/js/template.js.map +1 -1
  38. data/lib/starter_web/assets/themes/j1/core/js/template.min.js +1 -1
  39. data/lib/starter_web/package.json +1 -2
  40. data/lib/starter_web/package.json.new +1 -1
  41. data/lib/starter_web/pages/public/start/downloads/quickstarter/100_linux_starter.adoc +0 -5
  42. data/lib/starter_web/pages/public/start/downloads/quickstarter/200_macos_starter.adoc +0 -3
  43. data/lib/starter_web/pages/public/start/downloads/quickstarter/300_windows_starter.adoc +0 -3
  44. data/lib/starter_web/pages/public/start/roundtrip/400_icon_fonts.adoc +197 -58
  45. data/lib/starter_web/pages/public/start/roundtrip/700_extended_modals.adoc +1 -1
  46. data/lib/starter_web/pages/public/start/roundtrip/710_responsive_tables.adoc +1 -1
  47. data/lib/starter_web/pages/public/start/roundtrip/800_google_custom_search.adoc +41 -0
  48. metadata +6 -4
  49. data/lib/starter_web/_data/modules/j1_polyfills.yml +0 -0
  50. data/lib/starter_web/assets/images/pages/roundtrip/oleg-magni-1370182-unsplash.jpg +0 -0
@@ -46,7 +46,7 @@ gem 'jekyll', '~> 3.8.5'
46
46
  # Theme Rubies
47
47
  # Default: J1 Template
48
48
  #
49
- gem 'j1_template_mde', '~> 2018.4.29'
49
+ gem 'j1_template_mde', '~> 2018.4.30'
50
50
 
51
51
  # --------------------------------------------------------------------
52
52
  # PRODUCTION: Gem needed for the Jekyll and J1 prod environment
@@ -60,7 +60,7 @@ environment: development
60
60
  # anything here because version information is bumped-in by
61
61
  # the build process
62
62
  #
63
- version: 2018.4.29
63
+ version: 2018.4.30
64
64
 
65
65
 
66
66
  # ==============================================================================
@@ -387,7 +387,8 @@ resources:
387
387
  core/js/adapter/logger.js,
388
388
  core/js/adapter/scroller.js,
389
389
  core/js/adapter/searcher.js,
390
- core/js/adapter/switcher.js
390
+ core/js/adapter/switcher.js,
391
+ core/js/adapter/stickybits.js
391
392
  ]
392
393
  js: [
393
394
  {
@@ -402,7 +403,8 @@ resources:
402
403
  j1.Logger.init,
403
404
  j1.Scroller.init,
404
405
  j1.Searcher.init,
405
- j1.Switcher.init
406
+ j1.Switcher.init,
407
+ j1.Stickybits.init
406
408
  ]
407
409
 
408
410
  # ----------------------------------------------------------------------------
@@ -518,7 +520,7 @@ resources:
518
520
  # Stickyfill (CSS polyfill, https://github.com/wilddeer/stickyfill)
519
521
  #
520
522
  - resource:
521
- enabled: true
523
+ enabled: false
522
524
  id: stickyfill
523
525
  comment: Polyfill for CSS position sticky
524
526
  region: head
@@ -136,7 +136,6 @@ nav_menu:
136
136
  #
137
137
  nav_quicklinks:
138
138
  enabled: true
139
- signin: true
140
139
 
141
140
  # ------------------------------------------------------------------------------
142
141
  # 4. Navigation topsearch settings
@@ -0,0 +1,19 @@
1
+ # ------------------------------------------------------------------------------
2
+ # ~/_data/modules/j1_stickybits.yml
3
+ # Default configuration for J1 Stickybits module
4
+ #
5
+ # Product/Info:
6
+ # https://jekyll-one.com
7
+ #
8
+ # Copyright (C) 2019 Juergen Adams
9
+ #
10
+ # J1 Template is licensed under the MIT License.
11
+ # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE
12
+ # ------------------------------------------------------------------------------
13
+ default:
14
+ enabled: true
15
+ selector: .sticky
16
+ offset: 0
17
+ useFixed: false
18
+ useStickyClasses: true # default: false
19
+ verticalPosition: bottom
@@ -0,0 +1,85 @@
1
+ # ------------------------------------------------------------------------------
2
+ # j1_quickstart: ~/nginx/conf/nginx.conf
3
+ # nginx.conf: Nginx Web-Server configuration (Passenger)
4
+ #
5
+ # Product/Info:
6
+ # https://jekyll-one.com
7
+ # http://nginx.org/
8
+ #
9
+ # Copyright (C) 2019 Juergen Adams
10
+ # Copyright (C) 2002-2019 Igor Sysoev
11
+ # Copyright (C) 2011-2019 Nginx, Inc.
12
+ #
13
+ # J1 Template is licensed under the MIT License.
14
+ # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE
15
+ #
16
+ # NginX is licensed under the BSD license.
17
+ # For details, see http://nginx.org/LICENSE
18
+ # ------------------------------------------------------------------------------
19
+
20
+ # Load modules dynamically
21
+ #
22
+ load_module modules/ngx_http_passenger_module.so;
23
+
24
+ worker_processes 1;
25
+ pid /home/jadams/j1_quickstart/nginx/var/nginx.pid;
26
+
27
+ events {
28
+ worker_connections 16;
29
+ }
30
+
31
+ http {
32
+
33
+ include mime.types;
34
+
35
+ passenger_root /home/jadams/j1_quickstart/ruby/lib/ruby/gems/2.3.0/gems/passenger-6.0.2;
36
+ passenger_abort_on_startup_error on;
37
+ passenger_user_switching off;
38
+ passenger_log_level 3;
39
+
40
+ default_type application/octet-stream;
41
+ types_hash_max_size 2048;
42
+ server_names_hash_bucket_size 64;
43
+ client_max_body_size 1024m;
44
+ access_log off;
45
+ keepalive_timeout 60;
46
+ underscores_in_headers on;
47
+
48
+ gzip on;
49
+ gzip_comp_level 3;
50
+ gzip_min_length 150;
51
+ gzip_proxied any;
52
+ gzip_types text/plain text/css text/json text/javascript
53
+ application/javascript application/x-javascript application/json
54
+ application/rss+xml application/vnd.ms-fontobject application/x-font-ttf
55
+ application/xml font/opentype image/svg+xml text/xml;
56
+
57
+ # --------------------------------------------------------------------------
58
+ # J1 Webs
59
+ # --------------------------------------------------------------------------
60
+
61
+
62
+ # --------------------------------------------------------------------------
63
+ # J1 Apps
64
+ # --------------------------------------------------------------------------
65
+
66
+ # J1 Starter App
67
+ #
68
+ server {
69
+ server_name _;
70
+ listen 0.0.0.0:35000;
71
+ root /home/jadams/j1webs/starter/public;
72
+
73
+ passenger_enabled on;
74
+ passenger_app_env production;
75
+ passenger_app_type rack;
76
+ passenger_spawn_method smart;
77
+ passenger_app_root /home/jadams/j1webs/starter;
78
+ passenger_startup_file /home/jadams/j1webs/starter/config.ru;
79
+ passenger_load_shell_envvars off;
80
+
81
+ }
82
+
83
+ passenger_pre_start http://0.0.0.0:35000/;
84
+
85
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": true,
3
3
  "name": "web",
4
- "version": "2018.4.29",
4
+ "version": "2018.4.30",
5
5
  "description": "Web/Content sources for J1 Starter",
6
6
  "main": "_config.yml",
7
7
  "config": {
@@ -7,7 +7,7 @@ regenerate: true
7
7
  {% comment %}
8
8
  # -----------------------------------------------------------------------------
9
9
  # ~/assets/themes/j1/core/js/adapter/algolia.js
10
- # Liquid template to create the Template Adapter for Algolia
10
+ # Liquid template to create the Template Adapter for Algolia
11
11
  #
12
12
  # Product/Info:
13
13
  # https://jekyll.one
@@ -82,14 +82,14 @@ j1.Algolia = (function (j1, window) {
82
82
  apiKey: algoliaConfig.search_only_api_key,
83
83
  indexName: algoliaConfig.index_name,
84
84
  routing: true
85
- });
85
+ });
86
86
 
87
87
  var hitTemplate = function(hit) {
88
88
  // state = 'start search';
89
89
  // logger.info('state: ' + state);
90
90
  // var re = new RegExp("^\/posts");
91
91
  // var re = new RegExp("^\/pages");
92
- var re = new RegExp("^\/pages|^\/posts|^\/collections");
92
+ var re = new RegExp("^\/pages|^\/posts|^\/collections");
93
93
  if ( re.test(hit.url) ) {
94
94
  let date = '';
95
95
  if (hit.date) {
@@ -166,7 +166,7 @@ j1.Algolia = (function (j1, window) {
166
166
  instantsearch.widgets.searchBox({
167
167
  container: '#search-searchbar',
168
168
  placeholder: 'Search this site ..',
169
- autofocus: true,
169
+ autofocus: true,
170
170
  reset: true,
171
171
  loadingIndicator: false,
172
172
  poweredBy: true // This is required if you're on the free Community plan
@@ -30,7 +30,7 @@ regenerate: true
30
30
  {% assign debug = navigator_config.debug %}
31
31
  {% assign brand_image_height = site.brand.image_height %}
32
32
 
33
- {% assign auth_config_provider = site.j1_auth.providers %}
33
+ {% assign auth_config = site.j1_auth %}
34
34
  {% assign navigator_config = site.data.modules.j1_navigator %}
35
35
  {% assign nav_defaults = navigator_config.defaults %}
36
36
  {% assign nav_bar_config = navigator_config.nav_bar %}
@@ -95,6 +95,9 @@ j1.Navigator = (function (j1, window) {
95
95
  // -------------------------------------------------------------------------
96
96
  init: function ( options ) {
97
97
 
98
+ // Configuration setting objects
99
+ var authConfig = {};
100
+
98
101
  // Module setting objects
99
102
  var navDefaults = {};
100
103
  var navBarConfig = {};
@@ -109,7 +112,6 @@ j1.Navigator = (function (j1, window) {
109
112
  var navTopsearchOptions = {};
110
113
  var navSidebarOptions = {};
111
114
  var navAuthClientOptions = {};
112
- var navAuthClientProvider = {};
113
115
 
114
116
  {% comment %} Set global variables
115
117
  -------------------------------------------------------------------------- {% endcomment %}
@@ -130,7 +132,8 @@ j1.Navigator = (function (j1, window) {
130
132
  navTopsearchConfig = $.extend({}, {{nav_topsearch_config | replace: '=>', ':' }});
131
133
  navSidebarConfig = $.extend({}, {{nav_sidebar_config | replace: '=>', ':' }});
132
134
  navAuthClientConfig = $.extend({}, {{nav_authclient_config | replace: '=>', ':' }});
133
- navAuthClientProvider = $.extend({}, {{auth_config_provider | replace: '=>', ':' }});
135
+
136
+ authConfig = $.extend({}, {{auth_config | replace: '=>', ':' }});
134
137
 
135
138
  // Merge|Overload module CONFIG by DEFAULTS
136
139
  navBarOptions = j1.mergeData( navDefaults.nav_bar, navBarConfig );
@@ -148,29 +151,29 @@ j1.Navigator = (function (j1, window) {
148
151
  function load_color_data() {
149
152
  // Returns the j1_colors object
150
153
  return $.ajax({
151
- url: colors_data_path,
152
- success: function (data) {
153
- if (typeof data == 'string') {
154
- j1_colors = JSON.parse(data);
155
- }
156
- if (typeof data == 'object') {
157
- j1_colors = data;
158
- }
154
+ url: colors_data_path,
155
+ success: function (data) {
156
+ if (typeof data == 'string') {
157
+ j1_colors = JSON.parse(data);
158
+ }
159
+ if (typeof data == 'object') {
160
+ j1_colors = data;
159
161
  }
162
+ }
160
163
  });
161
164
  };
162
165
  function load_font_sizes() {
163
166
  // Returns the j1_font_sizes object
164
167
  return $.ajax({
165
- url: font_size_data_path,
166
- success: function (data) {
167
- if (typeof data == 'string') {
168
- j1_font_sizes = JSON.parse(data);
169
- }
170
- if (typeof data == 'object') {
171
- j1_font_sizes = data;
172
- }
168
+ url: font_size_data_path,
169
+ success: function (data) {
170
+ if (typeof data == 'string') {
171
+ j1_font_sizes = JSON.parse(data);
172
+ }
173
+ if (typeof data == 'object') {
174
+ j1_font_sizes = data;
173
175
  }
176
+ }
174
177
  });
175
178
  };
176
179
 
@@ -182,7 +185,7 @@ j1.Navigator = (function (j1, window) {
182
185
  function( load_color_data_response, load_font_sizes_response ) {
183
186
  // Run initializer functions
184
187
  j1.Navigator.loadMenuBar( navMenuOptions );
185
- j1.Navigator.loadAuthClientModals( navAuthClientOptions, navAuthClientProvider );
188
+ j1.Navigator.loadAuthClientModals( authConfig );
186
189
  j1.Navigator.setCss( navBarOptions, navMenuOptions, navQuicklinksOptions, navTopsearchOptions, navSidebarOptions );
187
190
  // Set|Log status
188
191
  state = 'initialized';
@@ -190,52 +193,27 @@ j1.Navigator = (function (j1, window) {
190
193
  logger.info("J1 Navigator initialized successfully");
191
194
  });
192
195
 
193
- /*
194
- // jadams, 2017-10-18: Unclear if workaround is needed.
195
- // For oversized menu bar, overflow set to hidden is set
196
- // as a dynamic style - see setCss below
197
- //
198
- // jadams: WORKAROUND - Change width of the NavBar (to window size) if needed
199
- */
200
- /*
201
- $(window).on("resize", function(){
202
- var navID = "#navigator_nav";
203
- var getWindow = $(window).width();
204
- var getNavWidth = $( navID ).width();
205
- var diff = getNavWidth - getWindow;
206
-
207
- if ( diff ) {
208
- // change width of the NavBar ( to window width)
209
- $( navID ).width(getWindow);
210
- var logText = "NavBar ID #j1_main_nav resized to: " +getNavWidth+ " (" +getWindow+ ")";
211
- //logger.debug(logText);
212
- logger.info(logText);
213
- }
214
- });
215
- */
216
-
217
196
  // Reset on resize
218
197
  $(window).on("resize", function(){
219
-
220
- j1nav.manageDropdownMenu();
221
-
222
- $(".top-search").slideUp();
223
- setTimeout(function(){
224
- j1nav.navbarSticky();
225
- }, 500);
226
-
227
- // Toggle Bars
228
- //$(".navbar-toggle").each(function(){
229
- $('button.navigator.navbar-toggler').each(function(){
230
- //$('button.navigator.navbar-toggler.animated').removeClass('rotateIn');
231
- //$('button.navigator.navbar-toggler.animated').addClass('fadeIn')
232
- $(".mdi", this).removeClass("mdi-close");
233
- $(".mdi", this).addClass("mdi-menu");
234
- $(this).removeClass("fixed");
235
- });
236
- $(".navbar-collapse").removeClass("in");
237
- $(".navbar-collapse").removeClass("on");
238
- $(".navbar-collapse").removeClass("bounceIn");
198
+ j1nav.manageDropdownMenu();
199
+
200
+ $(".top-search").slideUp();
201
+ setTimeout(function(){
202
+ j1nav.navbarSticky();
203
+ }, 500);
204
+
205
+ // Toggle Bars
206
+ //$(".navbar-toggle").each(function(){
207
+ $('button.navigator.navbar-toggler').each(function(){
208
+ //$('button.navigator.navbar-toggler.animated').removeClass('rotateIn');
209
+ //$('button.navigator.navbar-toggler.animated').addClass('fadeIn')
210
+ $(".mdi", this).removeClass("mdi-close");
211
+ $(".mdi", this).addClass("mdi-menu");
212
+ $(this).removeClass("fixed");
213
+ });
214
+ $(".navbar-collapse").removeClass("in");
215
+ $(".navbar-collapse").removeClass("on");
216
+ $(".navbar-collapse").removeClass("bounceIn");
239
217
  });
240
218
  }, // end init
241
219
 
@@ -243,8 +221,6 @@ j1.Navigator = (function (j1, window) {
243
221
  // load the Menu bar
244
222
  // -------------------------------------------------------------------------
245
223
  loadMenuBar: function ( navMenuOptions ) {
246
- //logger = log4javascript.getLogger("j1.Navigator.loadMenuBar");
247
-
248
224
  // closure to pass additional data (e.g. div #id)
249
225
  // to AJAX load callback (id)
250
226
  // See: http://stackoverflow.com/questions/939032/jquery-pass-more-parameters-into-callback
@@ -254,13 +230,15 @@ j1.Navigator = (function (j1, window) {
254
230
  j1nav.initialize( navMenuOptions );
255
231
  var logText = "MenuBar on ID " +id+ " loaded successfully"
256
232
  logger.info(logText);
233
+ // Set processing to 'finished' to display page
234
+ state = 'finished';
235
+ logger.info('state: ' + state); // Set|Log status
257
236
 
258
237
  // Initialize theme selectors for J1Theme Switcher
259
238
  $('#ThemeList').bootstrapThemeSwitcher({localFeed: ''}); // Load from Bootswatch API
260
239
  $('#ThemeSelect').bootstrapThemeSwitcher(); // Load from localFeed
261
240
  var logText = "ThemeSwitcher Feeds on ID " +id+ " loaded successfully"
262
241
  logger.info(logText);
263
- //j1.Navigator.delayMenushow();
264
242
  }
265
243
  if ( statusTxt == "error" ) {
266
244
  state = 'failed';
@@ -273,34 +251,25 @@ j1.Navigator = (function (j1, window) {
273
251
 
274
252
  var id = "#" + nav_menu_id;
275
253
  var selector = $(id);
254
+
276
255
  if ( selector.length ) {
277
256
  var menu_data_path = nav_menu_data_path + " " + id + " > *";
278
-
279
- // Set the return URL (user by news pager) for the News Banner
280
257
  selector.load( menu_data_path, cb_load_closure( id, navMenuOptions ) );
281
258
  }
282
259
 
283
260
  }, // end loadMenuBar
284
261
 
285
262
  // -------------------------------------------------------------------------
286
- // load the Modals used by J1AuthClient
263
+ // load the modals used by J1AuthClient
287
264
  // -------------------------------------------------------------------------
288
- loadAuthClientModals: function ( authClientOptions, authClientProvider ) {
289
- //logger = log4javascript.getLogger("j1.Navigator.loadAuthClientModals");
290
-
291
- // closure to pass additional data (e.g. div #id)
292
- // to AJAX load callback (id)
293
- // See: http://stackoverflow.com/questions/939032/jquery-pass-more-parameters-into-callback
294
- var cb_load_closure = function(id, authClientOptions) {
265
+ loadAuthClientModals: function ( authConfig ) {
266
+ // closure to pass additional data (#id)
267
+ var cb_load_closure = function( id ) {
295
268
  return function ( responseTxt, statusTxt, xhr ) {
296
269
  if ( statusTxt == "success" ) {
297
- //j1nav.initialize( authClientOptions );
298
270
  var logText = "Modals on ID " +id+ " loaded successfully"
299
-
300
- j1.Navigator.initAuthClient( authClientProvider );
301
-
271
+ j1.Navigator.initAuthClient( authConfig );
302
272
  logger.info(logText);
303
- // Set|Log status
304
273
  state = 'finished';
305
274
  logger.info('state: ' + state);
306
275
  }
@@ -315,20 +284,23 @@ j1.Navigator = (function (j1, window) {
315
284
 
316
285
  var id = "#" + authclient_modals_id;
317
286
  var selector = $(id);
318
- if ( selector.length ) {
319
- var modals_data_path = authclient_modals_data_path + " > *";
320
287
 
321
- // Set the return URL (user by news pager) for the News Banner
322
- selector.load( modals_data_path, cb_load_closure( id, authClientOptions ) );
288
+ if ( selector.length ) {
289
+ var modals_data_path = authclient_modals_data_path + " > *";
290
+ selector.load( modals_data_path, cb_load_closure( id ) );
291
+ } else {
292
+ var logText = "AuthClient Modals not loaded"
293
+ logger.info(logText);
294
+ // Set processing to 'finished' to display page
295
+ state = 'finished';
296
+ logger.info('state: ' + state);
323
297
  }
324
-
325
298
  }, // end loadAuthClientModals
326
299
 
327
300
  // -------------------------------------------------------------------------
328
301
  // Initialize JS portion for the dialogs (modals) used by J1AuthClient
329
302
  // -------------------------------------------------------------------------
330
- initAuthClient: function( authClientOptions ) {
331
-
303
+ initAuthClient: function( authConfig ) {
332
304
  var logger;
333
305
  var logText;
334
306
  var route;
@@ -337,27 +309,26 @@ j1.Navigator = (function (j1, window) {
337
309
  var web_session_data = j1.getWebSessionCookie();
338
310
 
339
311
  var signIn = {
340
- provider: authClientOptions["activated"][0],
341
- user: authClientOptions[authClientOptions["activated"][0]]["users"],
312
+ provider: authConfig.providers.activated[0],
313
+ users: authConfig.providers[authConfig.providers["activated"][0]]["users"],
342
314
  do: false
343
315
  }
344
316
 
345
317
  var signOut = {
346
- provider: authClientOptions["activated"][0],
318
+ provider: authConfig.providers.activated[0],
347
319
  providerSignOut: false,
348
320
  do: false
349
321
  }
350
322
 
351
- // Set|Log status
352
323
  logger = log4javascript.getLogger('j1.AuthClient');
353
324
  state = 'initialize';
354
325
  logger.info('state: ' + state);
355
326
 
356
327
  $('ul.nav-pills > li').click(function (e) {
357
- e.preventDefault();
358
- signIn.provider = $(this).text().trim();
359
- signIn.provider = signIn.provider.toLowerCase();
360
- signIn.allowed_users = signIn.user[signIn.provider];
328
+ e.preventDefault();
329
+ signIn.provider = $(this).text().trim();
330
+ signIn.provider = signIn.provider.toLowerCase();
331
+ signIn.allowed_users = signIn.users[signIn.provider];
361
332
  });
362
333
 
363
334
  $("a.btn").click(function() {
@@ -432,7 +403,7 @@ j1.Navigator = (function (j1, window) {
432
403
  }
433
404
  }); // end modalSignOut
434
405
 
435
- if ( web_session_data != null ) {
406
+ if ( web_session_data != null && authConfig.enabled === true ) {
436
407
  // Toggle/Set SignIn/SignOut icon|link in QuickLinks
437
408
  // See: https://stackoverflow.com/questions/13524107/how-to-set-data-attributes-in-html-elements
438
409
  if ( web_session_data.authenticated == 'true') {
@@ -520,15 +491,6 @@ j1.Navigator = (function (j1, window) {
520
491
  logger.info('state: ' + state); // Set|Log status
521
492
  }, // end initAuthClient
522
493
 
523
- // -------------------------------------------------------------------------
524
- // Initialize JS portion for the dialogs (modals) used by J1AuthClient
525
- // -------------------------------------------------------------------------
526
- toggleAuthClient : function() {
527
-
528
- // code for toggle the AuthClient SignIn|SignOut
529
-
530
- }, // end toggleAuthClient
531
-
532
494
  // -------------------------------------------------------------------------
533
495
  // Set dynamic CSS styles
534
496
  // -------------------------------------------------------------------------
@@ -668,7 +630,6 @@ j1.Navigator = (function (j1, window) {
668
630
  -------------------------------------------------------------------------- {% endcomment %}
669
631
  $('head').append("<style>.side { background-color: " +navSidebarOptions.background_color+ "; }</style>");
670
632
 
671
-
672
633
  }, // end setCss
673
634
 
674
635
  // -------------------------------------------------------------------------