mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Advanced Search: Support of external fields (as strings)
SVN:b1162[5583]
This commit is contained in:
25
js/search/search_form_criteria_external_field.js
Normal file
25
js/search/search_form_criteria_external_field.js
Normal 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
|
||||
//------------------
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user