diff --git a/public/static/admin/default/css/common.css b/public/static/admin/default/css/common.css index f92200461b07468ae9a0382e456f08496bbab86f..8ab320d7edf09dd047a1fba9b650ac1b40b5c285 100755 --- a/public/static/admin/default/css/common.css +++ b/public/static/admin/default/css/common.css @@ -73,7 +73,7 @@ input:hover, select:hover, textarea:hover, .chosen-choices:hover, .chosen-single .am-alert-tips, .am-alert-tips * { font-size: 12px; } .am-btn-sm { font-size: 12px; } -body {margin:0;color:#797979;} +body {margin:0;color:#666;} html,body {position:relative;background:#fff;height:100%;width:100%;} h1,h2,h3,h4,h5,h6 {font-family:'Karla',sans-serif;margin:10px 0;} h1 {line-height:43px;} diff --git a/public/static/common/js/common.js b/public/static/common/js/common.js index 732808a1b68dc6c424ea89eec593f418510ca789..49bc47142c21c7c0c2f8451c1909113868b1e69a 100755 --- a/public/static/common/js/common.js +++ b/public/static/common/js/common.js @@ -1868,6 +1868,7 @@ $(function() var $tag = $($('body').attr('view-tag')); var max_number = $tag.data('max-number') || 0; var is_delete = ($tag.data('delete') == undefined) ? 1 : $tag.data('delete'); + var form_name = $tag.data('form-name') || ''; var is_attr = $tag.data('is-attr') || null; // 只限制一条 @@ -1882,6 +1883,7 @@ $(function() // 是否直接赋值属性 if(i == 0 && is_attr != null) { + $('form [name="'+form_name+'"]').val(result[i].src); $tag.attr(is_attr, result[i].src); break; } @@ -1894,7 +1896,7 @@ $(function() } var html = '