diff options
author | spocky <spocky@ampache> | 2007-08-20 00:24:12 +0000 |
---|---|---|
committer | spocky <spocky@ampache> | 2007-08-20 00:24:12 +0000 |
commit | 19f4dd21d30bd5955a1a42ed662f31ed7fafefb6 (patch) | |
tree | b93ce033bc793439344295e6e1918a477005a130 /lib | |
parent | 873465efc22ed422a4852d59be2cc6a1e472ede2 (diff) | |
download | ampache-19f4dd21d30bd5955a1a42ed662f31ed7fafefb6.tar.gz ampache-19f4dd21d30bd5955a1a42ed662f31ed7fafefb6.tar.bz2 ampache-19f4dd21d30bd5955a1a42ed662f31ed7fafefb6.zip |
Updated css class for ajax elements (please check function text in ajax.class.php)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/ajax.class.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php index 2139959e..cfd66dba 100644 --- a/lib/class/ajax.class.php +++ b/lib/class/ajax.class.php @@ -116,6 +116,14 @@ 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'; + // If they passed a span class if ($span_class) { $class_txt = ' class="' . $span_class . '"'; @@ -123,6 +131,9 @@ class Ajax { // If we pass a source put it in the ID $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 .= self::observe($source,'click',$ajax_string); |