From 51f2b120faf78b7224a42b769cb99c2620ae9030 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 20 Nov 2010 07:12:04 +0000 Subject: Refs #2143: DRY up button input views (button, reset, submit). Changed core uses of button to reflect the fact that it no longer defaults to submit git-svn-id: http://code.elgg.org/elgg/trunk@7364 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/views/default/blog/forms/edit.php | 2 +- mod/diagnostics/index.php | 2 +- mod/ecml/views/default/embed/web_services/content.php | 4 ++-- mod/uservalidationbyemail/views/default/admin/users/unvalidated.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'mod') diff --git a/mod/blog/views/default/blog/forms/edit.php b/mod/blog/views/default/blog/forms/edit.php index 2b07fae94..60012dac6 100644 --- a/mod/blog/views/default/blog/forms/edit.php +++ b/mod/blog/views/default/blog/forms/edit.php @@ -72,7 +72,7 @@ if (isset ($vars['entity'])) { )); } -$save_button = elgg_view('input/submit', array('value' => elgg_echo('save'), 'class' => 'submit_button')); +$save_button = elgg_view('input/submit', array('value' => elgg_echo('save'))); $action_buttons = $save_button . $delete_link; $title_label = elgg_echo('title'); diff --git a/mod/diagnostics/index.php b/mod/diagnostics/index.php index c7a5cd4b1..ad77b5085 100644 --- a/mod/diagnostics/index.php +++ b/mod/diagnostics/index.php @@ -25,7 +25,7 @@ $test_body .= "

" . elgg_echo('diagnostics:unittester:warning') . "

"; if (isset($CONFIG->debug)) { // create a button to run tests $js = "onclick=\"window.location='".elgg_get_site_url()."engine/tests/suite.php'\""; - $params = array('type' => 'button', 'value' => elgg_echo('diagnostics:test:executeall'), 'js' => $js); + $params = array('value' => elgg_echo('diagnostics:test:executeall'), 'js' => $js); $test_body .= elgg_view('input/button', $params); } else { // no tests when not in debug mode diff --git a/mod/ecml/views/default/embed/web_services/content.php b/mod/ecml/views/default/embed/web_services/content.php index 5c46dfad4..b609db448 100644 --- a/mod/ecml/views/default/embed/web_services/content.php +++ b/mod/ecml/views/default/embed/web_services/content.php @@ -40,7 +40,7 @@ $input = elgg_view('input/text', array( 'internalid' => 'web_services_resource' )); -$embed = elgg_view('input/button', array( +$embed = elgg_view('input/submit', array( 'name' => 'buggy', 'internalid' => 'embed_submit', 'type' => 'button', @@ -109,7 +109,7 @@ $(function() { var value = $(this).val(); var value_length = value.length; - + if (value_length > 0) { //embed_button.removeAttr('disabled').removeClass('disabled');//.addClass('embed_warning'); url_status.removeClass('success').addClass('failure'); diff --git a/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php b/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php index 279c7387f..332fac3f9 100644 --- a/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php +++ b/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php @@ -58,7 +58,7 @@ $form_body .= elgg_echo('uservalidationbyemail:admin:with_checked') . elgg_view( 'value' => 'resend_validation', )); -$form_body .= '
' . elgg_view('input/button', array('value' => elgg_echo('submit'))); +$form_body .= '
' . elgg_view('input/submit', array('value' => elgg_echo('submit'))); echo elgg_view('input/form', array( 'action' => 'action/uservalidationbyemail/bulk_action', -- cgit v1.2.3