mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
Fix bug share
https://github.com/FreshRSS/FreshRSS/issues/1289 Was using deprecated non-standard parameter in string.replace() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Firefox-specific_notes
This commit is contained in:
1 parent
c5c3011edf
commit
189692e6ad
1 file changed
+4
-4
+4
-4
@@ -1153,10 +1153,10 @@ function init_share_observers() {
|
||||
$('.share.add').on('click', function(e) {
|
||||
var opt = $(this).siblings('select').find(':selected');
|
||||
var row = $(this).parents('form').data(opt.data('form'));
|
||||
row = row.replace('##label##', opt.html().trim(), 'g');
|
||||
row = row.replace('##type##', opt.val(), 'g');
|
||||
row = row.replace('##help##', opt.data('help'), 'g');
|
||||
row = row.replace('##key##', shares, 'g');
|
||||
row = row.replace(/##label##/g, opt.html().trim());
|
||||
row = row.replace(/##type##/g, opt.val());
|
||||
row = row.replace(/##help##/g, opt.data('help'));
|
||||
row = row.replace(/##key##/g, shares);
|
||||
$(this).parents('.form-group').before(row);
|
||||
shares++;
|
||||
|
||||
|
||||
Reference in new issue
Block a user