[+] CORE : Add statistic request for theme too (refacto of the last commit for module)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15351 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vSchoener
2012-05-16 15:22:09 +00:00
parent dfaf16185f
commit 232d487b67
2 changed files with 62 additions and 28 deletions
+24 -1
View File
@@ -663,7 +663,30 @@ class ThemeInstallator extends Module
<input type="submit" class="button" name="prevThemes" value="'.$this->l('Previous').'" />
<input type="submit" class="button" name="submitModules" value="'.$this->l('Next').'" />
</fieldset>
</form>';
</form>
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
type : "POST",
url : "'. str_replace('index', 'ajax-tab', AdminController::$currentIndex) .'",
data : {
"theme_list" : '.Tools::jsonEncode(array((string)$this->xml->theme_key)).',
"controller" : "AdminModules",
"action" : "wsThemeCall",
"token" : "'. Tools::getAdminToken('AdminModules'.(int)(Tab::getIdFromClassName('AdminModules')).(int)$this->context->employee->id) .'"
},
dataType: "json",
success: function(json)
{
//console.log(json);
},
error: function(xhr, ajaxOptions, thrownError)
{
//jAlert("TECHNICAL ERROR"+res);
}
});
});
</script>';
}
private function _displayForm2()