/* * @copyright 2016-2017 Redoo Networks GmbH * @link https://redoo-networks.com/ * This file is part of a vTigerCRM module, implemented by Redoo Networks GmbH and must not used without permission. */ jQuery.loadScript = function (url, arg1, arg2) { var cache = false, callback = null; //arg1 and arg2 can be interchangable if ($.isFunction(arg1)){ callback = arg1; cache = arg2 || cache; } else { cache = arg1 || cache; callback = arg2 || callback; } var load = true; //check all existing script tags in the page for the url jQuery('script[type="text/javascript"]') .each(function () { return load = (url != $(this).attr('src')); }); if (load){ //didn't find it in the page, so load it jQuery.ajax({ type: 'GET', url: url, success: callback, dataType: 'script', cache: cache }); } else { //already loaded so just call the callback if (jQuery.isFunction(callback)) { callback.call(this); }; }; }; jQuery.loadScript("modules/Workflow2/views/resources/js/jquery.form.min.js"); var RequestValuesForm2 = function (fieldKey, completeData) { "use strict"; this.completeData = completeData; this.callback = null; this.fieldsKey = fieldKey; this.getKey = function() { return this.fieldsKey; }; this.show = function(FormHtml, FormScript) { var WFDLanguage = { 'Execute Workflow': this.completeData.language['Execute Workflow'], 'Headline': this.completeData.language['Headline'], 'StopText': this.completeData.language['StopText'], }; if(typeof this.completeData['form_settings'] !== 'undefined' && typeof this.completeData['form_settings']['width'] !== 'undefined') { var width = this.completeData['form_settings']['width']; } else { var width = '600px'; } var html = '
| ';
html += ' ';
html += '';
html += ' |