v1.18.x
psychobunny 11 years ago
parent f86e4256a1
commit b877a4e7b4

@ -1,5 +1,5 @@
"use strict"; "use strict";
/*global define, app, socket, RELATIVE_PATH */ /*global define, app, socket, Hammer, RELATIVE_PATH */
define('forum/admin/footer', ['forum/admin/settings'], function(Settings) { define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
var acpIndex; var acpIndex;
@ -42,7 +42,7 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
$(window).on('scroll', function() { $(window).on('scroll', function() {
$('#main-menu').height($(window).height() + 20); $('#main-menu').height($(window).height() + 20);
}) });
} }
function setupMainMenu() { function setupMainMenu() {
@ -55,8 +55,7 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
$('.nano').nanoScroller(); $('.nano').nanoScroller();
$('#main-menu .nav-list > li a').append('<span class="pull-right"><i class="fa fa-inverse fa-arrow-circle-right"></i>&nbsp;</span>') $('#main-menu .nav-list > li a').append('<span class="pull-right"><i class="fa fa-inverse fa-arrow-circle-right"></i>&nbsp;</span>');
} }
function selectMenuItem(url) { function selectMenuItem(url) {
@ -112,6 +111,10 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
value = $input.val().toLowerCase(), value = $input.val().toLowerCase(),
menuItems = $('#acp-search .dropdown-menu').html(''); menuItems = $('#acp-search .dropdown-menu').html('');
function toUpperCase(txt){
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
}
if (value.length >= 3) { if (value.length >= 3) {
for (var file in acpIndex) { for (var file in acpIndex) {
if (acpIndex.hasOwnProperty(file)) { if (acpIndex.hasOwnProperty(file)) {
@ -127,7 +130,7 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
if (title.hasOwnProperty(t)) { if (title.hasOwnProperty(t)) {
title[t] = title[t] title[t] = title[t]
.replace('-', ' ') .replace('-', ' ')
.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();}); .replace(/\w\S*/g, toUpperCase);
} }
} }

Loading…
Cancel
Save