[+] BO : added action button in autocomplete module list
This commit is contained in:
@@ -475,7 +475,7 @@ class AdminModules extends AdminTab
|
|||||||
matchContains: true,
|
matchContains: true,
|
||||||
highlightItem: true,
|
highlightItem: true,
|
||||||
formatItem: function(row, i, max, term) {
|
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) {
|
formatResult: function(row) {
|
||||||
return row.displayName;
|
return row.displayName;
|
||||||
@@ -721,7 +721,8 @@ class AdminModules extends AdminTab
|
|||||||
'displayName' => (string)$module->displayName,
|
'displayName' => (string)$module->displayName,
|
||||||
'desc' => (string)$module->description,
|
'desc' => (string)$module->description,
|
||||||
'name' => (string)$module->name,
|
'name' => (string)$module->name,
|
||||||
'author' => (string)$module->author
|
'author' => (string)$module->author,
|
||||||
|
'option' => $this->displayOptions($module)
|
||||||
)).', ';
|
)).', ';
|
||||||
|
|
||||||
$autocompleteList = rtrim($autocompleteList, ' ,').'];';
|
$autocompleteList = rtrim($autocompleteList, ' ,').'];';
|
||||||
|
|||||||
Reference in New Issue
Block a user