aboutsummaryrefslogtreecommitdiff
path: root/views/default/input
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 19:25:10 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-30 19:25:10 +0000
commitc54946dbc8da5f94fe156106d885b736fe942390 (patch)
treed7dceb0b9ec661ea8f14f9370a339a47a75125b7 /views/default/input
parent3b6143c0c5861685a8161e7816824a225290185f (diff)
downloadelgg-c54946dbc8da5f94fe156106d885b736fe942390.tar.gz
elgg-c54946dbc8da5f94fe156106d885b736fe942390.tar.bz2
fixed a few minor issues in input views for validation
git-svn-id: http://code.elgg.org/elgg/trunk@7774 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input')
-rw-r--r--views/default/input/autocomplete.php2
-rw-r--r--views/default/input/checkboxes.php4
-rw-r--r--views/default/input/datepicker.php2
-rw-r--r--views/default/input/userpicker.php2
4 files changed, 5 insertions, 5 deletions
diff --git a/views/default/input/autocomplete.php b/views/default/input/autocomplete.php
index ee2d3fe69..dbc896982 100644
--- a/views/default/input/autocomplete.php
+++ b/views/default/input/autocomplete.php
@@ -49,7 +49,7 @@ if (!$autocomplete_js_loaded) {
?>
<!-- include autocomplete -->
- <script language="javascript" type="text/javascript" src="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery.autocomplete.min.js"></script>
+ <script type="text/javascript" src="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery.autocomplete.min.js"></script>
<script type="text/javascript">
function bindAutocomplete() {
$('input[type=text].autocomplete').autocomplete("<?php echo $ac_url; ?>", {
diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php
index 2222875d8..f0bf0525b 100644
--- a/views/default/input/checkboxes.php
+++ b/views/default/input/checkboxes.php
@@ -43,7 +43,7 @@ $js = (isset($vars['js'])) ? $vars['js'] : '';
if ($options) {
// include a default value so if nothing is checked 0 will be passed.
if ($internalname && $default !== FALSE) {
- echo "<input type=\"hidden\" name=\"$internalname\" value=\"$default\">";
+ echo "<input type=\"hidden\" name=\"$internalname\" value=\"$default\" />";
}
foreach ($options as $label => $option) {
@@ -75,6 +75,6 @@ if ($options) {
$input = elgg_view('input/checkbox', $input_vars);
- echo "<label>{$input}{$label}</label><br />";
+ echo "{$input}<label>{$label}</label><br />";
}
} \ No newline at end of file
diff --git a/views/default/input/datepicker.php b/views/default/input/datepicker.php
index fceb8b30c..62c8b31db 100644
--- a/views/default/input/datepicker.php
+++ b/views/default/input/datepicker.php
@@ -33,7 +33,7 @@ if ($vars['value'] > 86400) {
?>
<input type="text" name="<?php echo $vars['internalname']; ?>" value="<?php echo $val; ?>" />
-<script language="JavaScript">
+<script type="text/javascript">
$(document).ready(function() {
$('input[type=text][name=<?php echo $cal_name; ?>]').datepicker();
});
diff --git a/views/default/input/userpicker.php b/views/default/input/userpicker.php
index 85fbd70f1..20198d236 100644
--- a/views/default/input/userpicker.php
+++ b/views/default/input/userpicker.php
@@ -59,7 +59,7 @@ $json_values = json_encode($values);
if (!$user_picker_js_sent) {
?>
<!-- User picker JS -->
-<script language="javascript" type="text/javascript" src="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery.autocomplete.min.js"></script>
+<script type="text/javascript" src="<?php echo elgg_get_site_url(); ?>vendors/jquery/jquery.autocomplete.min.js"></script>
<script type="text/javascript">
// set up a few required variables
userPickerURL = '<?php echo elgg_get_site_url() ?>pg/livesearch';