Fixed bug in block modules

This commit is contained in:
Neil Trini Lasrado 2016-04-14 17:21:24 +05:30
parent 0b987f0f57
commit 5655772ff7

View file

@ -35,8 +35,8 @@ frappe.pages['modules_setup'].on_page_load = function(wrapper) {
// save action
page.set_primary_action('Save', function() {
var hidden_list = [];
page.content.find('input[type="checkbox"]').each(function() {
if(!$(this).is(':checked')) {
page.wrapper.find('input[type="checkbox"]').each(function() {
if(!$(this).is(":checked")) {
hidden_list.push($(this).attr('data-module'));
}
});