Skip to content

Commit

Permalink
making constraint builder work with jqury.chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Oct 5, 2011
1 parent 79358df commit a6d08ca
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions modules/base/js/owa.resultSetExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ OWA.dimensionPicker.prototype = {
generateDimList : function(selector, selected) {

var container_selector = selector;
var c = '<select data-placeholder="Select..." name="dim-list" class="dim-list"><option value=""></option>';
var c = '<select data-placeholder="Select..." name="dim-list" class="dim-list" style="width:150px;"><option value=""></option>';
var that = this;

if ( OWA.util.countObjectProperties( this.dim_list ) > 0 ) {
Expand Down Expand Up @@ -977,33 +977,7 @@ jQuery( container_selector + ' > .dim-list' ).chosen().change( function() {
// hack for setting label of select menu
//jQuery(container_selector + ' > .ui-selectmenu > .ui-selectmenu-status').html(OWA.l('Select...'));

}


/*
jQuery( container_selector + ' > .dim-list' ).selectmenu({
width:175,
change: function(e, obj) {
jQuery( that.dom_id ).trigger(
'dimension_change',
['', obj.value]
);
}
});
// set select value
if ( selected ) {
jQuery(selector + ' > .dim-list').selectmenu("value", selected);
} else {
// hack for setting label of select menu
jQuery(container_selector + ' > .ui-selectmenu > .ui-selectmenu-status').html(OWA.l('Select...'));
}
*/
}
},

setAlternateField : function( selector ) {
Expand Down Expand Up @@ -1596,7 +1570,7 @@ OWA.constraintBuilder.prototype = {
jQuery( builder_selector + ' > .add-button' )
.button({

label: OWA.l('Add Metric/Dimension')
label: OWA.l('+ Add Filter ')
})
.click(function() {
that.addNewConstraintRow( builder_selector + ' > ul' );
Expand All @@ -1618,7 +1592,7 @@ OWA.constraintBuilder.prototype = {
var name = jQuery(this)
.children('.constraintDimensionPicker')
.children('.dimensionPicker')
.children('.dim-list').selectmenu('value');
.children('.dim-list').val();

var operator = jQuery(this)
.children('.constraintOperatorPicker')
Expand Down

0 comments on commit a6d08ca

Please sign in to comment.