Browse Source

Check CID submodule - Remove old version

pull/4/head
Vladimir Barkasov 6 years ago
parent
commit
1cce9b0203
1 changed files with 0 additions and 87 deletions
  1. +0
    -87
      src/apps/callflows/submodules/misc/misc.js

+ 0
- 87
src/apps/callflows/submodules/misc/misc.js View File

@ -426,93 +426,6 @@ define(function(require) {
}
}
},
'check_cid[]': {
name: self.i18n.active().oldCallflows.check_cid,
icon: 'list-ol',
category: self.i18n.active().oldCallflows.caller_id_cat,
module: 'check_cid',
tip: self.i18n.active().oldCallflows.check_cid_tip,
data: {},
rules: [
{
type: 'quantity',
maxSize: 2
}
],
isUsable: 'true',
weight: 60,
caption: function(node, caption_map) {
return '';
},
edit: function(node, callback) {
var popup, popup_html;
popup_html = $(self.getTemplate({
name: 'check_cid-callflowEdit',
data: {
data_check_cid: {
'regex': node.getMetadata('regex') || ''
}
},
submodule: 'misc'
}));
$('#add', popup_html).click(function() {
var regex = $('#regex_input', popup_html).val();
node.setMetadata('regex', regex);
node.setMetadata('use_absolute_mode', false);
node.caption = regex;
popup.dialog('close');
});
popup = monster.ui.dialog(popup_html, {
title: self.i18n.active().oldCallflows.check_cid_title,
beforeClose: function() {
if (typeof callback === 'function') {
callback();
}
}
});
},
key_caption: function(child_node, caption_map) {
var key = child_node.key;
return (key !== '_') ? key : self.i18n.active().oldCallflows.check_cid_match;
},
key_edit: function(child_node, callback) {
var popup, popup_html;
popup_html = $(self.getTemplate({
name: 'check_cid-childCallflow',
data: {
items: {
'match': self.i18n.active().oldCallflows.check_cid_match,
'nomatch': self.i18n.active().oldCallflows.check_cid_nomatch
},
selected: child_node.key
},
submodule: 'misc'
}));
popup_html.find('#add').on('click', function() {
child_node.key = $('#check_cid_callflow_key_selector', popup_html).val();
child_node.key_caption = $('#check_cid_callflow_key_selector option:selected', popup_html).text();
popup.dialog('close');
});
popup = monster.ui.dialog(popup_html, {
title: self.i18n.active().oldCallflows.check_cid_matchnomatch,
minHeight: '0',
beforeClose: function() {
if (typeof callback === 'function') {
callback();
}
}
});
}
},
'webhook[]': {
name: self.i18n.active().callflows.webhook.title,
icon: 'upload',


Loading…
Cancel
Save