... | in extra_fields.naml |
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
<macro name="load_fields">
<n.if.this_user.has_property name="sex">
<then>
<script type='text/javascript'>
$(document).ready(function(){
var sexClassName = '<n.this_user.get_property name="sex"/>';
var sexClass = $("."+sexClassName);
sexClass[0].checked=true;
})
</script>
</then>
</n.if.this_user.has_property>
<n.if.this_user.has_property name="bday">
<then>
<script type='text/javascript'>
$(document).ready(function(){
var bday= '<n.this_user.get_property name="bday"/>';
$(".bday").val(bday);
age_fill(bday);
})
</script>
</then>
</n.if.this_user.has_property>
<n.if.this_user.has_property name="location">
<then>
<script type='text/javascript'>
$(document).ready(function(){
var location = '<n.this_user.get_property name="location"/>';
$(".location").val(location);
})
</script>
</then>
</n.if.this_user.has_property>
</macro>
|
Powered by Nabble | NAML |