[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16734]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [16734] |
Date: |
Sat, 13 May 2017 00:34:35 -0400 (EDT) |
Revision: 16734
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16734
Author: nelson224
Date: 2017-05-13 00:34:34 -0400 (Sat, 13 May 2017)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/js/portico/report.edit.js
Modified: branches/dev-syncromind-2/property/js/portico/report.edit.js
===================================================================
--- branches/dev-syncromind-2/property/js/portico/report.edit.js
2017-05-12 13:00:19 UTC (rev 16733)
+++ branches/dev-syncromind-2/property/js/portico/report.edit.js
2017-05-13 04:34:34 UTC (rev 16734)
@@ -1,6 +1,7 @@
$(document).ready(function ()
{
- //$('.processing').hide();
+ $('.processing').hide();
+ $('.processing-preview').hide();
$('#btn_get_columns').click( function()
{
@@ -20,7 +21,7 @@
dataType: 'json',
data: data
}).always(function () {
- //$('.processing').hide();
+ $('.processing').hide();
}).done(function (result) {
//console.log(result);
$('#container_columns').empty();
@@ -30,7 +31,6 @@
$('#container_columns').html(result.columns_preview);
- //build_check_columns(result.columns);
if (jsonB !== '')
{
set_values();
@@ -58,7 +58,6 @@
values['order'] = {};
values['aggregate'] = {};
values['cbo_aggregate'] = {};
- //values['txt_aggregate'] = {};
$('input[name^="columns"]').each(function() {
@@ -95,8 +94,7 @@
var name = '';
var invalid_aggregate = true;
- //var invalid_aggregate_alias = false;
- //var msg = '';
+
$('input[name^="aggregate"]').each(function() {
if ($(this).is(":checked"))
@@ -105,15 +103,7 @@
values['aggregate'][name] = name;
invalid_aggregate = false;
- /*if ($('#txt_' + name).val() == '')
- {
- msg = 'Enter alias for "' + name + '"';
- invalid_aggregate_alias = true;
- return;
- }*/
-
values['cbo_aggregate'][name] = $('#cbo_' +
name).val();
- //values['txt_aggregate'][name] = $('#txt_' +
name).val();
}
});
@@ -124,15 +114,8 @@
return;
}
- /*if (invalid_aggregate_alias)
- {
- $('#responsiveTabsGroups').responsiveTabs('activate',
3);
- alert(msg);
- return;
- }*/
-
var data = {"values": values, "dataset_id":
$('#cbo_dataset_id').val()};
- $('.processing').show();
+ $('.processing-preview').show();
$.ajax({
type: 'GET',
url: requestUrl,
@@ -139,7 +122,7 @@
dataType: 'json',
data: data
}).always(function () {
- //$('.processing').hide();
+ $('.processing-preview').hide();
}).done(function (result) {
$('#container_preview').html(result);
});
@@ -151,8 +134,8 @@
{
$.each(jsonB.columns, function(key, value)
{
- $("#c_" + key).prop('checked', true);
- $("#c_" + key).change();
+ $("#c_" + value).prop('checked', true);
+ $("#c_" + value).change();
});
$.each(jsonB.group, function(key, value)
@@ -181,8 +164,6 @@
{
$.each(data, function(key, object)
{
- //$('#container_columns').append('<span
style="margin-right:12px;"><input type="checkbox" id="c_'+ object.name +'"
value="'+ object.name +'" onchange="build_check_groups(\''+ object.name
+'\')"/> ' + object.name + '</span>');
-
var combo = build_list_aggregates(object.name, object.type);
//var text = build_text_aggregates(object.name);
var check = build_check_aggregates(object.name);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16734],
nelson . guerra <=