diff --git a/api/js/etemplate/et2_extension_nextmatch.js b/api/js/etemplate/et2_extension_nextmatch.js index 441471ebf9..8875d346cf 100644 --- a/api/js/etemplate/et2_extension_nextmatch.js +++ b/api/js/etemplate/et2_extension_nextmatch.js @@ -2034,14 +2034,14 @@ var et2_nextmatch = (function(){ "use strict"; return et2_DOMWidget.extend([et2_ // Defer the printing to ask about columns & rows var defer = jQuery.Deferred(); - + var pref = this.options.settings.columnselection_pref; if(pref.indexOf('nextmatch') == 0) { pref = 'nextmatch-'+pref; } var app = this.getInstanceManager().app; - + var columns = {}; var columnMgr = this.dataview.getColumnMgr(); pref += '_print'; @@ -2200,7 +2200,7 @@ var et2_nextmatch = (function(){ "use strict"; return et2_DOMWidget.extend([et2_ window.setTimeout(function() {defer.resolve();}, 0); } },this); - + var dialog = et2_createWidget("dialog",{ // If you use a template, the second parameter will be the value of the template, as if it were submitted. callback: callback, // return false to prevent dialog closing @@ -2953,7 +2953,7 @@ var et2_nextmatch_header = (function(){ "use strict"; return et2_baseWidget.exte this.label = _value; this.labelNode.text(_value); - + // add class if label is empty this.labelNode.toggleClass('et2_label_empty', !_value); } @@ -3275,7 +3275,8 @@ var et2_nextmatch_filterheader = (function(){ "use strict"; return et2_taglist.e this.nextmatch.applyFilters({col_filter: col_filter}); } }, - rows: { default: 2} + rows: { default: 2}, + class: {default: 'nm_filterheader_taglist'}, }, /** @@ -3420,7 +3421,7 @@ var et2_nextmatch_entryheader = (function(){ "use strict"; return et2_link_entry col_filter[this.id] = this.get_value(); this.nextmatch.applyFilters.call(this.nextmatch, {col_filter: col_filter}); }, - + /** * Override to always return a string appname:id (or just id) for simple (one real selection) * cases, parent returns an object. If multiple are selected, or anything other than app and diff --git a/api/js/etemplate/et2_widget_taglist.js b/api/js/etemplate/et2_widget_taglist.js index e1fd49ec99..7dc74ab177 100644 --- a/api/js/etemplate/et2_widget_taglist.js +++ b/api/js/etemplate/et2_widget_taglist.js @@ -650,7 +650,7 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR this.taglist.setMaxSelection(this._multiple ? this.options.maxSelection : 1); if(!this._multiple && this.taglist.getValue().length > 1) { - this.set_value(this.taglist.getValue()); + this.set_value(multiple?this.taglist.getValue():this.taglist.getValue()[0]); } // This changes sizes, so @@ -829,9 +829,9 @@ var et2_taglist = (function(){ "use strict"; return et2_selectbox.extend([et2_IR min_width += this.taglist.trigger ? this.taglist.trigger.outerWidth(true) : 0; // Not enough for one - if(min_width > this.div.width() || + if(this.options.multiple && (min_width > this.div.width() || this.taglist.container.width() > this.div.width() || this.taglist.container.height() > this.div.height() - ) + )) { this._setup_small(); } diff --git a/api/templates/default/etemplate2.css b/api/templates/default/etemplate2.css index 318f26fe8f..a27e84e498 100644 --- a/api/templates/default/etemplate2.css +++ b/api/templates/default/etemplate2.css @@ -1110,7 +1110,7 @@ div .et2_taglist_single div.ms-sel-ctn div.ms-sel-item { overflow: hidden; } div .et2_taglist_single:not(.et2_taglist_small) div.ms-sel-ctn div.ms-sel-item { - width: calc(100% - 43px); + width: calc(100% - 30px); } .et2_taglist_single div.ms-sel-item > span:first-child { max-width: 100%; @@ -1185,6 +1185,10 @@ div .et2_taglist_small.et2_taglist_single div.ms-sel-ctn div.ms-sel-item { overflow: hidden; } +.et2_taglist.et2_taglist_single.nm_filterheader_taglist div.ms-ctn input { + min-width: calc(100% - 30px); +} + /* Taglist category */ .et2_taglist_category span[class*="cat_"] { height: 1.7em;