$(document).ready(function() {
	$('#board-info p').click(function() {
		$(this).parent().addClass('edit');
		$('#board-info p').each(function(index, element) {
			$(element).next().val(element.innerHTML);
		});
		$(this).next().focus();
	});

	$('#board-info input.submit').click(function() {
		$('#board-info p').each(function(index, element) {
			element.innerHTML = $(element).next().val();
		});
		$(this).parent().removeClass('edit');

		$.ajax({
			type: "POST",
			url: baseUrl + "/admin/ajax/board_config",
			data: {
				board_title: $('#board-info input.title').val(),
				board_description: $('#board-info input.description').val()
			}
		}).done(function(data) {
			alert('saved');
		});
	});

	$(document).on('change', '.js-save-on-change', function() {
        var $field = $(this);
        var name = $field.attr('name');
        var value = $field.val();

        $field.closest('.setting').trigger('changed', [name, value]);
    });

    $(document).on('changed', '.setting', function(event, name, value) {
        var $setting = $(this);
        var old = $setting.data('old');

        $setting.removeClass('saved').addClass('saving');

        if (old !== value) {
            FluxBB.ajax('POST', 'admin/settings/' + name, {
                value: value
            }).success(function(data) {
                $setting.data('old', value);
                $setting.addClass('saved');
            }).always(function() {
                $setting.removeClass('saving');
            });
        }
    });
});

@@ -1,709 +1,24 @@
-$(document).ready(function() %7B%0A%09$('#board-info p').click(function() %7B%0A%09%09$(this).parent().addClass('edit');%0A%09%09$('#board-info p').each(function(index, element) %7B%0A%09%09%09$(element).next().val(element.innerHTML);%0A%09%09%7D);%0A%09%09$(this).next().focus();%0A%09%7D);%0A%0A%09$('#board-info input.submit').click(function() %7B%0A%09%09$('#board-info p').each(function(index, element) %7B%0A%09%09%09element.innerHTML = $(element).next().val();%0A%09%09%7D);%0A%09%09$(this).parent().removeClass('edit');%0A%0A%09%09$.ajax(%7B%0A%09%09%09type: %22POST%22,%0A%09%09%09url: baseUrl + %22/admin/ajax/board_config%22,%0A%09%09%09data: %7B%0A%09%09%09%09board_title: $('#board-info input.title').val(),%0A%09%09%09%09board_description: $('#board-info input.description').val()%0A%09%09%09%7D%0A%09%09%7D).done(function(data) %7B%0A%09%09%09alert('saved');%0A%09%09%7D);%0A%09%7D);%0A
+jQuery(function($) %7B
 %0A%09$(

Clean up old admin JavaScript.