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;?> @@ -82,7 +82,7 @@ - id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> + id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> id&comment=false", "", '', "title='{$lang->edit}' class='btn btn-link'", true, false)?> id&confirm=no", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?> diff --git a/module/doc/view/content.html.php b/module/doc/view/content.html.php index 477a72a53b..0f17132791 100644 --- a/module/doc/view/content.html.php +++ b/module/doc/view/content.html.php @@ -40,8 +40,8 @@ } ?> - collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?> - id&objectType=doc");?>" title="doc->collect;?>" class='ajaxCollect btn btn-link'> + collector, ',' . $this->app->user->account . ',') !== false ? 'star' : 'star-empty';?> + id&objectType=doc");?>" title="doc->collect;?>" class='ajaxCollect btn btn-link'> config->edition == 'max' and $this->app->tab == 'project'):?> diff --git a/module/doc/view/doclist.html.php b/module/doc/view/doclist.html.php index 8823953770..6002f3f592 100644 --- a/module/doc/view/doclist.html.php +++ b/module/doc/view/doclist.html.php @@ -64,7 +64,7 @@ body {margin-bottom: 25px;} - 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;?> {$type}) ? $doc->{$type} : 0;?> @@ -92,7 +92,7 @@ body {margin-bottom: 25px;} } ?> - id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> + id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> addedBy);?> diff --git a/module/my/css/doc.css b/module/my/css/doc.css index cf7292e208..9fad24d9d2 100644 --- a/module/my/css/doc.css +++ b/module/my/css/doc.css @@ -1 +1,2 @@ .fullscreen-close {top: 8px !important;} +.btn.ajaxCollect > img {width: 20px;} diff --git a/module/my/js/doc.js b/module/my/js/doc.js index ef9e5db6f3..7d99c02b41 100644 --- a/module/my/js/doc.js +++ b/module/my/js/doc.js @@ -5,14 +5,11 @@ $('.ajaxCollect').click(function (event) { { if(response.status == 'yes') { - obj.children('i').removeClass().addClass('icon icon-star text-yellow'); - obj.parent().prev().children('.file-name').children('i').remove('.icon'); - obj.parent().prev().children('.file-name').prepend(' '); + obj.children('img').attr('src', 'static/svg/star.svg'); } else { - obj.children('i').removeClass().addClass('icon icon-star-empty'); - obj.parent().prev().children('.file-name').children('i').remove(".icon"); + obj.children('img').attr('src', 'static/svg/star-empty.svg'); } }, 'json'); return false; diff --git a/module/my/view/doc.html.php b/module/my/view/doc.html.php index 94feca1fdc..e45c44f210 100644 --- a/module/my/view/doc.html.php +++ b/module/my/view/doc.html.php @@ -55,7 +55,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;?> id;?> @@ -80,7 +80,7 @@ - id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> + id&objectType=doc");?>" title="" class='btn btn-link ajaxCollect'> id&comment=false&from={$lang->navGroup->doc}", "", '', "title='{$lang->edit}' class='btn btn-link' data-app='doc'", true, false)?> id&confirm=no&from={$lang->navGroup->doc}", "", 'hiddenwin', "title='{$lang->delete}' class='btn btn-link'")?> diff --git a/module/project/view/createguide.html.php b/module/project/view/createguide.html.php index af2ca0be3b..cfe8e50caf 100644 --- a/module/project/view/createguide.html.php +++ b/module/project/view/createguide.html.php @@ -20,6 +20,7 @@ #guideDialog .project-type.active img {border-color: #006AF1; border-width: 2px; margin-top: 0} #guideDialog .col:nth-child(-n+3) {margin-bottom: 15px;} @media screen and (max-width: 1366px){#guideDialog {width: 640px} #guideDialog .project-type-img.more-type {height: 108px;}} + @media screen and (max-width: 1366px){[lang^='en'] #guideDialog .row .col-xs-4 {height: 200px;} [lang^='de'] #guideDialog .row .col-xs-4 {height: 200px;} [lang^='fr'] #guideDialog .row .col-xs-4 {height: 200px;}}