Pman.Tab.CmsTranslateTemplates.bjs
authorAlan <alan@roojs.com>
Fri, 25 Nov 2022 07:40:21 +0000 (15:40 +0800)
committerAlan <alan@roojs.com>
Fri, 25 Nov 2022 07:40:21 +0000 (15:40 +0800)
Pman.Tab.CmsTranslateTemplates.js

Pman.Tab.CmsTranslateTemplates.bjs
Pman.Tab.CmsTranslateTemplates.js

index 12cc8bf..9dfd5f7 100644 (file)
              "    }",
              "    if (typeof(sn.id) == 'number') {",
              "        p.template_id = sn.id;",
-             "",
+             "        p.lang = sn.parentNode.attributes.id;",
+             "        ",
              "    } else {",
              "        ",
              "        ",
index 6130129..4ef404f 100644 (file)
@@ -274,7 +274,8 @@ Pman.Tab.CmsTranslateTemplates = new Roo.XComponent({
                }
                if (typeof(sn.id) == 'number') {
                    p.template_id = sn.id;
-           
+                   p.lang = sn.parentNode.attributes.id;
+                   
                } else {