Merge branch 'master' into develop

This commit is contained in:
Nabin Hait 2016-10-31 15:05:37 +05:30
commit 9ecfebd38c
6 changed files with 32 additions and 15 deletions

View file

@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template
__version__ = '7.1.2'
__version__ = '7.1.3'
__title__ = "Frappe Framework"
local = Local()

View file

@ -4,19 +4,24 @@
frappe.ui.form.on('Bulk Update', {
refresh: function(frm) {
frm.page.set_primary_action(__('Update'), function() {
frappe.call({
method: 'frappe.desk.doctype.bulk_update.bulk_update.update',
args: {
doctype: frm.doc.document_type,
field: frm.doc.field,
value: frm.doc.update_value,
condition: frm.doc.condition,
limit: frm.doc.limit
},
callback: function() {
frappe.hide_progress();
}
});
if(!frm.doc.update_value){
frappe.throw(__('Field "value" is mandatory. Please specify value to be updated'));
}
else{
frappe.call({
method: 'frappe.desk.doctype.bulk_update.bulk_update.update',
args: {
doctype: frm.doc.document_type,
field: frm.doc.field,
value: frm.doc.update_value,
condition: frm.doc.condition,
limit: frm.doc.limit
},
callback: function() {
frappe.hide_progress();
}
});
}
});
},
document_type: function(frm) {

View file

@ -25,6 +25,11 @@ frappe.ui.form.on('Integration Service', {
}
},
service: function(frm){
frm.events.setup_custom_buttons(frm);
frm.events.setup_service_details(frm);
},
setup_custom_buttons: function(frm) {
frm.add_custom_button(__("{0} Settings", [frm.doc.service]), function(){
frappe.set_route("List", frm.doc.service + " Settings");

View file

@ -31,7 +31,7 @@ frappe.ui.form.on('Dropbox Settings', {
if (frm.doc.app_access_key && frm.doc.app_secret_key && frm.doc.dropbox_access_key && frm.doc.dropbox_access_secret) {
frm.add_custom_button(__("Take Backup Now"), function(frm){
frappe.call({
method: "frappe.integrations.dropbox_integration.take_backup",
method: "frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backup",
freeze: true
})
}).addClass("btn-primary")

View file

@ -67,6 +67,9 @@
.filter_field {
width: 65% !important;
}
.filter_field .frappe-control {
position: relative;
}
}
.list-row {
padding: 9px 15px;

View file

@ -88,6 +88,10 @@
.filter_field {
width: 65% !important;
.frappe-control {
position: relative;
}
}
}