From d3220869b49746d188cd16bb241bf5de9308096b Mon Sep 17 00:00:00 2001 From: Catouse Date: Fri, 21 Sep 2018 18:19:01 +0800 Subject: [PATCH] * improve UI of project/testtask view. --- module/project/css/testtask.css | 5 +++++ module/project/view/testtask.html.php | 2 +- www/js/zui/min.js | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/module/project/css/testtask.css b/module/project/css/testtask.css index 00e4b489c3..387ac72a08 100644 --- a/module/project/css/testtask.css +++ b/module/project/css/testtask.css @@ -1 +1,6 @@ .table-group-btns {width: 200px;} +.table-footer, +.table-grouped {box-shadow: none!important;} +.table-footer {margin-left: 205px; margin-top: 10px;} +.table-grouped > thead>tr>th.c-id, +.table-grouped > tbody>tr>td.c-id {padding-left: 15px;} \ No newline at end of file diff --git a/module/project/view/testtask.html.php b/module/project/view/testtask.html.php index 4e47417528..1b3eab3ba4 100644 --- a/module/project/view/testtask.html.php +++ b/module/project/view/testtask.html.php @@ -79,7 +79,7 @@
testtask->allTasks;?>
- + id => sprintf('%03d', $task->id)));?> diff --git a/www/js/zui/min.js b/www/js/zui/min.js index 8e38778cd8..daa795fc61 100644 --- a/www/js/zui/min.js +++ b/www/js/zui/min.js @@ -74,5 +74,5 @@ function(){var t,e,i,n,o,s={}.hasOwnProperty,a=function(t,e){function i(){this.c * Original idea by: * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ */ -function(t){function e(e){if("string"==typeof e.data){var i=e.handler,n=e.data.toLowerCase().split(" ");e.handler=function(e){if(this===e.target||!/textarea|select/i.test(e.target.nodeName)&&"text"!==e.target.type){var o="keypress"!==e.type&&t.hotkeys.specialKeys[e.which],s=String.fromCharCode(e.which).toLowerCase(),a="",r={};e.altKey&&"alt"!==o&&(a+="alt+"),e.ctrlKey&&"ctrl"!==o&&(a+="ctrl+"),e.metaKey&&!e.ctrlKey&&"meta"!==o&&(a+="meta+"),e.shiftKey&&"shift"!==o&&(a+="shift+"),o?r[a+o]=!0:(r[a+s]=!0,r[a+t.hotkeys.shiftNums[s]]=!0,"shift+"===a&&(r[t.hotkeys.shiftNums[s]]=!0));for(var l=0,h=n.length;l","/":"?","\\":"|"}},t.each(["keydown","keyup","keypress"],function(){t.event.special[this]={add:e}})}(jQuery),function(t){"use strict";function e(e,i){if(e===!1)return e;if(!e)return i;e===!0?e={add:!0,"delete":!0,edit:!0,sort:!0}:"string"==typeof e&&(e=e.split(","));var n;return t.isArray(e)&&(n={},t.each(e,function(e,i){t.isPlainObject(i)?n[i.action]=i:n[i]=!0}),e=n),t.isPlainObject(e)&&(n={},t.each(e,function(e,i){i?n[e]=t.extend({type:e},a[e],t.isPlainObject(i)?i:null):n[e]=!1}),e=n),i?t.extend(!0,{},i,e):e}function i(e,i,n){return i=i||e.type,t(n||e.template).addClass("tree-action").attr(t.extend({"data-type":i,title:e.title||""},e.attr)).data("action",e)}var n="zui.tree",o=0,s=function(e,i){this.name=n,this.$=t(e),this.getOptions(i),this._init()},a={sort:{template:''},add:{template:''},edit:{template:''},"delete":{template:''}};s.DEFAULTS={animate:null,initialState:"normal",toggleTemplate:''},s.prototype.add=function(e,i,n,o,s){var a,r=t(e),l=this.options;if(r.is("li")?(a=r.children("ul"),a.length||(a=t("