Commit 80b83cb45dd8c9907157f4262d4e416371cad0cb
1 parent
ff9b8075
changed javascript from onChange to onClick (for IE)
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@658 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
7 additions
and
6 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
| ... | ... | @@ -24,13 +24,14 @@ require_once("$default->owl_ui_directory/foldermanagement/addFolderUI.inc"); |
| 24 | 24 | * @param string the selected browse by option |
| 25 | 25 | */ |
| 26 | 26 | function renderBrowseTypeSelect($sBrowseType) { |
| 27 | + // TODO: write function for onChange that checks if the new value | |
| 27 | 28 | return "<span class=\"browseTypeSelect\">\n |
| 28 | - \tView documents by: <input type=\"radio\" name=\"fBrowseType\" onChange=\"document.forms[0].submit()\" value=\"folder\"" . | |
| 29 | - ((($sBrowseType=="folder") || (strlen($sBrowseType)==0)) ? "checked" : "") . "> Folders\n" . | |
| 30 | - "<input type=\"radio\" name=\"fBrowseType\" onChange=\"document.forms[0].submit()\" value=\"category\"" . | |
| 31 | - (($sBrowseType=="category") ? "checked" : "") . "> Category\n" . | |
| 32 | - "<input type=\"radio\" name=\"fBrowseType\" onChange=\"document.forms[0].submit()\" value=\"documentType\"" . | |
| 33 | - (($sBrowseType=="documentType") ? "checked" : "") . "> Document Type\n</span>"; | |
| 29 | + \tView documents by: <input type=\"radio\" name=\"fBrowseType\" onclick=\"document.forms[0].submit()\" value=\"folder\"" . | |
| 30 | + ((($sBrowseType=="folder") || (strlen($sBrowseType)==0)) ? " checked" : "") . "> Folders\n" . | |
| 31 | + "<input type=\"radio\" name=\"fBrowseType\" onclick=\"document.forms[0].submit()\" value=\"category\"" . | |
| 32 | + (($sBrowseType=="category") ? " checked" : "") . "> Category\n" . | |
| 33 | + "<input type=\"radio\" name=\"fBrowseType\" onclick=\"if (document.forms[0]. document.forms[0].submit()\" value=\"documentType\"" . | |
| 34 | + (($sBrowseType=="documentType") ? " checked" : "") . "> Document Type\n</span>"; | |
| 34 | 35 | } |
| 35 | 36 | |
| 36 | 37 | /** | ... | ... |