mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
put objtype and type of attrdef into data-subtitle of option tag
This commit is contained in:
parent
7248c1a630
commit
893e84d442
|
@ -283,9 +283,9 @@ $(document).ready( function() {
|
|||
<div class="span6">
|
||||
<div class="well">
|
||||
<?php echo getMLText("selection")?>:
|
||||
<select class="chzn-select" id="selector" class="span9">
|
||||
<option value="-1"><?php echo getMLText("choose_attrdef")?>
|
||||
<option value="0"><?php echo getMLText("new_attrdef")?>
|
||||
<select class="chzn-select" id="selector" class="input-xlarge">
|
||||
<option value="-1"><?php echo getMLText("choose_attrdef")?></option>
|
||||
<option value="0"><?php echo getMLText("new_attrdef")?></option>
|
||||
<?php
|
||||
if($attrdefs) {
|
||||
foreach ($attrdefs as $attrdef) {
|
||||
|
@ -320,7 +320,7 @@ $(document).ready( function() {
|
|||
$t = getMLText("attrdef_type_boolean");
|
||||
break;
|
||||
}
|
||||
print "<option value=\"".$attrdef->getID()."\" ".($selattrdef && $attrdef->getID()==$selattrdef->getID() ? 'selected' : '').">" . htmlspecialchars($attrdef->getName() ." (".$ot.", ".$t.")");
|
||||
print "<option value=\"".$attrdef->getID()."\" ".($selattrdef && $attrdef->getID()==$selattrdef->getID() ? 'selected' : '')." data-subtitle=\"".htmlspecialchars($ot.", ".$t)."\">" . htmlspecialchars($attrdef->getName()/* ." (".$ot.", ".$t.")"*/);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user