diff --git a/admin/themes/default/js/history.js b/admin/themes/default/js/history.js index 90bca5d66..77049cd53 100644 --- a/admin/themes/default/js/history.js +++ b/admin/themes/default/js/history.js @@ -51,4 +51,26 @@ $(document).ready(() => { // console.log(line); } + $(".search-line").find(".img-option").hide(); + + /* Display the option on the click on "..." */ + $(".search-line").find(".toggle-img-option").on("click", function () { + $(this).find(".img-option").toggle(); + }) + + /* Hide img options and rename field on click on the screen */ + + $(document).mouseup(function (e) { + e.stopPropagation(); + let option_is_clicked = false + $(".img-option span").each(function () { + if (!($(this).has(e.target).length === 0)) { + option_is_clicked = true; + } + }) + if (!option_is_clicked) { + $(".search-line").find(".img-option").hide(); + } + }); + }) \ No newline at end of file diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl index f3edaf998..6127d3ae0 100644 --- a/admin/themes/default/template/history.tpl +++ b/admin/themes/default/template/history.tpl @@ -105,7 +105,7 @@ const API_METHOD = "{$API_METHOD}"; {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} - +{*
@@ -132,7 +132,110 @@ const API_METHOD = "{$API_METHOD}"; {/foreach} {/if} -
{'Date'|@translate}
+ *} + +
+
+
+ {'Date'|translate} +
+
+ {'User'|translate} +
+
+ {'Type'|translate} +
+
+ {'Details'|translate} +
+
+ +
+
+ +
+ +
+
+ July 4th, 2042 + at 23:59:59 +
+ +
+ Zac le boss + 127.0.0.1 +
+ +
+ + +
+ info 2 + info 1 +
+
+ +
+ WIP + tag #99 +
+ +
+ +
+
+ detail 1 +
+
+ detail 2 +
+
+ detail 3 +
+
+
+ +
+
+ July 4th, 2042 + at 23:59:59 +
+ +
+ Zac le boss + 127.0.0.1 +
+ +
+ + +
+ info 2 + info 1 +
+
+ +
+ WIP + tag #99 +
+ +
+ +
+
+ detail 1 +
+
+ detail 2 +
+
+ detail 3 +
+
+
+
+
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} @@ -180,4 +283,182 @@ jQuery(document).ready( function() { return false; }); }); -{/literal}{/footer_script} \ No newline at end of file +{/literal}{/footer_script} + + \ No newline at end of file