pixl-xyapp 2.1.24 → 2.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/base.css CHANGED
@@ -2640,6 +2640,9 @@ body.dark .data_grid > ul.grid_row_header > div {
2640
2640
  .data_grid ul.disabled div {
2641
2641
  opacity: 0.6;
2642
2642
  }
2643
+ body.dark .data_grid ul.disabled div {
2644
+ opacity: 0.4;
2645
+ }
2643
2646
 
2644
2647
  ul.grid_row_empty > div {
2645
2648
  padding-top: 20px;
package/js/base.js CHANGED
@@ -457,7 +457,10 @@ var app = {
457
457
 
458
458
  savePrefs: function() {
459
459
  // save local pref cache back to localStorage
460
- localStorage.prefs = JSON.stringify( this.prefs );
460
+ try { localStorage.prefs = JSON.stringify( this.prefs ); }
461
+ catch(err) {
462
+ Debug.trace('prefs', "ERROR: Failed to write prefs: " + err);
463
+ }
461
464
  },
462
465
 
463
466
  get_base_url: function() {
package/js/page.js CHANGED
@@ -942,13 +942,13 @@ window.Page = class Page {
942
942
 
943
943
  app.api.post( 'user/resume_session', {}, function(resp) {
944
944
  if (resp.user) {
945
- Debug.trace("User Session Resume: " + resp.username);
945
+ Debug.trace('user', "User Session Resume: " + resp.username);
946
946
  Dialog.hideProgress();
947
947
  app.doUserLogin( resp );
948
948
  Nav.refresh();
949
949
  }
950
950
  else {
951
- Debug.trace("User cookie is invalid, redirecting to login page");
951
+ Debug.trace('user', "User cookie is invalid, redirecting to login page");
952
952
  app.setPref('username', '');
953
953
  setTimeout( function() { Nav.go('Login'); }, 1 );
954
954
  }
package/js/select.js CHANGED
@@ -1077,7 +1077,7 @@ var KeySelect = {
1077
1077
  event.stopPropagation();
1078
1078
 
1079
1079
  $('#fe_sel_dialog_key').val( key_id );
1080
- $('#fe_sel_dialog_text').val( KeySelect.getkeyLabel(key_id) );
1080
+ $('#fe_sel_dialog_text').val( KeySelect.getKeyLabel(key_id) );
1081
1081
  });
1082
1082
 
1083
1083
  // highlight multiselect field under us
package/js/tools.js CHANGED
@@ -337,8 +337,13 @@ function render_menu_options(items, sel_value, auto_add) {
337
337
  if (isa_hash(item)) {
338
338
  if (('label' in item) && ('items' in item)) {
339
339
  // optgroup, recurse for items within
340
+ var sub_items = deep_copy_object(item.items);
341
+ if (sub_items[0] && (typeof(sub_items[0]) == 'object')) {
342
+ sub_items[0].group = item.label;
343
+ }
344
+
340
345
  html += '<optgroup label="' + encode_attrib_entities(item.label) + '">';
341
- html += render_menu_options( item.items, sel_value, false );
346
+ html += render_menu_options( sub_items, sel_value, false );
342
347
  html += '</optgroup>';
343
348
  continue;
344
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixl-xyapp",
3
- "version": "2.1.24",
3
+ "version": "2.1.26",
4
4
  "description": "Front-end web application and theme for xyOps.",
5
5
  "author": "Joseph Huckaby <jhuckaby@pixlcore.com>",
6
6
  "homepage": "https://github.com/pixlcore/pixl-xyapp",