Skip to content

Commit

Permalink
Fix action menu (#7)
Browse files Browse the repository at this point in the history
* chenge view url in popup

* fixed bug not working dropdown list of actions
  • Loading branch information
SidorkinAlex authored Jan 10, 2021
1 parent 0a953dd commit 3c730a6
Show file tree
Hide file tree
Showing 7 changed files with 878 additions and 42 deletions.
Binary file removed build/Board.zip
Binary file not shown.
Binary file added build/Build.zip
Binary file not shown.
14 changes: 0 additions & 14 deletions custom/modules/Opportunities/controller.php

This file was deleted.

17 changes: 0 additions & 17 deletions custom/modules/Opportunities/views/view.detail.config.php

This file was deleted.

868 changes: 868 additions & 0 deletions custom/themes/SuiteP/tpls/_headerModuleList.tpl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'name' => 'Opportunities Board',
'published_date' => '2020-08-216 09:10:55',
'type' => 'module',
'version' => '1.0.0',
'version' => '1.0.3',
'remove_tables' => 'prompt',
);

Expand Down
19 changes: 9 additions & 10 deletions modules/BOARD_OPPORTUNITIES/tpl/table.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,19 @@
</div>

<div class="modal-content" id="modal-body">
<iframe src="" frameborder="0" id="iframemodal"></iframe>

</div>
</div>
</div>

<script>
{literal}
//index.php?module=Opportunities&offset=2&noMenu=1609856071013711200&return_module=Opportunities&action=record=73da683f-d986-ea4d-4d25-5f37f15bac71
function loadmodalbody(id) {
$.ajax({
url: 'index.php?module=Opportunities&action=quickDetail&record='+id,
method: 'post',
dataType: 'html',
//data: {text: 'Текст'},
success: function(data){
$('#modal-body').html(data);
}
});
$("#iframemodal").attr("src" , 'index.php?module=Opportunities&hiddenMenu=1&action=DetailView&record='+id);
var heightWindow = window.innerHeight - 0.1 * window.innerHeight;
$("#iframemodal").innerHeight(heightWindow);
}
{/literal}
var configBord = {$bordConfig|@json_encode};
Expand Down Expand Up @@ -238,5 +233,9 @@
right: 10px;
top: 20px;
}
#iframemodal {
width: 100%;
height: 100%;
}
</style>
{/literal}

0 comments on commit 3c730a6

Please sign in to comment.