Browse Source

comboGroup

SunRiseGG 2 years ago
parent
commit
482b6f90d1
3 changed files with 4 additions and 3 deletions
  1. 1 1
      include/comboLookup.hrl
  2. 1 1
      mix.exs
  3. 2 1
      priv/js/comboLookup.js

+ 1 - 1
include/comboLookup.hrl

@@ -12,7 +12,7 @@
 -record(comboInsert, { uid=[], dom=[], rows=[], chunks=[], status=[], delegate=[], feed=[] }).
 -record(comboAdd,    { list_id=[], value=[], bind=[], delegate=[], pos=[], feed=[], default=[]}).
 -record(comboModify, { list_id=[], item_id=[], value=[], bind=[], modify_bind=[], delegate=[], pos=[], feed=[] }).
--record(comboGroup,  { dom=[], value=[], delegate=[] }).
+-record(comboGroup,  { dom=[], value=[], delegate=[], subtitle=[], parent=[]}).
 -record(comboDraft,  { dom=[], list=[], values=[], group=[], subtitle=[], delegate=[] }).
 -record(comboUpdate, { id=[], fields=[], module=[], action=[], value=[] }).
 -record(comboLoader, { dom=[], delegate=[], status=[] }).

+ 1 - 1
mix.exs

@@ -4,7 +4,7 @@ defmodule NITRO.Mixfile do
   def project do
     [
       app: :nitro,
-      version: "7.9.2",
+      version: "7.9.3",
       description: "NITRO Nitrogen Web Framework",
       package: package(),
       deps: deps()

+ 2 - 1
priv/js/comboLookup.js

@@ -149,7 +149,8 @@ function comboSelectGroup(uid, dom, row, feed, mod, id) {
     if (!parent.querySelector(`[data-group-item='data-group-item'][data-bind='${bind}']`)) {
       const draft = parent.id + '_draft';
       const value = dec(unbase64(bind));
-      direct(tuple(atom('comboGroup'), string(draft), value, atom(mod)));
+      const subtitle = qi(draft).querySelector(".group-list__label");
+      direct(tuple(atom('comboGroup'), string(draft), value, atom(mod), bin(subtitle.textContent), string(parent.id)));
     }
   }
 }