quick-reply.js: let's settle on disabled floating link by default

Conflicts:
	js/settings.js
This commit is contained in:
czaks 2013-12-27 15:46:59 +01:00 committed by Michael Foster
parent d7bcdfa81a
commit 0c449f32db
2 changed files with 7 additions and 3 deletions

View File

@ -393,7 +393,7 @@
}); });
var floating_link = function() { var floating_link = function() {
if (!settings.get('floating_link', true)) if (!settings.get('floating_link', false))
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() {
@ -406,7 +406,7 @@
}); });
}; };
if (settings.get('floating_link', true)) { if (settings.get('floating_link', false)) {
$(window).ready(function() { $(window).ready(function() {
if($('div.banner').length == 0) if($('div.banner').length == 0)
return; return;

View File

@ -30,7 +30,11 @@ tb_settings['quick-reply'] = {
// Hide form when scrolled to top of page (where original form is visible) // Hide form when scrolled to top of page (where original form is visible)
hide_at_top: true, hide_at_top: true,
// "Quick reply" button floating at the top right hand corner of the page at all times // "Quick reply" button floating at the top right hand corner of the page at all times
floating_link: true floating_link: false,
// Show remote in quick reply
show_remote: false,
// Show embedding in quick reply
show_embed: false
}; };
// ajax.js // ajax.js