aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-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';