diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-21 10:44:28 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-21 10:44:28 +0000 |
commit | 3c181054dbe60467cc744c447010f525a862c26e (patch) | |
tree | caf19eca71e1339768620b8b2936c12f36dbdac7 /jsScuttle.php | |
parent | 8ca4455dc7add53f496161eda1e86c455d4ce37c (diff) | |
download | semanticscuttle-3c181054dbe60467cc744c447010f525a862c26e.tar.gz semanticscuttle-3c181054dbe60467cc744c447010f525a862c26e.tar.bz2 |
Refactoring: improve debug_mode, constants and other stuff
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@168 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'jsScuttle.php')
-rw-r--r-- | jsScuttle.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jsScuttle.php b/jsScuttle.php index 53356aa..222b91d 100644 --- a/jsScuttle.php +++ b/jsScuttle.php @@ -2,7 +2,7 @@ header('Content-Type: text/javascript'); require_once('header.inc.php'); require_once('functions.inc.php'); -$player_root = $root .'includes/player/'; +$player_root = ROOT .'includes/player/'; ?> function _playerAdd(anchor) { @@ -41,7 +41,7 @@ function deleteConfirmed(ele, input, response) { post.style.display = 'none'; deleted = false; } else { - loadXMLDoc('<?php echo $root; ?>ajaxDelete.php?id=' + input); + loadXMLDoc('<?php echo ROOT; ?>ajaxDelete.php?id=' + input); post.style.display = 'none'; } @@ -62,7 +62,7 @@ function isAvailable(input, response){ username = username.trim(); var availability = document.getElementById("availability"); if (username != '') { - usernameField.style.backgroundImage = 'url(<?php echo $root; ?>images/loading.gif)'; + usernameField.style.backgroundImage = 'url(<?php echo ROOT; ?>images/loading.gif)'; if (response != '') { usernameField.style.backgroundImage = 'none'; if (response == 'true') { @@ -73,7 +73,7 @@ function isAvailable(input, response){ availability.innerHTML = '<?php echo T_('Not Available'); ?>'; } } else { - loadXMLDoc('<?php echo $root; ?>ajaxIsAvailable.php?username=' + username); + loadXMLDoc('<?php echo ROOT; ?>ajaxIsAvailable.php?username=' + username); } } } @@ -92,12 +92,12 @@ function useAddress(ele) { function getTitle(input, response){ var title = document.getElementById('titleField'); if (title.value == '') { - title.style.backgroundImage = 'url(<?php echo $root; ?>images/loading.gif)'; + title.style.backgroundImage = 'url(<?php echo ROOT; ?>images/loading.gif)'; if (response != null) { title.style.backgroundImage = 'none'; title.value = response; } else if (input.indexOf('http') > -1) { - loadXMLDoc('<?php echo $root; ?>ajaxGetTitle.php?url=' + input); + loadXMLDoc('<?php echo ROOT; ?>ajaxGetTitle.php?url=' + input); } else { return false; } |