Voting links |
diff --git a/sections/user/takeedit.php b/sections/user/takeedit.php
index 89e960d0..811a069c 100644
--- a/sections/user/takeedit.php
+++ b/sections/user/takeedit.php
@@ -218,6 +218,7 @@
$Options['NoVoteLinks'] = (!empty($_POST['novotelinks']) ? 1 : 0);
$Options['CoverArt'] = (int) !empty($_POST['coverart']);
$Options['ShowExtraCovers'] = (int) !empty($_POST['show_extra_covers']);
+$Options['AutoComplete'] = (int) $_POST['autocomplete'];
if (isset($LoggedUser['DisableFreeTorrentTop10'])) {
$Options['DisableFreeTorrentTop10'] = $LoggedUser['DisableFreeTorrentTop10'];
diff --git a/static/functions/autocomplete.js b/static/functions/autocomplete.js
index 2e810abc..d19affcc 100644
--- a/static/functions/autocomplete.js
+++ b/static/functions/autocomplete.js
@@ -1,10 +1,10 @@
var ARTIST_AUTOCOMPLETE_URL = 'artist.php?action=autocomplete';
var TAGS_AUTOCOMPLETE_URL = 'torrents.php?action=autocomplete_tags';
-
+var SELECTOR = '[data-gazelle-autocomplete="true"]';
$(document).ready(function() {
var url = new URL();
- $('#artistsearch').autocomplete({
+ $('#artistsearch' + SELECTOR).autocomplete({
serviceUrl : ARTIST_AUTOCOMPLETE_URL,
onSelect : function(suggestion) {
window.location = 'artist.php?id=' + suggestion['data'];
@@ -12,19 +12,19 @@ $(document).ready(function() {
});
if (url.path == 'torrents' || url.path == 'upload' || url.path == 'artist') {
- $("#artist").autocomplete({
+ $("#artist" + SELECTOR).autocomplete({
serviceUrl : ARTIST_AUTOCOMPLETE_URL
});
- $("#artistsimilar").autocomplete({
+ $("#artistsimilar" + SELECTOR).autocomplete({
serviceUrl : ARTIST_AUTOCOMPLETE_URL
});
}
if (url.path == 'torrents' || url.path == 'upload' || url.path == 'collages' || url.path == 'requests' || url.path == 'top10' || (url.path == 'requests' && url.query['action'] == 'new')) {
- $("#tags").autocomplete({
+ $("#tags" + SELECTOR).autocomplete({
serviceUrl : TAGS_AUTOCOMPLETE_URL,
delimiter: ','
});
- $("#tagname").autocomplete({
+ $("#tagname" + SELECTOR).autocomplete({
serviceUrl : TAGS_AUTOCOMPLETE_URL,
});
}
diff --git a/static/functions/browse.js b/static/functions/browse.js
index 37baadcc..2dfddf32 100644
--- a/static/functions/browse.js
+++ b/static/functions/browse.js
@@ -222,11 +222,13 @@ function AddArtistField() {
Importance.name = "importance[]";
Importance.innerHTML = '';
x.appendChild(Importance);
- $(ArtistField).live('focus', function() {
- $(ArtistField).autocomplete({
- serviceUrl : 'artist.php?action=autocomplete'
+ if ($("#artist").data("gazelle-autocomplete")) {
+ $(ArtistField).live('focus', function() {
+ $(ArtistField).autocomplete({
+ serviceUrl : 'artist.php?action=autocomplete'
+ });
});
- });
+ }
ArtistFieldCount++;
}
diff --git a/static/functions/upload.js b/static/functions/upload.js
index aa017c47..b22cd629 100644
--- a/static/functions/upload.js
+++ b/static/functions/upload.js
@@ -234,12 +234,14 @@ function AddArtistField() {
x.appendChild(ArtistField);
x.appendChild(document.createTextNode('\n'));
x.appendChild(ImportanceField);
-
- $(ArtistField).live('focus', function() {
- $(ArtistField).autocomplete({
- serviceUrl : 'artist.php?action=autocomplete'
+
+ if ($("#artist").data("gazelle-autocomplete")) {
+ $(ArtistField).live('focus', function() {
+ $(ArtistField).autocomplete({
+ serviceUrl : 'artist.php?action=autocomplete'
+ });
});
- });
+ }
ArtistCount++;
}
diff --git a/static/styles/global.css b/static/styles/global.css
index 5f4bee32..833ae274 100644
--- a/static/styles/global.css
+++ b/static/styles/global.css
@@ -520,3 +520,14 @@ tr.torrent .bookmark>a:after {
font-weight: normal;
color: #3399FF;
}
+
+.process_info {
+ table-layout: fixed;
+ width: 100%;
+}
+.process_info_pid {
+ width: 70px;
+}
+.process_info_data {
+ overflow: auto;
+}
diff --git a/watchlist.php b/watchlist.php
deleted file mode 100644
index 42ab904c..00000000
--- a/watchlist.php
+++ /dev/null
@@ -1,3 +0,0 @@
- require("classes/script_start.php");
-
-?>
\ No newline at end of file
|