Modified: ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/js/application.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/js/application.js?rev=924378&r1=924377&r2=924378&view=diff ============================================================================== --- ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/js/application.js (original) +++ ofbiz/trunk/themes/bizznesstime/webapp/bizznesstime/js/application.js Wed Mar 17 17:28:01 2010 @@ -28,50 +28,50 @@ adds functionality to style layout eleme **************************************************/ //ADD CLEARFIX STYLING TO MAIN CONTENT AREA OFBIZ.clearFix = function(){ - if($$('.contentarea')){ - $$('.contentarea').each(function(elm) { - $(elm).addClassName('clearfix'); - }); - } + if($$('.contentarea')){ + $$('.contentarea').each(function(elm) { + $(elm).addClassName('clearfix'); + }); + } } //GLOBAL FUNCTION FOR APP DROP-DROWN SECTIONS OFBIZ.initExpansion = function() { - if($$('.contracted')){ - $$('.contracted').each(function(elm) { - $(elm).next().style.display = 'none'; - }); - } - if($$('.expanded, .contracted')) { - $$('.expanded, .contracted').each(function(elm) { - $(elm).onclick = function() { - Effect.toggle($(elm).next(),'blind',{ - duration : .2, - afterFinish: function() { - if($(elm).next().visible()) { - $(elm).removeClassName('contracted'); - $(elm).addClassName('expanded'); - } else { - $(elm).removeClassName('expanded'); - $(elm).addClassName('contracted'); - } - } - }); - } - }); - } + if($$('.contracted')){ + $$('.contracted').each(function(elm) { + $(elm).next().style.display = 'none'; + }); + } + if($$('.expanded, .contracted')) { + $$('.expanded, .contracted').each(function(elm) { + $(elm).onclick = function() { + Effect.toggle($(elm).next(),'blind',{ + duration : .2, + afterFinish: function() { + if($(elm).next().visible()) { + $(elm).removeClassName('contracted'); + $(elm).addClassName('expanded'); + } else { + $(elm).removeClassName('expanded'); + $(elm).addClassName('contracted'); + } + } + }); + } + }); + } } OFBIZ.Effect = Object.extend({}, Effect); Object.extend(Element,{ - findElement: function(element, tagName) { - var element = $(element); - while (element.parentNode && (!element.tagName || - (element.tagName.toUpperCase() != tagName.toUpperCase()))) - element = element.parentNode; - return $(element); - } + findElement: function(element, tagName) { + var element = $(element); + while (element.parentNode && (!element.tagName || + (element.tagName.toUpperCase() != tagName.toUpperCase()))) + element = element.parentNode; + return $(element); + } }); /***************************************************** @@ -81,7 +81,7 @@ consistent cross browser form platforms don't support input:focus (cough, cough, IE, cough) *****************************************************/ Event.observe(window, 'load', function() { - var fields = $$("input, textarea"); + var fields = $$("input, textarea"); for (var i = 0; i < fields.length; i++) { fields[i].onfocus = function() {this.className += ' focused';} fields[i].onblur = function() {this.className = this.className.replace('focused', '');} @@ -97,46 +97,46 @@ message automatically fades on keypress, ********************************************************/ //SUCCESS AND ERROR MESSAGE NOTIFICATIONS var humanMsg = { - setup: function(appendTo, msgOpacity) { - humanMsg.msgID = 'humanMsg'; - appendTo = appendTo || $$('body')[0]; - humanMsg.msgOpacity = 0.5; - if (msgOpacity !== undefined) { - humanMsg.msgOpacity = parseFloat(msgOpacity); - } - var myTemplate = new Template( - '<div id="#{msgID}" class="humanMsg" style="display:none;">'+ - '<div></div>'+ - '</div> '); - var show = {msgID: humanMsg.msgID}; - appendTo.insert(myTemplate.evaluate(show)); - }, - displayMsg: function(msg) { - if (msg === '') { - return; - } - clearTimeout(humanMsg.t2); - // Inject message - var msgElement = $(humanMsg.msgID);; - msgElement.down('div').update(msg); - msgElement.appear({ duration: 0.2 }); - //humanMsg.t1 = setTimeout("humanMsg.bindEvents()", 700) - //humanMsg.t2 = setTimeout("humanMsg.removeMsg()", 5000) - msgElement.observe('click', humanMsg.removeMsg); - }, - // Remove message if mouse is moved or key is pressed - bindEvents: function() { - document.observe('mousemove', humanMsg.removeMsg) - .observe('click', humanMsg.removeMsg) - .observe('keypress', humanMsg.removeMsg); - }, - // Unbind mouse & keyboard - removeMsg: function() { - document.stopObserving('mousemove', humanMsg.removeMsg) - .stopObserving('click', humanMsg.removeMsg) - .stopObserving('keypress', humanMsg.removeMsg); - $(humanMsg.msgID).fade({ duration: 0.5, delay:0.5 }); - } + setup: function(appendTo, msgOpacity) { + humanMsg.msgID = 'humanMsg'; + appendTo = appendTo || $$('body')[0]; + humanMsg.msgOpacity = 0.5; + if (msgOpacity !== undefined) { + humanMsg.msgOpacity = parseFloat(msgOpacity); + } + var myTemplate = new Template( + '<div id="#{msgID}" class="humanMsg" style="display:none;">'+ + '<div></div>'+ + '</div> '); + var show = {msgID: humanMsg.msgID}; + appendTo.insert(myTemplate.evaluate(show)); + }, + displayMsg: function(msg) { + if (msg === '') { + return; + } + clearTimeout(humanMsg.t2); + // Inject message + var msgElement = $(humanMsg.msgID);; + msgElement.down('div').update(msg); + msgElement.appear({ duration: 0.2 }); + //humanMsg.t1 = setTimeout("humanMsg.bindEvents()", 700) + //humanMsg.t2 = setTimeout("humanMsg.removeMsg()", 5000) + msgElement.observe('click', humanMsg.removeMsg); + }, + // Remove message if mouse is moved or key is pressed + bindEvents: function() { + document.observe('mousemove', humanMsg.removeMsg) + .observe('click', humanMsg.removeMsg) + .observe('keypress', humanMsg.removeMsg); + }, + // Unbind mouse & keyboard + removeMsg: function() { + document.stopObserving('mousemove', humanMsg.removeMsg) + .stopObserving('click', humanMsg.removeMsg) + .stopObserving('keypress', humanMsg.removeMsg); + $(humanMsg.msgID).fade({ duration: 0.5, delay:0.5 }); + } }; /************************************************** @@ -146,45 +146,45 @@ in modal window instead of popup/new win **************************************************/ //PREFERENCES POPUPS ModalWindow = Class.create({ - initialize: function(){ - this.cont = ""; - this.overlay = ""; - this.win = ""; - this.container = new Element('div', {id:'modal-container'}); - var container = this.container; - $(document.body).insert({bottom:container}); - }, - show: function(element, overlay){ - this.close(); - this.cont = element; - if(overlay) this.overlay = this.container.appendChild(new Element('div', {'class':'modal-overlay'})); - this.win = this.container.appendChild(new Element('div', {'class':'modal-window'})); - this.win.insert({bottom:this.cont}); - }, - close: function(e){ - if(e) e.stop(); - this.container.childElements().invoke('remove'); - } + initialize: function(){ + this.cont = ""; + this.overlay = ""; + this.win = ""; + this.container = new Element('div', {id:'modal-container'}); + var container = this.container; + $(document.body).insert({bottom:container}); + }, + show: function(element, overlay){ + this.close(); + this.cont = element; + if(overlay) this.overlay = this.container.appendChild(new Element('div', {'class':'modal-overlay'})); + this.win = this.container.appendChild(new Element('div', {'class':'modal-window'})); + this.win.insert({bottom:this.cont}); + }, + close: function(e){ + if(e) e.stop(); + this.container.childElements().invoke('remove'); + } }); //LOAD MODAL PREFERENCE WINDOWS Event.observe(window, 'load', function() { - get = new ModalWindow(); - $("language").observe('click',function(e) { - var locale = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Languages, please wait..."); - var localeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); - get.show(locale,true); - }); - $("theme").observe('click',function(e) { - var look = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Themes, please wait..."); - var lookUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); - get.show(look,true); - }); - $("timezone").observe('click',function(e) { - var time = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Timezones, please wait..."); - var timeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); - get.show(time,true); - }); + get = new ModalWindow(); + $("language").observe('click',function(e) { + var locale = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Languages, please wait..."); + var localeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); + get.show(locale,true); + }); + $("theme").observe('click',function(e) { + var look = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Themes, please wait..."); + var lookUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); + get.show(look,true); + }); + $("timezone").observe('click',function(e) { + var time = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Timezones, please wait..."); + var timeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); + get.show(time,true); + }); }); /************************************************** @@ -192,9 +192,9 @@ LOAD 'EM UP **************************************************/ //LOAD GLOBAL APP FUNCTIONS document.observe('dom:loaded', function(){ - OFBIZ.clearFix(); - OFBIZ.initExpansion(); - humanMsg.setup(); + OFBIZ.clearFix(); + OFBIZ.initExpansion(); + humanMsg.setup(); }); Modified: ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/application.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/application.js?rev=924378&r1=924377&r2=924378&view=diff ============================================================================== --- ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/application.js (original) +++ ofbiz/trunk/themes/droppingcrumbs/webapp/droppingcrumbs/js/application.js Wed Mar 17 17:28:01 2010 @@ -28,50 +28,50 @@ adds functionality to style layout eleme **************************************************/ //ADD CLEARFIX STYLING TO MAIN CONTENT AREA OFBIZ.clearFix = function(){ - if($$('.contentarea')){ - $$('.contentarea').each(function(elm) { - $(elm).addClassName('clearfix'); - }); - } + if($$('.contentarea')){ + $$('.contentarea').each(function(elm) { + $(elm).addClassName('clearfix'); + }); + } } //GLOBAL FUNCTION FOR APP DROP-DROWN SECTIONS OFBIZ.initExpansion = function() { - if($$('.contracted')){ - $$('.contracted').each(function(elm) { - $(elm).next().style.display = 'none'; - }); - } - if($$('.expanded, .contracted')) { - $$('.expanded, .contracted').each(function(elm) { - $(elm).onclick = function() { - Effect.toggle($(elm).next(),'blind',{ - duration : .2, - afterFinish: function() { - if($(elm).next().visible()) { - $(elm).removeClassName('contracted'); - $(elm).addClassName('expanded'); - } else { - $(elm).removeClassName('expanded'); - $(elm).addClassName('contracted'); - } - } - }); - } - }); - } + if($$('.contracted')){ + $$('.contracted').each(function(elm) { + $(elm).next().style.display = 'none'; + }); + } + if($$('.expanded, .contracted')) { + $$('.expanded, .contracted').each(function(elm) { + $(elm).onclick = function() { + Effect.toggle($(elm).next(),'blind',{ + duration : .2, + afterFinish: function() { + if($(elm).next().visible()) { + $(elm).removeClassName('contracted'); + $(elm).addClassName('expanded'); + } else { + $(elm).removeClassName('expanded'); + $(elm).addClassName('contracted'); + } + } + }); + } + }); + } } OFBIZ.Effect = Object.extend({}, Effect); Object.extend(Element,{ - findElement: function(element, tagName) { - var element = $(element); - while (element.parentNode && (!element.tagName || - (element.tagName.toUpperCase() != tagName.toUpperCase()))) - element = element.parentNode; - return $(element); - } + findElement: function(element, tagName) { + var element = $(element); + while (element.parentNode && (!element.tagName || + (element.tagName.toUpperCase() != tagName.toUpperCase()))) + element = element.parentNode; + return $(element); + } }); /***************************************************** @@ -81,7 +81,7 @@ consistent cross browser form platforms don't support input:focus (cough, cough, IE, cough) *****************************************************/ Event.observe(window, 'load', function() { - var fields = $$("input, textarea"); + var fields = $$("input, textarea"); for (var i = 0; i < fields.length; i++) { fields[i].onfocus = function() {this.className += ' focused';} fields[i].onblur = function() {this.className = this.className.replace('focused', '');} @@ -97,46 +97,46 @@ message automatically fades on keypress, ********************************************************/ //SUCCESS AND ERROR MESSAGE NOTIFICATIONS var humanMsg = { - setup: function(appendTo, msgOpacity) { - humanMsg.msgID = 'humanMsg'; - appendTo = appendTo || $$('body')[0]; - humanMsg.msgOpacity = 0.5; - if (msgOpacity !== undefined) { - humanMsg.msgOpacity = parseFloat(msgOpacity); - } - var myTemplate = new Template( - '<div id="#{msgID}" class="humanMsg" style="display:none;">'+ - '<div></div>'+ - '</div> '); - var show = {msgID: humanMsg.msgID}; - appendTo.insert(myTemplate.evaluate(show)); - }, - displayMsg: function(msg) { - if (msg === '') { - return; - } - clearTimeout(humanMsg.t2); - // Inject message - var msgElement = $(humanMsg.msgID);; - msgElement.down('div').update(msg); - msgElement.appear({ duration: 0.2 }); - //humanMsg.t1 = setTimeout("humanMsg.bindEvents()", 700) - //humanMsg.t2 = setTimeout("humanMsg.removeMsg()", 5000) - msgElement.observe('click', humanMsg.removeMsg); - }, - // Remove message if mouse is moved or key is pressed - bindEvents: function() { - document.observe('mousemove', humanMsg.removeMsg) - .observe('click', humanMsg.removeMsg) - .observe('keypress', humanMsg.removeMsg); - }, - // Unbind mouse & keyboard - removeMsg: function() { - document.stopObserving('mousemove', humanMsg.removeMsg) - .stopObserving('click', humanMsg.removeMsg) - .stopObserving('keypress', humanMsg.removeMsg); - $(humanMsg.msgID).fade({ duration: 0.5, delay:0.5 }); - } + setup: function(appendTo, msgOpacity) { + humanMsg.msgID = 'humanMsg'; + appendTo = appendTo || $$('body')[0]; + humanMsg.msgOpacity = 0.5; + if (msgOpacity !== undefined) { + humanMsg.msgOpacity = parseFloat(msgOpacity); + } + var myTemplate = new Template( + '<div id="#{msgID}" class="humanMsg" style="display:none;">'+ + '<div></div>'+ + '</div> '); + var show = {msgID: humanMsg.msgID}; + appendTo.insert(myTemplate.evaluate(show)); + }, + displayMsg: function(msg) { + if (msg === '') { + return; + } + clearTimeout(humanMsg.t2); + // Inject message + var msgElement = $(humanMsg.msgID);; + msgElement.down('div').update(msg); + msgElement.appear({ duration: 0.2 }); + //humanMsg.t1 = setTimeout("humanMsg.bindEvents()", 700) + //humanMsg.t2 = setTimeout("humanMsg.removeMsg()", 5000) + msgElement.observe('click', humanMsg.removeMsg); + }, + // Remove message if mouse is moved or key is pressed + bindEvents: function() { + document.observe('mousemove', humanMsg.removeMsg) + .observe('click', humanMsg.removeMsg) + .observe('keypress', humanMsg.removeMsg); + }, + // Unbind mouse & keyboard + removeMsg: function() { + document.stopObserving('mousemove', humanMsg.removeMsg) + .stopObserving('click', humanMsg.removeMsg) + .stopObserving('keypress', humanMsg.removeMsg); + $(humanMsg.msgID).fade({ duration: 0.5, delay:0.5 }); + } }; /************************************************** @@ -146,45 +146,45 @@ in modal window instead of popup/new win **************************************************/ //PREFERENCES POPUPS ModalWindow = Class.create({ - initialize: function(){ - this.cont = ""; - this.overlay = ""; - this.win = ""; - this.container = new Element('div', {id:'modal-container'}); - var container = this.container; - $(document.body).insert({bottom:container}); - }, - show: function(element, overlay){ - this.close(); - this.cont = element; - if(overlay) this.overlay = this.container.appendChild(new Element('div', {'class':'modal-overlay'})); - this.win = this.container.appendChild(new Element('div', {'class':'modal-window'})); - this.win.insert({bottom:this.cont}); - }, - close: function(e){ - if(e) e.stop(); - this.container.childElements().invoke('remove'); - } + initialize: function(){ + this.cont = ""; + this.overlay = ""; + this.win = ""; + this.container = new Element('div', {id:'modal-container'}); + var container = this.container; + $(document.body).insert({bottom:container}); + }, + show: function(element, overlay){ + this.close(); + this.cont = element; + if(overlay) this.overlay = this.container.appendChild(new Element('div', {'class':'modal-overlay'})); + this.win = this.container.appendChild(new Element('div', {'class':'modal-window'})); + this.win.insert({bottom:this.cont}); + }, + close: function(e){ + if(e) e.stop(); + this.container.childElements().invoke('remove'); + } }); //LOAD MODAL PREFERENCE WINDOWS Event.observe(window, 'load', function() { - get = new ModalWindow(); - $("language").observe('click',function(e) { - var locale = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Languages, please wait..."); - var localeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); - get.show(locale,true); - }); - $("theme").observe('click',function(e) { - var look = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Themes, please wait..."); - var lookUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); - get.show(look,true); - }); - $("timezone").observe('click',function(e) { - var time = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Timezones, please wait..."); - var timeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); - get.show(time,true); - }); + get = new ModalWindow(); + $("language").observe('click',function(e) { + var locale = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Languages, please wait..."); + var localeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); + get.show(locale,true); + }); + $("theme").observe('click',function(e) { + var look = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Themes, please wait..."); + var lookUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); + get.show(look,true); + }); + $("timezone").observe('click',function(e) { + var time = new Element('div', {id:'modal-contents'}).update("<img src='/bizznesstime/images/ajax-loader.gif'/>Updating Timezones, please wait..."); + var timeUpdate = new Ajax.Updater('modal-contents', this.rel, {method: 'get'}); + get.show(time,true); + }); }); /************************************************** @@ -192,9 +192,9 @@ LOAD 'EM UP **************************************************/ //LOAD GLOBAL APP FUNCTIONS document.observe('dom:loaded', function(){ - OFBIZ.clearFix(); - OFBIZ.initExpansion(); - humanMsg.setup(); + OFBIZ.clearFix(); + OFBIZ.initExpansion(); + humanMsg.setup(); }); Modified: ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css?rev=924378&r1=924377&r2=924378&view=diff ============================================================================== --- ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css (original) +++ ofbiz/trunk/themes/flatgrey/webapp/flatgrey/maincss.css Wed Mar 17 17:28:01 2010 @@ -64,7 +64,7 @@ list-style: none; } ol.numbers { - list-style: decimal; + list-style: decimal; padding-left: 20px; } ul.dots { Modified: ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css URL: http://svn.apache.org/viewvc/ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css?rev=924378&r1=924377&r2=924378&view=diff ============================================================================== --- ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css (original) +++ ofbiz/trunk/themes/tomahawk/webapp/tomahawk/css/style.css Wed Mar 17 17:28:01 2010 @@ -2112,19 +2112,19 @@ z-index: 999; } .calendar_date_select thead th { - font-weight: bold; - background-image: url(../images/bkgd_header.gif); - background-color: #CCC; - _border-top: 1px solid #fdeb71; - _border-bottom: 1px solid #d68a12; - color: white !important; + font-weight: bold; + background-image: url(../images/bkgd_header.gif); + background-color: #CCC; + _border-top: 1px solid #fdeb71; + _border-bottom: 1px solid #d68a12; + color: white !important; } .calendar_date_select .cds_buttons { - text-align: center; - padding: 5px 0px; - background-image: url(../images/header_top_bg.gif); - background-color: #CCC; + text-align: center; + padding: 5px 0px; + background-image: url(../images/header_top_bg.gif); + background-color: #CCC; } .calendar_date_select .cds_footer { @@ -2197,13 +2197,13 @@ font-size: 9px; } .calendar_date_select td { - font-size: 12px; - width: 24px; - height: 21px; - text-align: center; - vertical-align: middle; - background-color: #FFF; - color:#333; + font-size: 12px; + width: 24px; + height: 21px; + text-align: center; + vertical-align: middle; + background-color: #FFF; + color:#333; } .calendar_date_select td.weekend { @@ -2234,7 +2234,7 @@ background-color: #ea9f27; } .calendar_date_select td:hover { - background-color: #FD8500; + background-color: #FD8500; } .calendar_date_select td.today { @@ -2259,10 +2259,10 @@ padding: 5px 0 5px 10px; } .fieldgroup-body { - border-top:#999 solid thin; - border-bottom:#F5F5F5 solid thin; - background-color:#CCC; - padding:0.6em; + border-top:#999 solid thin; + border-bottom:#F5F5F5 solid thin; + background-color:#CCC; + padding:0.6em; } @@ -2460,17 +2460,17 @@ background-color:#D4D0C8; } .basic-table.order-items tr td { - vertical-align:top; + vertical-align:top; } .order-items .order-item-description { - display:inline; - font-size:145%; + display:inline; + font-size:145%; } .basic-table.order-items .screenlet-body { - background-color:#dfdfdf; + background-color:#dfdfdf; } .basic-table.order-items .alternate-row .screenlet-body { - background-color:#bfbfbf; + background-color:#bfbfbf; } .order-info .current-status { |
Free forum by Nabble | Edit this page |