/
var
/
www
/
html
/
sugardemo
/
include
/
javascript
/
sugar7
/
filter-operators
/
Upload File
HOME
/* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ (function register(app) { app.events.on('app:init', function init() { /** * BetweenOperator Management * * @class Core.FilterOperators.BetweenOperator * @alias SUGAR.App.FilterOperators.BetweenOperator * * @param {Object} def Operator Definition */ function BetweenOperator(def) { this.def = def; }; /** * Get updated input * * @param {Function} callback Callback function */ BetweenOperator.prototype.getUpdatedInput = function(callback) { callback({ properties: { _inputType: 'text-between', _inputValue: this.def._filterData.input_name0, _inputValue1: this.def._filterData.input_name1, }, }); }; app.filterOperators = app.filterOperators || {}; app.filterOperators = _.extend(app.filterOperators, { BetweenOperator: BetweenOperator }); }); })(SUGAR.App);