Hi, I have this code in my default_addproperty file.
| Code: |
if($UseLocality==0)
{
?>
<input type="hidden" name="lid" id="lid" value="<?php echo $UseLocalityDefault; ?>" />
<?php
}
else
{
?>
<tr>
<td class="key"><?php echo JText::_( 'Locality' ); ?>:</td>
<td>
<div id="AjaxLocality" style="float:left">
<?php
$row->id=0;
$row->cyid = $this->datos->cyid;
$row->sid = $this->datos->sid;
$row->lid = $this->datos->lid;
echo SelectHelper::SelectAjaxLocalities( $row,'localities',$UseLocality );
?>
</div>
<div id="AjaxAddLocality" style="float:left">
<!--
<a href="<?php echo JURI::base();?>index.php?option=com_properties&controller=ajax&format=raw&task=AddLocality&sid=<?php echo $row->sid;?>" onclick="return hs.htmlExpand(this, { objectType: 'ajax', preserveContent: true} )">
<?php echo JText::_( 'Add Locality');?>
</a>
-->
</div>
<div id="progressL"></div>
<div id="progressAL"></div>
</td>
</tr>
<?php
}?>
|
Then i remove the comments <!-- --> and Add Locality appear on the front end. but problem is that it display Add Locality by default like in first picture.
On changing the City(State) i can see two Add Locality options why?? Like in picture below.
One more thing, i remember i had removed a default locality from my Locality list. does that creating problem. What should i do??