Jump to content



Latest News: (loading..)

Issue Information

  • #000095

  • 0 - None Assigned

  • Won't FIx

  • 2.3

  • -

Issue Confirmations

  • Yes (0)No (0)
Photo

add disabled parameter in function tep_draw_button

Posted by foxp2 on 04 November 2010 - 10:29 PM

includes/functions/html_output.php
before :
	if (empty($title)) {
	  $args[] = 'text:false';
	}

add :
	if ( isset($params['disabled']) ) {
		$args[] = 'disabled: true';
	}

bad idea ... [img]http://forums.oscommerce.com/public/style_emoticons/default/sad.gif[/img] invalid with <a> tag ...
<script type="text/javascript">
$( "#element_id" ).button({ disabled : true }).click(function() {return false;});
</script>
is better and easier to disable a button.

Updating status to: Won't Fix

Edited by Harald Ponce de Leon, 07 November 2010 - 12:31 PM.