From 4b2c366d3e8bba9718d11bcc89925b237f120f2a Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 26 Jun 2011 14:42:15 +0100 Subject: fixed typo causing PHP warning (FS#2282) --- lib/tpl/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/tpl/index.php b/lib/tpl/index.php index 20abea20c..0273e5678 100644 --- a/lib/tpl/index.php +++ b/lib/tpl/index.php @@ -9,7 +9,7 @@ * @author Anika Henke */ if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); -if(!define('NOSESSION')) define('NOSESSION',1); +if(!defined('NOSESSION')) define('NOSESSION',1); require_once(DOKU_INC.'inc/init.php'); ?> Date: Sun, 26 Jun 2011 15:43:53 +0100 Subject: improved generic .clearer for IE6 --- lib/styles/all.css | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/styles/all.css b/lib/styles/all.css index dd9f46462..915ced5d6 100644 --- a/lib/styles/all.css +++ b/lib/styles/all.css @@ -5,6 +5,7 @@ div.clearer { clear: both; + font-size: 0; line-height: 0; height: 0; overflow: hidden; -- cgit v1.2.3 From 87acb57f9cebe62178de1bde59cd54af45b8ad61 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 27 Jun 2011 18:07:23 +0200 Subject: fixed two errors in media.js, still needs refactoring --- lib/scripts/media.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/scripts/media.js b/lib/scripts/media.js index bcdba2a48..ebbee5a78 100644 --- a/lib/scripts/media.js +++ b/lib/scripts/media.js @@ -303,7 +303,7 @@ $.post( DOKU_BASE + 'lib/exe/ajax.php', - link.attr('search').substr(1) + '&call=medians', + link[0].search.substr(1) + '&call=medians', function (data) { ul.html(data); listitem.append(ul); @@ -326,7 +326,7 @@ event.preventDefault(); - jQuery.remove('div.success, div.info, div.error, div.notify'); + jQuery('div.success, div.info, div.error, div.notify').remove(); content = $('#media__content'); content.html('...'); @@ -334,7 +334,7 @@ // fetch the subtree $.post( DOKU_BASE + 'lib/exe/ajax.php', - link.attr('search').substr(1)+'&call=medialist', + link[0].search.substr(1)+'&call=medialist', function (data) { content.html(data); prepare_content(content); -- cgit v1.2.3 From a4f16859d7e91bb129edd3be5c62177d56030981 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 27 Jun 2011 18:18:24 +0200 Subject: prefixed jQuery var with $ --- lib/scripts/behaviour.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index 62c20eb0f..7cc65579e 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -8,7 +8,6 @@ * automatically whenever a certain object is in the DOM or a certain CSS * class was found */ - var dw_behaviour = { init: function(){ @@ -24,9 +23,9 @@ var dw_behaviour = { * Looks for an element with the ID scroll__here at scrolls to it */ scrollToMarker: function(){ - var obj = jQuery('#scroll__here'); - if(obj.length) { - obj[0].scrollIntoView(); + var $obj = jQuery('#scroll__here'); + if($obj.length) { + $obj[0].scrollIntoView(); } }, -- cgit v1.2.3