Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixes
  • Loading branch information
peter-mw committed Dec 11, 2014
1 parent 4618d44 commit 4ee09f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Microweber/Category.php
Expand Up @@ -1023,7 +1023,7 @@ public function get_parents($id = 0, $without_main_parrent = false, $data_type =
public function get_children($parent_id = 0, $type = false, $visible_on_frontend = false)
{

$categories_id = intval($parent_id);
$categories_id = $parent_id =intval($parent_id);
$cache_group = 'categories/' . $categories_id;

$table = $this->tables['categories'];
Expand Down
7 changes: 6 additions & 1 deletion src/Microweber/includes/admin/ui.php
Expand Up @@ -98,9 +98,14 @@
for( ;i<l;i++){
var sel = uicss[i].selectorText;


if(!!sel && sel.indexOf('.mw-icon-') === 0){
var t = uicss[i].cssText.replace(/'/g, '"');
var glyph = t.split('"')[1].split('"')[0];

var cls = sel.replace(".", '').split(':')[0];
html +='<li><span class="'+cls+'"></span><em>.'+cls+'</em></li>';
//html +='<li><span class="'+cls+'"></span><em>.'+cls+'</em></li>';
html +='<li><span style="font-family:Microweber">'+glyph+'</span><em>.'+cls+'</em></li>';
}
}
mw.$('#info-icon-list').html('<ul>'+html+'</ul>');
Expand Down

0 comments on commit 4ee09f9

Please sign in to comment.