This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Will the following two functions return the same thing? | |
function foo1() | |
{ | |
return { | |
bar: "hello" | |
}; | |
} | |
function foo2() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/template/tenxer/shared/macros/forms.html b/template/tenxer/shared/macros/forms.html | |
index 5e68dfb..5450da4 100644 | |
--- a/template/tenxer/shared/macros/forms.html | |
+++ b/template/tenxer/shared/macros/forms.html | |
@@ -201,14 +201,16 @@ | |
{{ option(field, attrs=attr, label=group.1) }} | |
{% else %} | |
<optgroup label="{{ group.0 }}"> | |
- {% for choice in group.1 %} | |
- {% if (fvalue|string == choice.0|string) or (fvalue is iterable and choice.0|string in fvalue|map('string')) %} |
NewerOlder