Browse Source

Remove unused code that was breaking paranoia JS

spaghetti 8 years ago
parent
commit
598d16a582
1 changed files with 0 additions and 7 deletions
  1. 0
    7
      static/functions/user.js

+ 0
- 7
static/functions/user.js View File

46
   $('input[name=p_requestsvoted_list]').raw().disabled = !($('input[name=p_requestsvoted_count]').raw().checked && $('input[name=p_requestsvoted_bounty]').raw().checked);
46
   $('input[name=p_requestsvoted_list]').raw().disabled = !($('input[name=p_requestsvoted_count]').raw().checked && $('input[name=p_requestsvoted_bounty]').raw().checked);
47
   $('input[name=p_uploads_l]').raw().disabled = !$('input[name=p_uploads_c]').raw().checked;
47
   $('input[name=p_uploads_l]').raw().disabled = !$('input[name=p_uploads_c]').raw().checked;
48
   $('input[name=p_uniquegroups_l]').raw().disabled = !$('input[name=p_uniquegroups_c]').raw().checked;
48
   $('input[name=p_uniquegroups_l]').raw().disabled = !$('input[name=p_uniquegroups_c]').raw().checked;
49
-  $('input[name=p_perfectflacs_l]').raw().disabled = !$('input[name=p_perfectflacs_c]').raw().checked;
50
   $('input[name=p_seeding_l]').raw().disabled = !$('input[name=p_seeding_c]').raw().checked;
49
   $('input[name=p_seeding_l]').raw().disabled = !$('input[name=p_seeding_c]').raw().checked;
51
   $('input[name=p_leeching_l]').raw().disabled = !$('input[name=p_leeching_c]').raw().checked;
50
   $('input[name=p_leeching_l]').raw().disabled = !$('input[name=p_leeching_c]').raw().checked;
52
   $('input[name=p_snatched_l]').raw().disabled = !$('input[name=p_snatched_c]').raw().checked;
51
   $('input[name=p_snatched_l]').raw().disabled = !$('input[name=p_snatched_c]').raw().checked;
56
   UncheckIfDisabled($('input[name=p_requestsvoted_list]').raw());
55
   UncheckIfDisabled($('input[name=p_requestsvoted_list]').raw());
57
   UncheckIfDisabled($('input[name=p_uploads_l]').raw());
56
   UncheckIfDisabled($('input[name=p_uploads_l]').raw());
58
   UncheckIfDisabled($('input[name=p_uniquegroups_l]').raw());
57
   UncheckIfDisabled($('input[name=p_uniquegroups_l]').raw());
59
-  UncheckIfDisabled($('input[name=p_perfectflacs_l]').raw());
60
   UncheckIfDisabled($('input[name=p_seeding_l]').raw());
58
   UncheckIfDisabled($('input[name=p_seeding_l]').raw());
61
   UncheckIfDisabled($('input[name=p_leeching_l]').raw());
59
   UncheckIfDisabled($('input[name=p_leeching_l]').raw());
62
   UncheckIfDisabled($('input[name=p_snatched_l]').raw());
60
   UncheckIfDisabled($('input[name=p_snatched_l]').raw());
67
     $('input[name=p_uniquegroups_l]').raw().checked = true;
65
     $('input[name=p_uniquegroups_l]').raw().checked = true;
68
     $('input[name=p_uniquegroups_c]').raw().disabled = true;
66
     $('input[name=p_uniquegroups_c]').raw().disabled = true;
69
     $('input[name=p_uniquegroups_l]').raw().disabled = true;
67
     $('input[name=p_uniquegroups_l]').raw().disabled = true;
70
-    $('input[name=p_perfectflacs_c]').raw().checked = true;
71
-    $('input[name=p_perfectflacs_l]').raw().checked = true;
72
-    $('input[name=p_perfectflacs_c]').raw().disabled = true;
73
-    $('input[name=p_perfectflacs_l]').raw().disabled = true;
74
     $('input[type=checkbox][name=p_artistsadded]').raw().checked = true;
68
     $('input[type=checkbox][name=p_artistsadded]').raw().checked = true;
75
     $('input[type=checkbox][name=p_artistsadded]').raw().disabled = true;
69
     $('input[type=checkbox][name=p_artistsadded]').raw().disabled = true;
76
   } else {
70
   } else {
77
     $('input[name=p_uniquegroups_c]').raw().disabled = false;
71
     $('input[name=p_uniquegroups_c]').raw().disabled = false;
78
     $('input[name=p_uniquegroups_l]').raw().checked = false;
72
     $('input[name=p_uniquegroups_l]').raw().checked = false;
79
     $('input[name=p_uniquegroups_l]').raw().disabled = true;
73
     $('input[name=p_uniquegroups_l]').raw().disabled = true;
80
-    $('input[name=p_perfectflacs_c]').raw().disabled = false;
81
     $('input[type=checkbox][name=p_artistsadded]').raw().disabled = false;
74
     $('input[type=checkbox][name=p_artistsadded]').raw().disabled = false;
82
   }
75
   }
83
   if ($('input[name=p_collagecontribs_l]').raw().checked) {
76
   if ($('input[name=p_collagecontribs_l]').raw().checked) {

Loading…
Cancel
Save