Commit 7130ee31 by NGUYEN HOANG SON

fix common js

parent ec18ee89
...@@ -114,10 +114,10 @@ ...@@ -114,10 +114,10 @@
<div class="fs-9"><span id="operationCount">0</span><span class="lang" lang="display"></span></div> <div class="fs-9"><span id="operationCount">0</span><span class="lang" lang="display"></span></div>
<div class="view"> <div class="view">
<a href="#" class="text-decoration-none view-btn view-list-btn"> <a href="#" class="text-decoration-none view-btn view-list-btn">
<img src="../common/img/icon_view_list.svg" type="image" alt="" class="list-block-icon mx-1 lang" lang="listDisplay" onclick="OL.switchToViewList();" data-toggle="tooltip" data-placement="bottom" title=""> <img src="../common/img/icon_view_list.svg" type="image" alt="" class="list-block-icon mx-1 lang" lang="listDisplay" data-toggle="tooltip" data-placement="bottom" title="">
</a> </a>
<a href="#" class="text-decoration-none view-btn view-block-btn active"> <a href="#" class="text-decoration-none view-btn view-block-btn active">
<img src="../common/img/icon_view_block.svg" type="image" alt="" class="list-block-icon mx-1 lang" lang="gridDisplay" onclick="OL.switchToGridList();" data-toggle="tooltip" data-placement="bottom" title=""> <img src="../common/img/icon_view_block.svg" type="image" alt="" class="list-block-icon mx-1 lang" lang="gridDisplay" data-toggle="tooltip" data-placement="bottom" title="">
</a> </a>
</div> </div>
</div> </div>
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
<div id="checkLoadingImage"><img src='######' /></div> <div id="checkLoadingImage"><img src='######' /></div>
</div> </div>
<script type="text/javascript" src="../common/js/newdash/common.js?__UPDATEID__"></script>
</body> </body>
</html> </html>
...@@ -584,27 +584,3 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) { ...@@ -584,27 +584,3 @@ OL.createUrlOfOperation = function (enableAddReport, reportType) {
} }
}; };
/**
* switch operation List to view
*/
OL.switchToViewList = function () {
$('.view-menu .view-list-btn').on("click", function() {
$('.view-block-btn').removeClass('active');
$('.view-list-btn').addClass('active');
$('.view-content').removeClass('view-block');
$('.view-content').addClass('view-list');
});
};
/**
* switch operation List to grid
*/
OL.switchToGridList = function() {
$('.view-menu .view-block-btn').on("click", function() {
$('.view-list-btn').removeClass('active');
$('.view-block-btn').addClass('active');
$('.view-content').removeClass('view-list');
$('.view-content').addClass('view-block');
});
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment