From 37875ae23f33b487bfb406c39400cea71dc1d662 Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 7 Jul 2012 05:52:48 +0200 Subject: Fixes #4008. Sets a vertical align for admin icons consistent with the text, and set it as before (baseline) for heads. --- views/default/css/admin.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'views') diff --git a/views/default/css/admin.php b/views/default/css/admin.php index 0f5c1f677..aca8ee3de 100644 --- a/views/default/css/admin.php +++ b/views/default/css/admin.php @@ -1239,6 +1239,10 @@ a.elgg-widget-collapsed:before { height: 16px; display: inline-block; margin: 0 2px; + vertical-align: text-bottom; +} +.elgg-head .elgg-icon { + vertical-align: baseline; } .elgg-icon-delete:hover, .elgg-icon-delete-alt:hover { -- cgit v1.2.3 From d1efed149b0ae8b137617978d46ea5841b3d5044 Mon Sep 17 00:00:00 2001 From: Sem Date: Sun, 29 Jul 2012 00:30:56 +0200 Subject: Refs #4008. Modified CSS selector to be more specific. --- views/default/css/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/default/css/admin.php b/views/default/css/admin.php index aca8ee3de..ae22df691 100644 --- a/views/default/css/admin.php +++ b/views/default/css/admin.php @@ -1241,7 +1241,7 @@ a.elgg-widget-collapsed:before { margin: 0 2px; vertical-align: text-bottom; } -.elgg-head .elgg-icon { +.elgg-module .elgg-head .elgg-icon { vertical-align: baseline; } .elgg-icon-delete:hover, -- cgit v1.2.3 From 6c4e75b19ddadaadac9bc78423a837045fa90b15 Mon Sep 17 00:00:00 2001 From: Paweł Sroka Date: Mon, 26 Nov 2012 21:16:04 +0100 Subject: Fixes #4927 - Removes obsolete commas in JS code for IE7 compatibility --- js/lib/ui.js | 2 +- js/tests/ElggLibTest.js | 2 +- views/default/js/walled_garden.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'views') diff --git a/js/lib/ui.js b/js/lib/ui.js index 616e71d54..2a4d269d6 100644 --- a/js/lib/ui.js +++ b/js/lib/ui.js @@ -283,7 +283,7 @@ elgg.ui.initDatePicker = function() { dataType: "script", cache: true, success: loadDatePicker, - error: loadDatePicker, // english language is already loaded. + error: loadDatePicker // english language is already loaded. }); } }; diff --git a/js/tests/ElggLibTest.js b/js/tests/ElggLibTest.js index a29ebf743..2a676e22a 100644 --- a/js/tests/ElggLibTest.js +++ b/js/tests/ElggLibTest.js @@ -99,7 +99,7 @@ ElggLibTest.prototype.testNormalizeUrl = function() { ['/mod/plugin/file.php', elgg.config.wwwroot + 'mod/plugin/file.php'], ['/mod/plugin/file.php?p=v&p2=v2', elgg.config.wwwroot + 'mod/plugin/file.php?p=v&p2=v2'], ['/rootfile.php', elgg.config.wwwroot + 'rootfile.php'], - ['/rootfile.php?p=v&p2=v2', elgg.config.wwwroot + 'rootfile.php?p=v&p2=v2'], + ['/rootfile.php?p=v&p2=v2', elgg.config.wwwroot + 'rootfile.php?p=v&p2=v2'] ].forEach(function(args) { assertEquals(args[1], elgg.normalize_url(args[0])); diff --git a/views/default/js/walled_garden.php b/views/default/js/walled_garden.php index 13ec83c04..99d050505 100644 --- a/views/default/js/walled_garden.php +++ b/views/default/js/walled_garden.php @@ -47,10 +47,10 @@ elgg.walled_garden.load = function(view) { $(id).find('input.elgg-button-submit').after(''); $('#elgg-walledgarden-login').fadeToggle(); $(id).fadeToggle(); - }, + } }); event.preventDefault(); - }; + }; }; elgg.register_hook_handler('init', 'system', elgg.walled_garden.init); \ No newline at end of file -- cgit v1.2.3 From 1965e4d3642e3e8bcf53c83a85aa79765541a50e Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Mon, 26 Nov 2012 16:28:07 -0500 Subject: JS views: enable syntax highlighting and add missing semicolons --- views/default/js/admin.php | 11 ++++++----- views/default/js/elgg.php | 1 + views/default/js/initialize_elgg.php | 1 + views/default/js/lightbox.php | 1 + views/default/js/walled_garden.php | 1 + 5 files changed, 10 insertions(+), 5 deletions(-) (limited to 'views') diff --git a/views/default/js/admin.php b/views/default/js/admin.php index 5cefba512..e8aa0d2ed 100644 --- a/views/default/js/admin.php +++ b/views/default/js/admin.php @@ -4,8 +4,9 @@ * * @since 1.8 */ + +if (0) { ?>