summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/scripts/behaviour.js7
-rw-r--r--lib/scripts/media.js6
-rw-r--r--lib/styles/all.css1
-rw-r--r--lib/tpl/index.php2
4 files changed, 8 insertions, 8 deletions
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();
}
},
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('<img src="' + DOKU_BASE + 'lib/images/loading.gif" alt="..." class="load" />');
@@ -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);
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;
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 <anika@selfthinker.org>
*/
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');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"