4 * Ajatus - Distributed CRM
5 * @requires jQuery v1.2.1
7 * Copyright (c) 2007 Jerry Jalava <jerry.jalava@gmail.com>
8 * Copyright (c) 2007 Nemein Oy <http://nemein.com>
9 * Website: http://ajatus.info
10 * Licensed under the GPL license
11 * http://www.gnu.org/licenses/gpl.html
16 $.ajatus = $.ajatus || {};
17 $.ajatus.layout = $.ajatus.layout || {};
21 $.ajatus.layout.body = {
23 $.extend($.ajatus.layout.body, {
24 set_class: function(new_class) {
25 $('body').attr('class', new_class);
27 append_class: function(class_name) {
28 $('body').addClass(class_name);
32 $.ajatus.layout.styles = {
35 $.extend($.ajatus.layout.styles, {
36 load: function(style) {
37 if ($.ajatus.layout.styles.loaded[style]) {
41 $.ajatus.layout.styles.loaded[style] = true;
43 var style_tag = $('<link rel="stylesheet" href="' + style + '" type="text/css">');
45 if ($.browser.mozilla) {
46 $('head').prepend(style_tag);
48 style_tag.prependTo($.ajatus.application_element);