diff --git a/frappe/core/doctype/communication/communication.js b/frappe/core/doctype/communication/communication.js index b886bb5792..120bd7e84b 100644 --- a/frappe/core/doctype/communication/communication.js +++ b/frappe/core/doctype/communication/communication.js @@ -5,7 +5,7 @@ frappe.ui.form.on("Communication", "refresh", function(frm) { if(frm.doc.reference_doctype && frm.doc.reference_name) { frm.add_custom_button(__(frm.doc.reference_name), function() { frappe.set_route("Form", frm.doc.reference_doctype, frm.doc.reference_name); - }, frappe.boot.doctype_icons[frm.doc.reference_doctype]); + }, __("View")); } else { // if an unlinked communication, set email field if (frm.doc.sent_or_received==="Received") { @@ -19,12 +19,12 @@ frappe.ui.form.on("Communication", "refresh", function(frm) { frm.add_custom_button(__("Close"), function() { frm.set_value("status", "Closed"); frm.save(); - }); + }, __("Status")); } else if (frm.doc.status !== "Linked") { frm.add_custom_button(__("Reopen"), function() { frm.set_value("status", "Open"); frm.save(); - }); + }, __("Status")); } }); diff --git a/frappe/core/doctype/user/user.json b/frappe/core/doctype/user/user.json index a213daf456..18e1413227 100644 --- a/frappe/core/doctype/user/user.json +++ b/frappe/core/doctype/user/user.json @@ -768,7 +768,7 @@ "bold": 0, "collapsible": 1, "depends_on": "enabled", - "description": "Check / Uncheck roles assigned to the User. Click on the Role to find out what permissions that Role has.", + "description": "", "fieldname": "sb1", "fieldtype": "Section Break", "hidden": 0, @@ -840,7 +840,7 @@ "bold": 0, "collapsible": 1, "default": "", - "description": "Uncheck modules to hide from user's desktop", + "description": "", "fieldname": "modules_access", "fieldtype": "Section Break", "hidden": 0, diff --git a/frappe/public/css/page.css b/frappe/public/css/page.css index d9233012f4..543410912b 100644 --- a/frappe/public/css/page.css +++ b/frappe/public/css/page.css @@ -57,7 +57,8 @@ margin-top: 70px; } /* show menu aligned to the right border of the dropdown */ -.page-actions .dropdown-menu { +.page-actions .dropdown-menu, +.form-inner-toolbar .dropdown-menu { right: 0px; left: auto; } diff --git a/frappe/public/js/frappe/ui/page.js b/frappe/public/js/frappe/ui/page.js index a77c3664fb..d05186ceaa 100644 --- a/frappe/public/js/frappe/ui/page.js +++ b/frappe/public/js/frappe/ui/page.js @@ -227,9 +227,29 @@ frappe.ui.Page = Class.extend({ return $('
  • ').appendTo(this.menu); }, - add_inner_button: function(label, action) { - return $('\ + ').appendTo(this.inner_toolbar.removeClass("hide")); + } + return $group; + }, + + set_inner_btn_group_as_primary: function(label) { + this.get_inner_group_button(label).find("button").removeClass("btn-default").addClass("btn-primary"); + }, + + add_inner_button: function(label, action, group) { + if(group) { + var $group = this.get_inner_group_button(group); + $('
  • '+label+'
  • ').on('click', action).appendTo($group.find(".dropdown-menu")); + } else { + return $('