diff --git a/core/doctype/profile/profile.js b/core/doctype/profile/profile.js index d4d6eca93b..71de1169c8 100644 --- a/core/doctype/profile/profile.js +++ b/core/doctype/profile/profile.js @@ -31,7 +31,6 @@ cur_frm.cscript.refresh = function(doc) { if(user==doc.name) { // update display settings - wn.ui.set_theme(doc.theme); if(doc.background_image) { wn.ui.set_user_background(doc.background_image); } diff --git a/core/doctype/profile/profile.txt b/core/doctype/profile/profile.txt index e8b53df461..61f091781d 100644 --- a/core/doctype/profile/profile.txt +++ b/core/doctype/profile/profile.txt @@ -1,8 +1,8 @@ [ { - "creation": "2013-03-07 12:26:21", + "creation": "2013-03-07 11:54:44", "docstatus": 0, - "modified": "2013-03-01 10:18:03", + "modified": "2013-06-07 15:06:00", "modified_by": "Administrator", "owner": "Administrator" }, @@ -199,13 +199,6 @@ "label": "Background Image", "options": "attach_files:" }, - { - "doctype": "DocField", - "fieldname": "theme", - "fieldtype": "Select", - "label": "Theme", - "options": "Default\nDesert\nFloral\nOcean\nSky\nSnow\nSunny\nTropic" - }, { "doctype": "DocField", "fieldname": "cb21", diff --git a/public/build.json b/public/build.json index 507400e1f4..7a4adb3c6c 100644 --- a/public/build.json +++ b/public/build.json @@ -96,7 +96,6 @@ "lib/public/js/legacy/webpage/loaders.js", "lib/public/js/wn/upload.js", - "lib/public/js/wn/ui/themes.js", "lib/public/js/wn/ui/filters.js", "lib/public/js/wn/ui/search.js", "lib/public/js/wn/ui/tree.js", diff --git a/public/css/ui/common.css b/public/css/ui/common.css index 9cde02fb61..b1aecf7984 100644 --- a/public/css/ui/common.css +++ b/public/css/ui/common.css @@ -49,6 +49,7 @@ a { margin-bottom: 0px; border-radius: 0px; border-bottom: 1px solid #ddd; + min-height: 51px; } .appframe .navbar-form select, diff --git a/public/js/legacy/widgets/form/form.js b/public/js/legacy/widgets/form/form.js index 46afc7f632..a002bbffb8 100644 --- a/public/js/legacy/widgets/form/form.js +++ b/public/js/legacy/widgets/form/form.js @@ -293,7 +293,7 @@ _f.Frm.prototype.set_footnote = function(txt) { _f.Frm.prototype.add_custom_button = function(label, fn, icon) { - this.appframe.add_button(label, fn, icon || "icon-arrow-right", true); + this.appframe.add_button(label, fn, icon || "icon-arrow-right"); } _f.Frm.prototype.clear_custom_buttons = function() { this.toolbar.refresh() @@ -440,9 +440,7 @@ _f.Frm.prototype.refresh = function(docname) { } // header - if(!this.meta.istable) { - this.refresh_header(); - } + this.refresh_header(); // call trigger this.script_manager.trigger("refresh"); diff --git a/public/js/lib/README.md b/public/js/lib/README.md index 72ac015780..58e09e9516 100644 --- a/public/js/lib/README.md +++ b/public/js/lib/README.md @@ -16,4 +16,8 @@ Download modules Changes images urls - from: url(images -- to: url(../lib/js/lib/jquery/bootstrap_theme/images \ No newline at end of file +- to: url(../lib/js/lib/jquery/bootstrap_theme/images + +## JQuery Gantt + +Not a very mature project. Please check css / js after updating \ No newline at end of file diff --git a/public/js/lib/jQuery.Gantt/css/style.css b/public/js/lib/jQuery.Gantt/css/style.css index 6089ff1859..9ed6779055 100644 --- a/public/js/lib/jQuery.Gantt/css/style.css +++ b/public/js/lib/jQuery.Gantt/css/style.css @@ -45,7 +45,7 @@ overflow: hidden; border-right: 1px solid #DDD; position: relative; - z-index: 20; + z-index: 2; } .fn-gantt .row, .row .fn-gantt .row { @@ -178,7 +178,7 @@ padding: 10px; position: absolute; display: none; - z-index: 11; + z-index: 2; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; @@ -189,7 +189,7 @@ height: 18px; margin: 4px 3px 3px 3px; position: absolute; - z-index: 10; + z-index: 1; text-align: center; -webkit-box-shadow: 0 0 1px rgba(0,0,0,0.25) inset; -moz-box-shadow: 0 0 1px rgba(0,0,0,0.25) inset; diff --git a/public/js/wn/app.js b/public/js/wn/app.js index 17dd6892cb..61f17d5526 100644 --- a/public/js/wn/app.js +++ b/public/js/wn/app.js @@ -76,9 +76,6 @@ wn.Application = Class.extend({ if(wn.boot.profile.background_image) { wn.ui.set_user_background(wn.boot.profile.background_image); } - if(wn.boot.profile.theme) { - wn.ui.set_theme(wn.boot.profile.theme); - } }, load_bootinfo: function() { diff --git a/public/js/wn/form/control.js b/public/js/wn/form/control.js index da0126f8c1..7f119b966b 100644 --- a/public/js/wn/form/control.js +++ b/public/js/wn/form/control.js @@ -236,6 +236,8 @@ wn.ui.form.ControlData = wn.ui.form.ControlInput.extend({ .attr("placeholder", this.df.placeholder || "") if(this.doctype) this.$input.attr("data-doctype", this.doctype); + if(this.df.input_css) + this.$input.css(this.df.input_css); }, bind_change_event: function() { var me = this; diff --git a/public/js/wn/form/layout.js b/public/js/wn/form/layout.js index b56487ff03..3a56d0a340 100644 --- a/public/js/wn/form/layout.js +++ b/public/js/wn/form/layout.js @@ -82,6 +82,9 @@ wn.ui.form.Layout = Class.extend({ // for bc this.section.row = {wrapper: this.section}; this.column = null; + if(df && df.hidden) { + this.section.toggle(false); + } return this.section; }, setup_tabbing: function() { diff --git a/public/js/wn/form/toolbar.js b/public/js/wn/form/toolbar.js index 56356e2d1f..19f810ab86 100644 --- a/public/js/wn/form/toolbar.js +++ b/public/js/wn/form/toolbar.js @@ -140,9 +140,10 @@ wn.ui.form.Toolbar = Class.extend({ return this.appframe.add_dropdown(label); }, set_docstatus_label: function() { + var status_bar_parent = this.frm.appframe.$w.find(".status-bar").empty(); if(this.frm.meta.is_submittable && !this.frm.doc.__islocal) { var status_bar = $("