mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 15:45:04 +08:00
Fixed JS boolean conversion
This commit is contained in:
@@ -144,12 +144,12 @@ import ConfigParser
|
||||
%>
|
||||
</%def>
|
||||
|
||||
<%def name="javascript_boolean(length)">
|
||||
<%def name="javascript_boolean(python_boolean)">
|
||||
<%
|
||||
"""
|
||||
Convenience function to convert boolean for use in JS
|
||||
"""
|
||||
if boolean:
|
||||
if python_boolean:
|
||||
return "true";
|
||||
else:
|
||||
return "false"
|
||||
|
||||
Reference in New Issue
Block a user