Skip to content

Instantly share code, notes, and snippets.

@Echos
Created January 14, 2013 05:50
Show Gist options
  • Save Echos/4527980 to your computer and use it in GitHub Desktop.
Save Echos/4527980 to your computer and use it in GitHub Desktop.
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