replyto = '@' + nick + ' ';
text.val(replyto + text.val().replace(RegExp(replyto, 'i'), ''));
$('#'+SN.C.S.FormNotice+' input#'+SN.C.S.NoticeInReplyTo).val(id);
- if (text.get(0).setSelectionRange) {
+ if (text[0].setSelectionRange) {
var len = text.val().length;
- text.get(0).setSelectionRange(len,len);
- text.get(0).focus();
+ text[0].setSelectionRange(len,len);
+ text[0].focus();
}
return false;
}
var NDMF = $('.entity_send-a-message form');
if (NDMF.length == 0) {
$.get(NDM.attr('href'), null, function(data) {
- $('.entity_send-a-message').append(document._importNode($('form', data).get(0), true));
+ $('.entity_send-a-message').append(document._importNode($('form', data)[0], true));
NDMF = $('.entity_send-a-message .form_notice');
SN.U.FormNoticeEnhancements(NDMF);
NDMF.append('<button class="close">×</button>');
$_config_files[] = INSTALLDIR.'/config.php';
}
+global $_have_a_config;
$_have_a_config = false;
foreach ($_config_files as $_config_file) {
// XXX: Throw a conniption if database not installed
// XXX: Find a way to use htmlwriter for this instead of handcoded markup
if (!_have_config()) {
- echo '<p>'. _('No configuation file found. ') .'</p>';
+ echo '<p>'. _('No configuration file found. ') .'</p>';
echo '<p>'. _('I looked for configuration files in the following places: ') .'<br/> '. implode($_config_files, '<br/>');
echo '<p>'. _('You may wish to run the installer to fix this.') .'</p>';
echo '<a href="install.php">'. _('Go to the installer.') .'</a>';
right:-1px;
padding:1.795%;
width:65%;
-z-index:1;
+z-index:2;
border-radius:7px;
-moz-border-radius:7px;
-webkit-radius-border:7px;
.notice-options .notice_delete,
#new_group a,
.pagination .nav_prev a,
-.pagination .nav_next a {
+.pagination .nav_next a,
+button.close {
background-image:url(../../base/images/icons/icons-01.png);
background-repeat:no-repeat;
background-color:transparent;
}
button.close {
-background-image:url(../../base/images/icons/twotone/green/x.gif);
-background-repeat:no-repeat;
-background-position:0 47%;
-background-color:transparent;
+background-position:0 -1120px;
}
#anon_notice {
.notice-options .notice_delete,
#new_group a,
.pagination .nav_prev a,
-.pagination .nav_next a {
+.pagination .nav_next a,
+button.close {
background-image:url(../../base/images/icons/icons-01.png);
background-repeat:no-repeat;
background-color:transparent;
}
button.close {
-background-image:url(../../base/images/icons/twotone/green/x.gif);
-background-repeat:no-repeat;
-background-position:0 47%;
-background-color:transparent;
+background-position:0 -1120px;
}
#anon_notice {