summaryrefslogtreecommitdiffstats
path: root/lib/class/ajax.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-20 18:50:04 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-20 18:50:04 +0000
commiteb23bc31f5f5ccbf27f57f12429a63c2006d2419 (patch)
treebf3294ff58110b02a7ebe9457e2d2ed9feb46b0d /lib/class/ajax.class.php
parentd5231c592cade3fffb72ad7dda5a9479d7eda2be (diff)
downloadampache-eb23bc31f5f5ccbf27f57f12429a63c2006d2419.tar.gz
ampache-eb23bc31f5f5ccbf27f57f12429a63c2006d2419.tar.bz2
ampache-eb23bc31f5f5ccbf27f57f12429a63c2006d2419.zip
moved to spockys a link for text, ratings are broken.. but I think I did that will fix later
Diffstat (limited to 'lib/class/ajax.class.php')
-rw-r--r--lib/class/ajax.class.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php
index cfd66dba..213a0e3d 100644
--- a/lib/class/ajax.class.php
+++ b/lib/class/ajax.class.php
@@ -116,13 +116,7 @@ class Ajax {
// Format the string we wanna use
$ajax_string = self::action($action,$source,$post);
- // Temporary (?) fix to have a pointer cursor on every ajax button
- // Would it be possible to generate a <a> instead of <div>, as it would
- // greatly simplify css and bring back ie6 ":hover" pseudo-class compatibility ?
- // Of course generated html would be correct if $text contains only <img>,
- // <span> and text but that should be enough.
-
- $span_class.= ($span_class?' ':'') . 'link';
+ $span_class.= ($span_class?' ':'') . 'link';
// If they passed a span class
if ($span_class) {
@@ -130,10 +124,9 @@ class Ajax {
}
// If we pass a source put it in the ID
- $string = "<div id=\"$source\" $class_txt>$text</div>\n";
+ //$string = "<div id=\"$source\" $class_txt>$text</div>\n";
- /* Commented out as I didn't test much but it seems to work fine */
- //$string = "<a href=\"javascript:void(0);\" id=\"$source\" $class_txt>$text</a>\n";
+ $string = "<a href=\"javascript:void(0);\" id=\"$source\" $class_txt>$text</a>\n";
$string .= self::observe($source,'click',$ajax_string);