Skip to content

Commit

Permalink
AXUpload fileType Block, AXSelect binding 방식 변
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasJang committed Apr 10, 2014
1 parent 507137f commit 17ba686
Show file tree
Hide file tree
Showing 5 changed files with 923 additions and 906 deletions.
5 changes: 5 additions & 0 deletions _AXJ/lib/AXJ.js
Original file line number Diff line number Diff line change
Expand Up @@ -4135,6 +4135,7 @@ var AXContextMenuClass = Class.create(AXJ, {
var filter = this.filter.bind(this);
var getSubMenu = this.getSubMenu.bind(this);
var po = [];
var showItemCount = 0;
po.push("<div id=\"" + objID + "\" class=\"" + theme + "\" style=\"width:" + width + "px;\">");
AXUtil.each(obj.menu, function (idx, menu) {
if (filter(objSeq, objID, myobj, menu)) {
Expand Down Expand Up @@ -4168,9 +4169,13 @@ var AXContextMenuClass = Class.create(AXJ, {
if (menu.underLine) {
po.push("<div class=\"hline\"></div>");
}
showItemCount++;
}
});
po.push("</div>");

if(showItemCount == 0) return false; // 보여줄 메뉴가 없다면 출력 안함.

axdom(document.body).append(po.join(''));

axdom("#" + objID + " .contextMenuItem:first-child").addClass("first");
Expand Down
Loading

0 comments on commit 17ba686

Please sign in to comment.