//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
+23
View File
@@ -810,8 +810,31 @@ $(document).ready(function()
$(this).slideUp('fast');
clearTimeout(ajax_running_timeout);
});
bindTabModuleListAction();
});
function bindTabModuleListAction()
{
$('.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;
});
});
}
// Delete all tags HTML
function stripHTML(oldString)
{