summaryrefslogtreecommitdiffstats
path: root/plugins/webinterface/www/coldmilk
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/webinterface/www/coldmilk
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/webinterface/www/coldmilk')
-rw-r--r--plugins/webinterface/www/coldmilk/page_update.js10
-rw-r--r--plugins/webinterface/www/coldmilk/rest.php4
2 files changed, 7 insertions, 7 deletions
diff --git a/plugins/webinterface/www/coldmilk/page_update.js b/plugins/webinterface/www/coldmilk/page_update.js
index c004456..dcbe62b 100644
--- a/plugins/webinterface/www/coldmilk/page_update.js
+++ b/plugins/webinterface/www/coldmilk/page_update.js
@@ -141,7 +141,7 @@ function update_status_bar(xmldoc) {
document.createTextNode("down: " + down + " / up: " + up));
}
var oldtable = document.getElementById('status_bar_table');
- oldtable.parentNode.replaceChild(newtable, oldtable);
+ oldtable.tqparentNode.replaceChild(newtable, oldtable);
}
function update_torrent_table(xmldoc) {
@@ -159,7 +159,7 @@ function update_torrent_table(xmldoc) {
_torrent_table_header(newtable.insertRow(0));
var oldtable = document.getElementById('torrent_list_table');
- oldtable.parentNode.replaceChild(newtable, oldtable);
+ oldtable.tqparentNode.replaceChild(newtable, oldtable);
}
function _torrent_table_row(torrent, table, i) {
@@ -327,7 +327,7 @@ function get_torrents_details(xmldoc) {
_torrent_table_header(newtable.insertRow(0));*/
var oldtable = document.getElementById('torrents_details_files');
- oldtable.parentNode.replaceChild(newtable, oldtable);
+ oldtable.tqparentNode.replaceChild(newtable, oldtable);
}
function _create_action_button(button_name, image_src, command) {
@@ -403,7 +403,7 @@ function _get_file_status_name(status_id)
}
function _torrents_details_header(row) {
- headers = new Array("Actions", "File", "Size", "Perc done", "Status");
+ headers = new Array("Actions", "File", "Size", "Perc done", "tqStatus");
for (var i in headers) {
var header = document.createElement("th");
header.appendChild(document.createTextNode(headers[i]));
@@ -414,7 +414,7 @@ function _torrents_details_header(row) {
function _torrent_table_header(row) {
headers = new Array(
- "Actions", "File", "Status",
+ "Actions", "File", "tqStatus",
"Speed", "Size", "Peers",
"Transferred", "% done"
);
diff --git a/plugins/webinterface/www/coldmilk/rest.php b/plugins/webinterface/www/coldmilk/rest.php
index bab7e68..a61cbfe 100644
--- a/plugins/webinterface/www/coldmilk/rest.php
+++ b/plugins/webinterface/www/coldmilk/rest.php
@@ -174,7 +174,7 @@ class RestInterface {
// Truncate long torrent name, and HTML escape it.
// This is a helper function for download_status.
private function _clean_name($name) {
- $name = str_replace("'", "\'", $name);
+ $name = str_tqreplace("'", "\'", $name);
if (strlen($name) > 30) {
$name = substr($name, 0, 27);
$name .= "...";
@@ -203,7 +203,7 @@ class RestInterface {
class KTorrentXML extends DomDocument {
private $root_element;
public function __construct($root, $value = null, $attributes = null) {
- parent::__construct('1.0');
+ tqparent::__construct('1.0');
$this->root_element = $this->createElement($root);
$this->appendChild($this->root_element);
$this->formatOutput = true;