|
|
@ -5,7 +5,10 @@ define('admin/settings', ['uploader', 'mousetrap'], function (uploader, mousetra
|
|
|
|
var Settings = {};
|
|
|
|
var Settings = {};
|
|
|
|
|
|
|
|
|
|
|
|
Settings.populateTOC = function () {
|
|
|
|
Settings.populateTOC = function () {
|
|
|
|
$('.settings-header').each(function () {
|
|
|
|
var headers = $('.settings-header');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (headers.length > 1) {
|
|
|
|
|
|
|
|
headers.each(function () {
|
|
|
|
var header = $(this).text();
|
|
|
|
var header = $(this).text();
|
|
|
|
var anchor = header.toLowerCase().replace(/ /g, '-').trim();
|
|
|
|
var anchor = header.toLowerCase().replace(/ /g, '-').trim();
|
|
|
|
|
|
|
|
|
|
|
@ -19,6 +22,9 @@ define('admin/settings', ['uploader', 'mousetrap'], function (uploader, mousetra
|
|
|
|
scrollTop: (scrollTo.offset().top) + 'px',
|
|
|
|
scrollTop: (scrollTo.offset().top) + 'px',
|
|
|
|
}, 400);
|
|
|
|
}, 400);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('.content-header').parents('.row').remove();
|
|
|
|
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Settings.prepare = function (callback) {
|
|
|
|
Settings.prepare = function (callback) {
|
|
|
|