diff --git a/js/util.js b/js/util.js index 2104598445..b572846b7c 100644 --- a/js/util.js +++ b/js/util.js @@ -287,10 +287,10 @@ var SN = { // StatusNet 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; } @@ -369,7 +369,7 @@ var SN = { // StatusNet 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(''); diff --git a/lib/common.php b/lib/common.php index 2c2f6869ee..68bdbf2293 100644 --- a/lib/common.php +++ b/lib/common.php @@ -169,6 +169,7 @@ if (isset($conffile)) { $_config_files[] = INSTALLDIR.'/config.php'; } +global $_have_a_config; $_have_a_config = false; foreach ($_config_files as $_config_file) { @@ -187,7 +188,7 @@ function _have_config() // 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 '

'. _('No configuation file found. ') .'

'; + echo '

'. _('No configuration file found. ') .'

'; echo '

'. _('I looked for configuration files in the following places: ') .'
'. implode($_config_files, '
'); echo '

'. _('You may wish to run the installer to fix this.') .'

'; echo ''. _('Go to the installer.') .''; diff --git a/theme/base/css/display.css b/theme/base/css/display.css index fb630d58a6..878662c562 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -693,7 +693,7 @@ top:34px; right:-1px; padding:1.795%; width:65%; -z-index:1; +z-index:2; border-radius:7px; -moz-border-radius:7px; -webkit-radius-border:7px; diff --git a/theme/base/images/icons/icons-01.png b/theme/base/images/icons/icons-01.png index c4e3713302..f83c30177c 100644 Binary files a/theme/base/images/icons/icons-01.png and b/theme/base/images/icons/icons-01.png differ diff --git a/theme/base/images/icons/twotone/green/x.gif b/theme/base/images/icons/twotone/green/x.gif new file mode 100644 index 0000000000..ffb2efea00 Binary files /dev/null and b/theme/base/images/icons/twotone/green/x.gif differ diff --git a/theme/default/css/display.css b/theme/default/css/display.css index 40fdb255b9..910f915a86 100644 --- a/theme/default/css/display.css +++ b/theme/default/css/display.css @@ -115,7 +115,8 @@ opacity:0; .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; @@ -167,10 +168,7 @@ background-color:#EFF3DC; } 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 { diff --git a/theme/identica/css/display.css b/theme/identica/css/display.css index 3b59652c41..2aa087331e 100644 --- a/theme/identica/css/display.css +++ b/theme/identica/css/display.css @@ -115,7 +115,8 @@ opacity:0; .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; @@ -167,10 +168,7 @@ background-color:#EFF3DC; } 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 {