Changeset 3615:b9ac15edad1c
- Timestamp:
- 12/11/17 11:12:57 (8 years ago)
- Branch:
- default
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/common.js
r3544 r3615 569 569 e.preventDefault(); 570 570 $(this).parent().hide(); 571 });572 $('p.success,p.warning,p.error,div.error').click(function(e) {573 e.preventDefault();574 $(this).hide();575 571 }); 576 572 -
admin/style/default.css
r3602 r3615 1512 1512 display: flex; 1513 1513 justify-content: space-between; } 1514 .close-notice-parent ul {1514 .close-notice-parent ul, .close-notice-parent p + p { 1515 1515 flex: 1; } 1516 .close-notice-parent p + p { 1517 padding-left: .25em; } 1516 1518 1517 1519 .close-notice { -
admin/style/scss/partials/_messages.scss
r3576 r3615 100 100 display: flex; 101 101 justify-content: space-between; 102 ul {102 ul, p + p { 103 103 flex: 1; 104 } 105 p + p { 106 padding-left: .25em; 104 107 } 105 108 } -
inc/core/class.dc.error.php
r3074 r3615 30 30 /** @var string HTML error item pattern */ 31 31 protected $html_item = "<li>%s</li>\n"; 32 /** @var string HTML error single pattern */ 33 protected $html_single = "<p>%s</p>\n"; 32 34 33 35 /** … … 94 96 * @param string $item HTML error item pattern 95 97 */ 96 public function setHTMLFormat($list,$item )98 public function setHTMLFormat($list,$item,$single=null) 97 99 { 98 100 $this->html_list = $list; 99 101 $this->html_item = $item; 102 if ($single) { 103 $this->html_single = $single; 104 } 100 105 } 101 106 … … 111 116 if ($this->flag) 112 117 { 113 foreach ($this->errors as $msg) 114 { 115 $res .= sprintf($this->html_item,$msg); 118 if (count($this->errors == 1)) { 119 $res = sprintf($this->html_single,$this->errors[0]); 120 } else { 121 foreach ($this->errors as $msg) { 122 $res .= sprintf($this->html_item,$msg); 123 } 124 $res = sprintf($this->html_list,$res); 116 125 } 117 118 $res = sprintf($this->html_list,$res);119 126 } 120 127
Note: See TracChangeset
for help on using the changeset viewer.