aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 16:20:24 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-05 16:20:24 +0000
commitca03d831fc65cd4ca669de7785dd3fff30bd33f1 (patch)
tree57e7067f012ee5c8a1beeb1ca17d91fb8dc4d357 /views/default
parent53433d73e36f36ccff2df95447c48c433ba0efef (diff)
downloadelgg-ca03d831fc65cd4ca669de7785dd3fff30bd33f1.tar.gz
elgg-ca03d831fc65cd4ca669de7785dd3fff30bd33f1.tar.bz2
fixed ajax loader css and html
git-svn-id: http://code.elgg.org/elgg/trunk@8030 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/css/elements/icons.php5
-rw-r--r--views/default/graphics/ajax_loader.php17
2 files changed, 9 insertions, 13 deletions
diff --git a/views/default/css/elements/icons.php b/views/default/css/elements/icons.php
index d465d5efd..18ea4899e 100644
--- a/views/default/css/elements/icons.php
+++ b/views/default/css/elements/icons.php
@@ -79,7 +79,7 @@
}
<?php //@todo prefix with elgg- ?>
-.ajax-loader {
+.elgg-ajax-loader {
background-color: white;
background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/ajax_loader_bw.gif);
background-repeat: no-repeat;
@@ -87,9 +87,6 @@
min-height:33px;
min-width:33px;
}
-.ajax-loader.left {
- background-position: left center;
-}
/* ***************************************
AVATAR ICONS
diff --git a/views/default/graphics/ajax_loader.php b/views/default/graphics/ajax_loader.php
index e539188f2..2d2da30b7 100644
--- a/views/default/graphics/ajax_loader.php
+++ b/views/default/graphics/ajax_loader.php
@@ -5,24 +5,23 @@
* @package Elgg
* @subpackage Core
*
- * @uses $vars['id']
+ * @uses $vars['id'] CSS id
+ * @uses $vars['hidden'] Begin hidden? (true)
*/
if (isset($vars['internalid'])) {
$id = "id=\"{$vars['internalid']}\"";
}
+$hidden = 'hidden';
+if (isset($vars['hidden']) && $vars['hidden'] == false) {
+ $hidden = '';
+}
+
$loader = <<< END
-<div align="center" class="ajax-loader hidden" $id></div>
+<div class="elgg-ajax-loader $hidden" $id></div>
END;
-$loader = str_replace("\n","",$loader);
-$loader = str_replace("\r","",$loader);
-
-if (isset($vars['slashes']) && $vars['slashes'] == true) {
- $loader = addslashes($loader);
-}
-
echo $loader; \ No newline at end of file