Commit 8a6312c5 authored by xinyuandu's avatar xinyuandu

独家权限

parent 17130bd0
...@@ -506,11 +506,14 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin ...@@ -506,11 +506,14 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
$('.J_preview').preview();//放大图片 $('.J_preview').preview();//放大图片
if(check_auth('index/editExclusive')) { if(check_auth('index/editExclusive')) {
$('.is_dujia').find('input').removeAttr("readonly"); $('.is_dujia').find('input').removeAttr("readonly");
$('.is_dujia').find('select').removeAttr("readonly");
} else if ( ( business.name + '-' + business.phone ) === data.data.name) { } else if ( ( business.name + '-' + business.phone ) === data.data.name) {
$('.is_dujia').find('input').removeAttr("readonly"); $('.is_dujia').find('input').removeAttr("readonly");
$('.is_dujia').find('select').removeAttr("readonly");
} else { } else {
//$('.is_dujia').find('input').removeAttr("readonly"); //$('.is_dujia').find('input').removeAttr("readonly");
$('.is_dujia').find('input').attr("readonly","readonly") $('.is_dujia').find('input').attr("readonly","readonly");
$('.is_dujia').find('select').attr("readonly","readonly");
} }
} }
} else { } else {
......
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