aboutsummaryrefslogtreecommitdiff
path: root/views/default/input
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input')
-rw-r--r--views/default/input/access.php2
-rw-r--r--views/default/input/button.php2
-rw-r--r--views/default/input/checkbox.php2
-rw-r--r--views/default/input/checkboxes.php2
-rw-r--r--views/default/input/email.php2
-rw-r--r--views/default/input/file.php2
-rw-r--r--views/default/input/longtext.php2
-rw-r--r--views/default/input/password.php2
-rw-r--r--views/default/input/plaintext.php2
-rw-r--r--views/default/input/pulldown.php2
-rw-r--r--views/default/input/radio.php2
-rw-r--r--views/default/input/tags.php2
-rw-r--r--views/default/input/text.php2
-rw-r--r--views/default/input/url.php2
-rw-r--r--views/default/input/userpicker.php4
15 files changed, 16 insertions, 16 deletions
diff --git a/views/default/input/access.php b/views/default/input/access.php
index b7273acb1..d4f366363 100644
--- a/views/default/input/access.php
+++ b/views/default/input/access.php
@@ -14,7 +14,7 @@
*
*/
-$class = "input_access";
+$class = "input-access";
if (isset($vars['class'])) {
$class = $vars['class'];
}
diff --git a/views/default/input/button.php b/views/default/input/button.php
index 1be03e3eb..1c8bdaf3c 100644
--- a/views/default/input/button.php
+++ b/views/default/input/button.php
@@ -12,7 +12,7 @@ global $CONFIG;
$defaults = array(
'type' => 'button',
- 'class' => 'submit_button',
+ 'class' => 'submit-button',
);
$vars = array_merge($defaults, $vars);
diff --git a/views/default/input/checkbox.php b/views/default/input/checkbox.php
index e70064ddb..59af3216f 100644
--- a/views/default/input/checkbox.php
+++ b/views/default/input/checkbox.php
@@ -15,7 +15,7 @@
*/
$defaults = array(
- 'class' => 'input_checkbox',
+ 'class' => 'input-checkbox',
);
$vars = array_merge($defaults, $vars);
diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php
index 94f01867c..4abeabf58 100644
--- a/views/default/input/checkboxes.php
+++ b/views/default/input/checkboxes.php
@@ -29,7 +29,7 @@ if (!isset($vars['value']) || $vars['value'] === FALSE) {
$vars['value'] = elgg_get_sticky_value($vars['internalname']);
}
-$class = (isset($vars['class'])) ? $vars['class'] : 'input_checkboxes';
+$class = (isset($vars['class'])) ? $vars['class'] : 'input-checkboxes';
$value = (isset($vars['value'])) ? $vars['value'] : NULL;
$value_array = (is_array($value)) ? array_map('strtolower', $value) : array(strtolower($value));
$internalname = (isset($vars['internalname'])) ? $vars['internalname'] : '';
diff --git a/views/default/input/email.php b/views/default/input/email.php
index 81e617476..c973ff7e4 100644
--- a/views/default/input/email.php
+++ b/views/default/input/email.php
@@ -8,7 +8,7 @@
*/
$defaults = array(
- 'class' => 'input_text', //@todo input_email?
+ 'class' => 'input-text', //@todo input-email?
'disabled' => FALSE,
);
diff --git a/views/default/input/file.php b/views/default/input/file.php
index bf9101991..8f0461083 100644
--- a/views/default/input/file.php
+++ b/views/default/input/file.php
@@ -19,7 +19,7 @@ if (!empty($vars['value'])) {
echo elgg_echo('fileexists') . "<br />";
}
-$class = "input_file";
+$class = "input-file";
if (isset($vars['class'])) {
$class = $vars['class'];
}
diff --git a/views/default/input/longtext.php b/views/default/input/longtext.php
index 6fe2c9e8e..d784c6014 100644
--- a/views/default/input/longtext.php
+++ b/views/default/input/longtext.php
@@ -14,7 +14,7 @@
* @uses $vars['disabled'] Is the input field disabled?
*/
-$class = "input_textarea";
+$class = "input-textarea";
if (isset($vars['class'])) {
$class = $vars['class'];
}
diff --git a/views/default/input/password.php b/views/default/input/password.php
index 90864a4a7..0d1523977 100644
--- a/views/default/input/password.php
+++ b/views/default/input/password.php
@@ -14,7 +14,7 @@
$class = $vars['class'];
if (!$class) {
- $class = "input_password";
+ $class = "input-password";
}
?>
diff --git a/views/default/input/plaintext.php b/views/default/input/plaintext.php
index cf798e4d8..e2b8c5ed2 100644
--- a/views/default/input/plaintext.php
+++ b/views/default/input/plaintext.php
@@ -14,7 +14,7 @@
$class = $vars['class'];
if (!$class) {
- $class = "input_textarea";
+ $class = "input-textarea";
}
if (!isset($vars['value']) || $vars['value'] === FALSE) {
diff --git a/views/default/input/pulldown.php b/views/default/input/pulldown.php
index 7eb9456b4..f789d1020 100644
--- a/views/default/input/pulldown.php
+++ b/views/default/input/pulldown.php
@@ -18,7 +18,7 @@
$class = $vars['class'];
if (!$class) {
- $class = "input_pulldown";
+ $class = "input-pulldown";
}
if (!isset($vars['value'])) {
diff --git a/views/default/input/radio.php b/views/default/input/radio.php
index 82c49fea4..0a5885f8b 100644
--- a/views/default/input/radio.php
+++ b/views/default/input/radio.php
@@ -15,7 +15,7 @@
$class = $vars['class'];
if (!$class) {
- $class = "input_radio";
+ $class = "input-radio";
}
if (!isset($vars['value']) || $vars['value'] === FALSE) {
diff --git a/views/default/input/tags.php b/views/default/input/tags.php
index 1cafb7904..6ce074a2a 100644
--- a/views/default/input/tags.php
+++ b/views/default/input/tags.php
@@ -8,7 +8,7 @@
*/
$defaults = array(
- 'class' => 'input_tags',
+ 'class' => 'input-tags',
'disabled' => FALSE,
);
diff --git a/views/default/input/text.php b/views/default/input/text.php
index 3e8de2c35..9f3076ed3 100644
--- a/views/default/input/text.php
+++ b/views/default/input/text.php
@@ -8,7 +8,7 @@
*/
$defaults = array(
- 'class' => 'input_text',
+ 'class' => 'input-text',
'disabled' => FALSE,
);
diff --git a/views/default/input/url.php b/views/default/input/url.php
index 29f5edb30..fddf44a5b 100644
--- a/views/default/input/url.php
+++ b/views/default/input/url.php
@@ -8,7 +8,7 @@
*/
$defaults = array(
- 'class' => 'input_url',
+ 'class' => 'input-url',
);
$vars = array_merge($defaults, $vars);
diff --git a/views/default/input/userpicker.php b/views/default/input/userpicker.php
index fb98afc97..74ec10818 100644
--- a/views/default/input/userpicker.php
+++ b/views/default/input/userpicker.php
@@ -31,7 +31,7 @@ function user_picker_add_user($user_id) {
$code = '<li class="user_picker_entry">';
$code .= "<img class=\"livesearch_icon\" src=\"$icon\" />";
$code .= "$user->name - $user->username";
- $code .= '<div class="delete_button">';
+ $code .= '<div class="delete-button">';
$code .= "<a onclick=\"userPickerRemoveUser(this, $user_id)\"><strong>X</strong></a>";
$code .= '</div>';
$code .= "<input type=\"hidden\" name=\"members[]\" value=\"$user_id\">";
@@ -145,7 +145,7 @@ function userPickerAddUser(event, data, formatted) {
var formatted = userPickerFormatItem(data);
// add guid as hidden input and to list.
- var li = formatted + ' <div class="delete_button"><a onclick="userPickerRemoveUser(this, ' + info.guid + ')"><strong>X</strong></a></div>'
+ var li = formatted + ' <div class="delete-button"><a onclick="userPickerRemoveUser(this, ' + info.guid + ')"><strong>X</strong></a></div>'
+ '<input type="hidden" name="' + internalName + '[]" value="' + info.guid + '" />';
$('<li class="user_picker_entry">').html(li).appendTo(users);