Changeset 2123


Ignore:
Timestamp:
Dec 5, 2011, 10:07:43 AM (11 years ago)
Author:
tjeerd@…
Message:

VIS-62 fixed, empty the inputs after a new study is selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/visualization.js

    r2118 r2123  
    4747
    4848    $( '#select_rows, #select_columns, #select_groups' ).empty();
     49    $( '#select_rows, #select_columns, #select_groups' ).next().val("");
    4950
    5051    if( visualization )
     
    484485                // If a chart has been created, show it
    485486                if( plotOptions != null ) {
     487
     488                    if(returnData.type!="table") {
     489                        if(returnData.xaxis.type=="numerical" && plotOptions.axes.xaxis.renderer==$.jqplot.CategoryAxisRenderer) {
     490                            delete plotOptions.axes.xaxis.renderer;
     491                        }
     492                        if(returnData.yaxis.type=="numerical" && plotOptions.axes.yaxis.renderer==$.jqplot.CategoryAxisRenderer) {
     493                            delete plotOptions.axes.yaxis.renderer;
     494                        }
     495                    }
    486496
    487497                    $( "#visualization" ).empty();
Note: See TracChangeset for help on using the changeset viewer.