Skip to content

Commit

Permalink
独立接口时,第一个选框可以不使用接口
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaoca committed Dec 2, 2015
1 parent 41997f9 commit a9cc7be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 10 additions & 3 deletions js/jquery.cxselect.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* jQuery cxSelect
* @name jquery.cxselect.js
* @version 1.3.7
* @date 2015-11-14
* @version 1.3.8
* @date 2015-12-27
* @author ciaoca
* @email [email protected]
* @site https://github.com/ciaoca/cxSelect
Expand Down Expand Up @@ -126,7 +126,14 @@
};
};

self.getOptionData(0);
if (typeof self.selectArray[0].data('url') === 'string' && self.selectArray[0].data('url').length) {
self.getOptionData(0);
} else {
self.selectArray[0].prop('disabled', false).css({
'display': '',
'visibility': ''
});
};
};

// 改变选择时的处理
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.cxselect.min.js

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

2 comments on commit a9cc7be

@klausgao
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

哥,测试过不?加了这段判断,连示例都工作不了了

@ciaoca
Copy link
Owner Author

@ciaoca ciaoca commented on a9cc7be Dec 13, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已发现该问题,所以马上修复了
独立接口时,第一个选框可以不使用接口 (fix)

Please sign in to comment.