//fixed bug when install module from specific tab

This commit is contained in:
vAugagneur
2013-03-26 11:21:50 +01:00
parent 6b4738c7ef
commit 70bc9b7f6e
4 changed files with 38 additions and 26 deletions
@@ -68,7 +68,6 @@
<div class="clear">&nbsp;</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)