mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
- categories of a document can be deleted
This commit is contained in:
parent
3722b92fcf
commit
3dedb42075
|
@ -579,6 +579,10 @@ class UI {
|
||||||
var current = document.<?= $formName ?>.categoryid<?= $formName ?>;
|
var current = document.<?= $formName ?>.categoryid<?= $formName ?>;
|
||||||
openDlg = open("out.CategoryChooser.php?form=<?php echo $formName?>&cats="+current.value, "openDlg", "width=480,height=480,scrollbars=yes,resizable=yes,status=yes");
|
openDlg = open("out.CategoryChooser.php?form=<?php echo $formName?>&cats="+current.value, "openDlg", "width=480,height=480,scrollbars=yes,resizable=yes,status=yes");
|
||||||
}
|
}
|
||||||
|
function clearCategory<?php print $formName ?>() {
|
||||||
|
document.<?= $formName ?>.categoryid<?= $formName ?>.value = '';
|
||||||
|
document.<?= $formName ?>.categoryname<?= $formName ?>.value = '';
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
$ids = $names = array();
|
$ids = $names = array();
|
||||||
|
@ -590,6 +594,7 @@ class UI {
|
||||||
}
|
}
|
||||||
print "<input type=\"hidden\" name=\"categoryid".$formName."\" value=\"".implode(',', $ids)."\">";
|
print "<input type=\"hidden\" name=\"categoryid".$formName."\" value=\"".implode(',', $ids)."\">";
|
||||||
print "<input disabled name=\"categoryname".$formName."\" value=\"".implode(' ', $names)."\">";
|
print "<input disabled name=\"categoryname".$formName."\" value=\"".implode(' ', $names)."\">";
|
||||||
|
print " <a href=\"javascript:clearCategory".$formName."();\"><img src=\"images/del.gif\" width=\"15\" height=\"15\" border=\"0\" align=\"absmiddle\" alt=\"\"></a>";
|
||||||
print " <input type=\"Button\" value=\"".getMLText("category")."...\" onclick=\"chooseCategory".$formName."();\">";
|
print " <input type=\"Button\" value=\"".getMLText("category")."...\" onclick=\"chooseCategory".$formName."();\">";
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user