Advanced Search: Support of external fields (as strings)

SVN:b1162[5583]
This commit is contained in:
Eric Espié
2018-03-30 08:44:14 +00:00
parent 56566d83fd
commit c56bda2f60
8 changed files with 134 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
//iTop Search form criteria external_field
;
$(function () {
// the widget definition, where 'itop' is the namespace,
// 'search_form_criteria_external_field' the widget name
$.widget('itop.search_form_criteria_external_field', $.itop.search_form_criteria_string,
{
// the constructor
_create: function () {
this._super();
this.element.addClass('search_form_criteria_external_field');
},
// events bound via _bind are removed automatically
// revert other modifications here
_destroy: function () {
this.element.removeClass('search_form_criteria_external_field');
this._super();
},
//------------------
// Inherited methods
//------------------
});
});