Created
January 14, 2013 05:50
-
-
Save Echos/4527980 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/public/js/default.js b/public/js/default.js | |
index c2d6785..6dd6248 100644 | |
--- a/public/js/default.js | |
+++ b/public/js/default.js | |
@@ -409,9 +409,10 @@ $(function(){ | |
*/ | |
$('#new-res-notice-text').each(function(){ | |
var notice = $(this); | |
+ var link = $('a',this); | |
var notice_count = notice.text().match(/\d+/); | |
var notice_text = notice.text(); | |
- notice.empty().append(notice_text.replace(notice_count, '<span class="new-res-count">'+notice_count+'</span>')); | |
+ notice.empty().append(link.empty().append(notice_text.replace(notice_count, '<span class="new-res-count">'+notice_count+'</span>'))); | |
if(notice_count != '0'){ | |
$('#new-res-size-main').show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment