Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复多个textarea实例干扰的问题 #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions 1.0/build/build/index-min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

64 changes: 64 additions & 0 deletions 1.0/build/build/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.koo-container {
padding-left: 50px;
margin-right: 30px;
text-align: left;
font: 12px \5FAE\8F6F\96C5\9ED1, tahoma, arial, \5b8b\4f53, sans-serif;
padding-bottom:500px;
}
.koo-container input[type="text"]{
width: 280px;
height: 28px;
line-height: 28px;
}
.koo-container .header h1 {
margin: 24px 0 20px 0;
}
.koo-container .code {
background: none repeat scroll 0 0 #FAFAFA;
color: #333333;
display: inline-block;
border: 1px solid #eee;
border-radius: 3px;
font-size: 0.8em;
margin: 0 2px;
padding: 0.4em 0.6em;
white-space: nowrap;
}
.koo-container .ipost{
padding:2px 10px;
}
.koo-container dl{height:40px;}
.koo-container dt,.koo-container dd{float: left;}
.koo-container dd{margin-left:5px;}
.koo-container .main li {
margin-bottom: 12px;
}
.koo-container .koo-content {
margin: 20px 10px;
padding: 20px;
border: 1px solid #eee;
border-radius: 4px;
background-color: #fff;
}
.koo-content b{
background-image: url(http://gtms01.alicdn.com/tps/i1/T1F6_FFa4dXXcV5u6X-15-56.png);
background-repeat: no-repeat;
}
.koo-content input.koo-holder {
color: #999;
}
.koo-content .koo-error {
display: inline-block;
padding-left: 18px;
margin-left: 12px;
line-height: 16px;
font-weight: normal;
background-position: 0 bottom;
}
.koo-content .koo-success {
display: inline-block;
margin-left: 12px;
line-height: 16px;
width: 18px;
background-position: 0 0;
}
4 changes: 2 additions & 2 deletions 1.0/build/index-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 1.0/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ KISSY.add('gallery/koo/1.0/index',function(S, Node, MenuButton) {
instance.prototype.bindArea = function() {
var elems, i, rich, temp, _el, _i, _ref, _results;
elems = $("textarea", this.form);

_results = [];
for (i = _i = 0, _ref = elems.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
_el = $(elems[i]);
Expand All @@ -261,7 +262,8 @@ KISSY.add('gallery/koo/1.0/index',function(S, Node, MenuButton) {
_results.push(_el.on("focusout", function(e) {
var check, obj;
obj = one(e.currentTarget);
check = getParam(_el);
//modified by bocai 点击textarea dom引用错误的bug
check = getParam(obj);
if (!check || check.length < 1) {
return;
}
Expand All @@ -276,6 +278,7 @@ KISSY.add('gallery/koo/1.0/index',function(S, Node, MenuButton) {
getParam = function(target) {
var template_id;
template_id = $(target).attr("koo");

if (!!template_id) {
return template_id.split("-");
}
Expand All @@ -296,6 +299,7 @@ KISSY.add('gallery/koo/1.0/index',function(S, Node, MenuButton) {
tp_flag = temp[i].substr(1, temp[i].length - 1);
}
ime = false;
// console.log(tp_flag)
switch (tp_flag) {
case "need":
if (S.trim(val) !== val) {
Expand Down Expand Up @@ -385,6 +389,7 @@ KISSY.add('gallery/koo/1.0/index',function(S, Node, MenuButton) {
break;
default:
sinbo_id09323 = tp_flag.substr(1, tp_flag.length - 1).replace("$", "-");

switch (tp_flag.charAt(0)) {
case "l":
st0911 = parseInt(tp_flag.substr(1), 10);
Expand Down
Loading