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 9c8a72adb6..4a738971d3 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/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/router.js b/public/js/wn/router.js index 5a2d79923e..de0e4b1483 100644 --- a/public/js/wn/router.js +++ b/public/js/wn/router.js @@ -3,6 +3,7 @@ // re-route map (for rename) wn.re_route = {}; wn.route_titles = {}; +wn.route_history = []; wn.view_factory = {}; wn.view_factories = []; @@ -27,6 +28,7 @@ wn.route = function() { wn._cur_route = window.location.hash; route = wn.get_route(); + wn.route_history.push(route); if(route[0] && wn.views[route[0] + "Factory"]) { // has a view generator, generate! diff --git a/public/js/wn/ui/appframe.js b/public/js/wn/ui/appframe.js index 9b15c1f2e6..b42abec47a 100644 --- a/public/js/wn/ui/appframe.js +++ b/public/js/wn/ui/appframe.js @@ -7,6 +7,7 @@ wn.ui.AppFrame = Class.extend({ init: function(parent, title, module) { this.set_document_title = true; this.buttons = {}; + this.fields_dict = {}; this.$w = $('