//fixed bug when install module from specific tab
This commit is contained in:
@@ -68,7 +68,6 @@
|
||||
<div class="clear"> </div>
|
||||
<a href="#" class="button action_tab_module" data-option="select_{$module->name}" class="button">Valider</a>
|
||||
{else}
|
||||
|
||||
<a href="{$module->options.install_url}" class="button">{l s='Install'}</a>
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
@@ -27,21 +27,7 @@
|
||||
{if isset($tab_modules_list) && !empty($tab_modules_list)}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('.action_tab_module').each( function (){
|
||||
$(this).click(function () {
|
||||
option = $('#'+$(this).data('option')+' :selected');
|
||||
if ($(option).data('onclick') != '')
|
||||
{
|
||||
var f = eval("(function(){ "+$(option).data('onclick')+"})");
|
||||
if (f.call())
|
||||
window.location.href = $(option).data('href');
|
||||
}
|
||||
else
|
||||
window.location.href = $(option).data('href');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('#nav_tabs_modules_installed').click(function () { showInstalledModules() });
|
||||
$('#nav_tabs_modules_not_installed').click(function () { showNotInstalledModules() });
|
||||
|
||||
@@ -50,6 +36,8 @@
|
||||
{else}
|
||||
showNotInstalledModules();
|
||||
{/if}
|
||||
|
||||
bindTabModuleListAction();
|
||||
});
|
||||
|
||||
function showInstalledModules(element)
|
||||
|
||||
Reference in New Issue
Block a user