Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Apr 26, 2024
1 parent a059b6e commit 1b27a94
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions lhc_web/design/defaulttheme/js/lhc.botcommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,4 @@ $(document).ready(function() {
});
}
renderPeriods();
});

$(document).ready(function() {
$('select[name="bot_id"]').change(function(){
$.get(WWW_DIR_JAVASCRIPT + 'genericbot/triggersbybot/' + $(this).val(), { }, function(data) {
$('#trigger-list-id').html(data);
}).fail(function() {

});
});
$.get(WWW_DIR_JAVASCRIPT + 'genericbot/triggersbybot/' + $('select[name="bot_id"]').val() + '/<?php echo $item->trigger_id?>', { }, function(data) {
$('#trigger-list-id').html(data);
}).fail(function() {

});
});
14 changes: 14 additions & 0 deletions lhc_web/design/defaulttheme/tpl/lhgenericbot/form_command.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,20 @@

<script>
window.botCommandFields = <?php echo json_encode($item->fields_array)?>;
$(document).ready(function() {
$('select[name="bot_id"]').change(function(){
$.get(WWW_DIR_JAVASCRIPT + 'genericbot/triggersbybot/' + $(this).val(), { }, function(data) {
$('#trigger-list-id').html(data);
}).fail(function() {

});
});
$.get(WWW_DIR_JAVASCRIPT + 'genericbot/triggersbybot/' + $('select[name="bot_id"]').val() + '/<?php echo $item->trigger_id?>', { }, function(data) {
$('#trigger-list-id').html(data);
}).fail(function() {

});
});
</script>


Expand Down

0 comments on commit 1b27a94

Please sign in to comment.