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,21 +224,6 @@ echo $Val->GenerateJS('userform');
224 224
           </div>
225 225
         </td>
226 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 227
       <tr id="tor_snatched_tr">
243 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 229
         <td>
@@ -246,7 +231,8 @@ echo $Val->GenerateJS('userform');
246 231
           <label for="showsnatched">Enable snatched torrents indicator</label>
247 232
         </td>
248 233
       </tr>
249
-<!--      <tr>
234
+<? /* ?>
235
+      <tr>
250 236
         <td class="label"><strong>Collage album art view</strong></td>
251 237
         <td>
252 238
           <select name="hidecollage" id="hidecollage">
@@ -254,7 +240,8 @@ echo $Val->GenerateJS('userform');
254 240
             <option value="1"<?=$SiteOptions['HideCollage'] == 1 ? ' selected="selected"' : ''?>>Hide album art</option>
255 241
           </select>
256 242
         </td>
257
-      </tr>-->
243
+        </tr>
244
+<? */ ?>
258 245
       <tr id="tor_cover_tor_tr">
259 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 247
         <td>

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

@@ -402,16 +402,15 @@ $(document).ready(function() {
402 402
         image = new Image();
403 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 414
       $(this).one("load", function() {
416 415
           var par = $(this).parents('.avatar');
417 416
           if (par.height()) {

Loading…
Cancel
Save