diff options
author | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-13 08:11:09 +0000 |
---|---|---|
committer | Paul 'flowerysong' Arthur <flowerysong00@yahoo.com> | 2010-06-13 08:11:09 +0000 |
commit | 4b5756ba9d8ee9e83c1ba4624b461b4746e49e82 (patch) | |
tree | 2e46772da9d25197fd847b273ca1f9b882ad3e34 /lib/class/ajax.class.php | |
parent | 93f4a26ab07207e1f9a8e716a82c5d8812d5344c (diff) | |
download | ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.gz ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.bz2 ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.zip |
Miscellaneous cleanup.
Diffstat (limited to 'lib/class/ajax.class.php')
-rw-r--r-- | lib/class/ajax.class.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php index 38c451a9..b1e9997a 100644 --- a/lib/class/ajax.class.php +++ b/lib/class/ajax.class.php @@ -108,15 +108,14 @@ class Ajax { // If they passed a span class if ($class) { - $class_txt = ' class="' . $class . '"'; + $class = ' class="' . $class . '"'; } - $string = get_user_icon($icon,$alt); // Generate a <a> so that it's more compliant with older browsers // (ie :hover actions) and also to unify linkbuttons (w/o ajax) display - $string = "<a href=\"javascript:void(0);\" id=\"$source\" $class_txt>".$string."</a>\n"; + $string = "<a href=\"javascript:void(0);\" id=\"$source\" $class>".$string."</a>\n"; $string .= self::observe($source,'click',$ajax_string); @@ -126,7 +125,7 @@ class Ajax { /** * text - * This prints out the specified text as a link and setups the required + * This prints out the specified text as a link and sets up the required * ajax for the link so it works correctly */ public static function text($action,$text,$source,$post='',$class='') { @@ -136,11 +135,11 @@ class Ajax { // If they passed a span class if ($class) { - $class_txt = ' class="' . $class . '"'; + $class = ' class="' . $class . '"'; } // If we pass a source put it in the ID - $string = "<a href=\"javascript:void(0);\" id=\"$source\" $class_txt>$text</a>\n"; + $string = "<a href=\"javascript:void(0);\" id=\"$source\" $class>$text</a>\n"; $string .= self::observe($source,'click',$ajax_string); @@ -177,7 +176,7 @@ class Ajax { */ public static function start_container($name) { - if (AJAX_INCLUDE == '1' AND !self::$include_override) { return true; } + if (defined('AJAX_INCLUDE') && !self::$include_override) { return true; } echo '<div id="' . scrub_out($name) . '">'; @@ -189,7 +188,7 @@ class Ajax { */ public static function end_container() { - if (AJAX_INCLUDE == '1' AND !self::$include_override) { return true; } + if (defined('AJAX_INCLUDE') && !self::$include_override) { return true; } echo "</div>"; |