Skip to content

Commit

Permalink
implements #376 (linkify meta diamond dialog title)
Browse files Browse the repository at this point in the history
  • Loading branch information
shu8 committed Jan 8, 2019
1 parent 13f8831 commit ccda30c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions sox.features.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@
metaNewQuestionAlert: function() {
// Description: For adding a fake mod diamond that notifies you if there has been a new post posted on the current site's meta

//DO NOT RUN ON META OR CHAT OR SITES WITHOUT A META
//Do not run on meta, chat, or sites without a meta
if ((sox.site.type != 'main' && sox.site.type != 'beta') || !$('.related-site').length) return;

var NEWQUESTIONS = 'metaNewQuestionAlert-lastQuestions';
Expand All @@ -949,9 +949,11 @@
});
var $header = $('<div/>', {
'class': 'header',
}).append($('<h3/>', {
}).append($('<h3/>').append($('<a/>', {
text: 'new meta posts',
}));
href: `//meta.${sox.site.url}`,
style: 'color: #0077cc',
})));
var $content = $('<div/>', {
'class': 'modal-content',
});
Expand Down
2 changes: 1 addition & 1 deletion sox.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @namespace https://github.com/soscripted/sox
// @homepage https://github.com/soscripted/sox
// @homepageURL https://github.com/soscripted/sox
// @version 2.3.21 DEV
// @version 2.3.22 DEV
// @description Extra optional features for Stack Overflow and Stack Exchange sites
// @contributor ᴉʞuǝ (https://stackoverflow.com/users/1454538/, https://github.com/mezmi)
// @contributor ᔕᖺᘎᕊ (https://stackexchange.com/users/4337810/, https://github.com/shu8)
Expand Down

0 comments on commit ccda30c

Please sign in to comment.