From 19f4dd21d30bd5955a1a42ed662f31ed7fafefb6 Mon Sep 17 00:00:00 2001 From: spocky Date: Mon, 20 Aug 2007 00:24:12 +0000 Subject: Updated css class for ajax elements (please check function text in ajax.class.php) --- lib/class/ajax.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/class/ajax.class.php') 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 instead of
, 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 , + // 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 = "
$text
\n"; + + /* Commented out as I didn't test much but it seems to work fine */ + //$string = "
$text\n"; $string .= self::observe($source,'click',$ajax_string); -- cgit