Browse Source

Fix instability of multiple avatars

spaghetti 8 years ago
parent
commit
417cb58be0
2 changed files with 13 additions and 27 deletions
  1. 4
    17
      sections/user/edit.php
  2. 9
    10
      static/functions/comments.js

+ 4
- 17
sections/user/edit.php View File

224
           </div>
224
           </div>
225
         </td>
225
         </td>
226
       </tr>
226
       </tr>
227
-      <tr id="tor_gdisp_artist_tr">
228
-        <td class="label tooltip" title="On artist pages, &quot;open&quot; will expand release type sections by default, and &quot;closed&quot; will collapse release type sections by default."><strong>Release type display (artist pages)</strong></td>
229
-        <td>
230
-          <ul class="options_list nobullet">
231
-            <li>
232
-              <input type="radio" name="discogview" id="discog_view_open" value="0"<?=$SiteOptions['DiscogView'] == 0 ? ' checked="checked"' : ''?> />
233
-              <label for="discog_view_open">Open</label>
234
-            </li>
235
-            <li>
236
-              <input type="radio" name="discogview" id="discog_view_closed" value="1"<?=$SiteOptions['DiscogView'] == 1 ? ' checked="checked"' : ''?> />
237
-              <label for="discog_view_closed">Closed</label>
238
-            </li>
239
-          </ul>
240
-        </td>
241
-      </tr>
242
       <tr id="tor_snatched_tr">
227
       <tr id="tor_snatched_tr">
243
         <td class="label tooltip" title="Enabling the snatched torrents indicator will display &quot;Snatched!&quot; next to torrents you've snatched."><strong>Snatched torrents indicator</strong></td>
228
         <td class="label tooltip" title="Enabling the snatched torrents indicator will display &quot;Snatched!&quot; next to torrents you've snatched."><strong>Snatched torrents indicator</strong></td>
244
         <td>
229
         <td>
246
           <label for="showsnatched">Enable snatched torrents indicator</label>
231
           <label for="showsnatched">Enable snatched torrents indicator</label>
247
         </td>
232
         </td>
248
       </tr>
233
       </tr>
249
-<!--      <tr>
234
+<? /* ?>
235
+      <tr>
250
         <td class="label"><strong>Collage album art view</strong></td>
236
         <td class="label"><strong>Collage album art view</strong></td>
251
         <td>
237
         <td>
252
           <select name="hidecollage" id="hidecollage">
238
           <select name="hidecollage" id="hidecollage">
254
             <option value="1"<?=$SiteOptions['HideCollage'] == 1 ? ' selected="selected"' : ''?>>Hide album art</option>
240
             <option value="1"<?=$SiteOptions['HideCollage'] == 1 ? ' selected="selected"' : ''?>>Hide album art</option>
255
           </select>
241
           </select>
256
         </td>
242
         </td>
257
-      </tr>-->
243
+        </tr>
244
+<? */ ?>
258
       <tr id="tor_cover_tor_tr">
245
       <tr id="tor_cover_tor_tr">
259
         <td class="label tooltip" title="Enabling cover artwork for torrents will show cover artwork next to torrent information. Enabling additional cover artwork will display all additional cover artwork as well."><strong>Cover art (torrents)</strong></td>
246
         <td class="label tooltip" title="Enabling cover artwork for torrents will show cover artwork next to torrent information. Enabling additional cover artwork will display all additional cover artwork as well."><strong>Cover art (torrents)</strong></td>
260
         <td>
247
         <td>

+ 9
- 10
static/functions/comments.js View File

402
         image = new Image();
402
         image = new Image();
403
         image.src = secondAvatar;
403
         image.src = secondAvatar;
404
       }
404
       }
405
-      $(this).mouseover(function() {
406
-//        $(this).fadeOut(fadeSpeed, function() {
407
-          $(this).attr("src", secondAvatar);
408
-//        }).fadeIn(fadeSpeed);
409
-      });
410
-      $(this).mouseout(function() {
411
-//        $(this).fadeOut(fadeSpeed, function() {
412
-          $(this).attr("src", originalAvatar);
413
-//        }).fadeIn(fadeSpeed);
414
-      });
405
+      var that = $(this)
406
+      $($(this).raw().parentNode.parentNode).hover(
407
+        function() {
408
+          that.attr("src", secondAvatar);
409
+        },
410
+        function() {
411
+          that.attr("src", originalAvatar);
412
+        }
413
+      );
415
       $(this).one("load", function() {
414
       $(this).one("load", function() {
416
           var par = $(this).parents('.avatar');
415
           var par = $(this).parents('.avatar');
417
           if (par.height()) {
416
           if (par.height()) {

Loading…
Cancel
Save