quick-reply.js: reposition the elements
This commit is contained in:
parent
f6415f7d69
commit
f8f0da92d4
@ -29,7 +29,7 @@
|
|||||||
$('<style type="text/css" id="quick-reply-css">\
|
$('<style type="text/css" id="quick-reply-css">\
|
||||||
#quick-reply {\
|
#quick-reply {\
|
||||||
position: fixed;\
|
position: fixed;\
|
||||||
right: 0;\
|
right: 5%;\
|
||||||
top: 5%;\
|
top: 5%;\
|
||||||
float: right;\
|
float: right;\
|
||||||
display: block;\
|
display: block;\
|
||||||
@ -383,20 +383,20 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var floating_link = function() {
|
var floating_link = function() {
|
||||||
if (!settings.get('floating_link', false))
|
if (!settings.get('floating_link', true))
|
||||||
return;
|
return;
|
||||||
$('<a href="javascript:void(0)" class="quick-reply-btn">Quick Reply</a>')
|
$('<a href="javascript:void(0)" class="quick-reply-btn">Quick Reply</a>')
|
||||||
.click(function() {
|
.click(function() {
|
||||||
show_quick_reply();
|
show_quick_reply();
|
||||||
$(this).remove();
|
$(this).remove();
|
||||||
}).prependTo($('body'));
|
}).appendTo($('body'));
|
||||||
|
|
||||||
$(window).on('quick-reply', function() {
|
$(window).on('quick-reply', function() {
|
||||||
$('.quick-reply-btn').remove();
|
$('.quick-reply-btn').remove();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (settings.get('floating_link', false)) {
|
if (settings.get('floating_link', true)) {
|
||||||
$(window).ready(function() {
|
$(window).ready(function() {
|
||||||
if($('div.banner').length == 0)
|
if($('div.banner').length == 0)
|
||||||
return;
|
return;
|
||||||
@ -404,7 +404,7 @@
|
|||||||
a.quick-reply-btn {\
|
a.quick-reply-btn {\
|
||||||
position: fixed;\
|
position: fixed;\
|
||||||
right: 0;\
|
right: 0;\
|
||||||
top: 0;\
|
bottom: 0;\
|
||||||
display: block;\
|
display: block;\
|
||||||
padding: 5px 13px;\
|
padding: 5px 13px;\
|
||||||
text-decoration: none;\
|
text-decoration: none;\
|
||||||
|
Loading…
Reference in New Issue
Block a user