[+] BO : added action button in autocomplete module list

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9122 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2011-10-07 08:05:29 +00:00
parent 3c12ce1943
commit 539b92b651
+3 -2
View File
@@ -475,7 +475,7 @@ class AdminModules extends AdminTab
matchContains: true,
highlightItem: true,
formatItem: function(row, i, max, term) {
return "<img src=\"../modules/"+row.name+"/logo.gif\" style=\"float:left;margin:5px\"><strong>" + row.displayName + "</strong>"+((row.author != \'\') ? " '.$this->l("by").' "+ truncate_author(row.author) :"") + "<br /><span style=\'font-size: 80%;\'>"+ row.desc +"</span>";
return "<img src=\"../modules/"+row.name+"/logo.gif\" style=\"float:left;margin:5px\"><strong>" + row.displayName + "</strong>"+((row.author != \'\') ? " '.$this->l("by").' "+ truncate_author(row.author) :"") + "<br /><span style=\'font-size: 80%;\'>"+ row.desc +"</span><br/><div style=\"height:15px;padding-top:5px\">"+ row.option +"</div>";
},
formatResult: function(row) {
return row.displayName;
@@ -721,7 +721,8 @@ class AdminModules extends AdminTab
'displayName' => (string)$module->displayName,
'desc' => (string)$module->description,
'name' => (string)$module->name,
'author' => (string)$module->author
'author' => (string)$module->author,
'option' => $this->displayOptions($module)
)).', ';
$autocompleteList = rtrim($autocompleteList, ' ,').'];';