diff --git a/module/doc/css/browse.css b/module/doc/css/browse.css index 80cea2d24b..2d5431227c 100644 --- a/module/doc/css/browse.css +++ b/module/doc/css/browse.css @@ -1 +1,3 @@ #mainContent .c-id > a {color: #0c60e1;} +.btn.ajaxCollect {width: 20px; padding: 0px;} +.btn.ajaxCollect > img {width: 20px;} diff --git a/module/doc/js/common.js b/module/doc/js/common.js index 86ab2447b4..6ccb1d03b3 100644 --- a/module/doc/js/common.js +++ b/module/doc/js/common.js @@ -297,13 +297,13 @@ $(document).ready(function() { if(response.status == 'yes') { - obj.children('i').removeClass().addClass('icon icon-star text-yellow'); + obj.children('img').attr('src', 'static/svg/star.svg'); obj.parent().prev().children('.file-name').children('i').remove('.icon'); obj.parent().prev().children('.file-name').prepend(' '); } else { - obj.children('i').removeClass().addClass('icon icon-star-empty'); + obj.children('img').attr('src', 'static/svg/star-empty.svg'); obj.parent().prev().children('.file-name').children('i').remove(".icon"); } }, 'json'); diff --git a/module/doc/js/tablecontents.js b/module/doc/js/tablecontents.js index 4ce7a77cf1..7c732aa5b4 100644 --- a/module/doc/js/tablecontents.js +++ b/module/doc/js/tablecontents.js @@ -239,6 +239,7 @@ $(function() }).on('click', '.dropdown-in-tree li', function(e) { var item = $(this).data(); + var $tree = $(this).closest('.tree'); if($(this).hasClass('edit-module')) { new $.zui.ModalTrigger({ @@ -261,6 +262,7 @@ $(function() var $input = $('[data-id=liTreeModal]').html(); var $rootDom = $('[data-id=' + item.moduleid + ']a + ul'); $rootDom.append($input); + $tree.data('zui.tree').expand($('li[data-id="' + item.libid + '"]')); } else { @@ -271,7 +273,6 @@ $(function() $rootDom.after($input); $li.addClass('open in has-list'); } - $('#fileTree').data('zui.tree').expand($('li[data-id="' + item.libid + '"]')); $rootDom.parent().find('input').focus(); break; case 'addCataBro' : @@ -290,6 +291,7 @@ $(function() var $input = $('[data-id=liTreeModal]').html(); var $rootDom = $('#fileTree [data-id=' + item.id + ']a + ul'); var $rootDom = $('#fileTree [data-id=' + item.id + ']a + ul'); + $tree.data('zui.tree').expand($('li[data-id="' + item.id + '"]')); } else { @@ -299,7 +301,6 @@ $(function() $rootDom.addClass('open in has-list'); } - $('#fileTree').data('zui.tree').expand($('li[data-id="' + item.id + '"]')); $rootDom.append($input); $rootDom.find('input').focus(); break; diff --git a/module/doc/view/browse.html.php b/module/doc/view/browse.html.php index c6a0da478a..e5b766f6ba 100644 --- a/module/doc/view/browse.html.php +++ b/module/doc/view/browse.html.php @@ -47,7 +47,7 @@
- collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> + collector, ',' . $this->app->user->account . ',') !== false ? 'star' : 'star-empty';?> collector, ',' . $this->app->user->account . ',') !== false ? $lang->doc->cancelCollection : $lang->doc->collect;?>