mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Adding custom site url to goodies.
This commit is contained in:
parent
d50067b40a
commit
048b40897b
3 changed files with 26 additions and 3 deletions
|
@ -4362,6 +4362,13 @@ background: transparent;
|
|||
background: transparent url('../img/reader/safari.png') no-repeat 0 0;
|
||||
}
|
||||
|
||||
.NB-modal-goodies .NB-goodies-custom-input {
|
||||
float: right;
|
||||
width: 220px;
|
||||
border: 1px solid #909090;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
/* ============================ */
|
||||
/* = Keyboard Shortcuts Modal = */
|
||||
/* ============================ */
|
||||
|
|
|
@ -4,7 +4,7 @@ NEWSBLUR.generate_bookmarklet = function() {
|
|||
var $bookmarklet = $.make('a', {
|
||||
className: 'NB-goodies-bookmarklet-button',
|
||||
href: href
|
||||
}, 'Add to NewsBlur');
|
||||
}, 'Subscribe in NewsBlur');
|
||||
|
||||
return $bookmarklet;
|
||||
};
|
|
@ -28,7 +28,7 @@ NEWSBLUR.ReaderGoodies.prototype = {
|
|||
$.make('a', {
|
||||
className: 'NB-goodies-firefox-link NB-modal-submit-button NB-modal-submit-green',
|
||||
href: '#'
|
||||
}, 'Add NewsBlur to Firefox'),
|
||||
}, 'Add to Firefox'),
|
||||
$.make('div', { className: 'NB-goodies-firefox' }),
|
||||
$.make('div', { className: 'NB-goodies-title' }, 'Firefox: Register Newsblur as an RSS reader')
|
||||
]),
|
||||
|
@ -36,9 +36,17 @@ NEWSBLUR.ReaderGoodies.prototype = {
|
|||
$.make('a', {
|
||||
className: 'NB-goodies-safari-link NB-modal-submit-button NB-modal-submit-green',
|
||||
href: '#'
|
||||
}, 'Add NewsBlur to Safari'),
|
||||
}, 'Add to Safari'),
|
||||
$.make('div', { className: 'NB-goodies-safari' }),
|
||||
$.make('div', { className: 'NB-goodies-title' }, 'Safari: Register Newsblur as an RSS reader')
|
||||
]),
|
||||
$.make('div', { className: 'NB-goodies-group NB-modal-submit' }, [
|
||||
$.make('input', {
|
||||
className: 'NB-goodies-custom-input',
|
||||
value: 'http://www.newsblur.com/?url=BLOG_URL_GOES_HERE'
|
||||
}),
|
||||
$.make('div', { className: 'NB-goodies-custom' }),
|
||||
$.make('div', { className: 'NB-goodies-title' }, 'Custom Add Site URL')
|
||||
])
|
||||
]);
|
||||
},
|
||||
|
@ -54,6 +62,9 @@ NEWSBLUR.ReaderGoodies.prototype = {
|
|||
dialog.overlay.fadeIn(200, function () {
|
||||
dialog.container.fadeIn(200);
|
||||
dialog.data.fadeIn(200);
|
||||
setTimeout(function() {
|
||||
$(window).resize();
|
||||
});
|
||||
});
|
||||
},
|
||||
'onShow': function(dialog) {
|
||||
|
@ -97,6 +108,11 @@ NEWSBLUR.ReaderGoodies.prototype = {
|
|||
|
||||
window.location.href = NEWSBLUR.Globals.MEDIA_URL + 'NewsBlur Safari Helper.app';
|
||||
});
|
||||
|
||||
$.targetIs(e, { tagSelector: '.NB-goodies-custom-input' }, function($t, $p) {
|
||||
e.preventDefault();
|
||||
$t.select();
|
||||
});
|
||||
}
|
||||
|
||||
};
|
Loading…
Add table
Reference in a new issue