Skip to content

Commit

Permalink
Merge pull request #137 from axisj-com/thomas
Browse files Browse the repository at this point in the history
file mimeType 이 없는 경우 업로드 지원 구문 추가
dialog 에서 mask 제어 안하도록 변경
bindSelector css 버그픽스
AXInput, AXSelect windowResize 방식변경 : 정밀도 향상 기대
  • Loading branch information
thomasJang committed May 25, 2014
2 parents b49b3c4 + c79d51a commit 998f7f0
Show file tree
Hide file tree
Showing 28 changed files with 124 additions and 243 deletions.
47 changes: 33 additions & 14 deletions dist/AXJ.all.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
AXJ - v1.0.4 - 2014-05-22
AXJ - v1.0.4 - 2014-05-24
*/
/* http://www.axisj.com, license : http://www.axisj.com/license */

Expand Down Expand Up @@ -1566,13 +1566,18 @@ mask.setConfig();
/* ********************************************** AXMask ** */

/* ** AXNotification ********************************************** */
/**
* AXNotification
* @class AXNotification
* @extends AXJ
* @version v1.1
* @author tom@axisj.com
* @logs
"2012-10-30 오후 12:01:10",
"2013-01-09 오후 1:46:55 push type bug fix - tom"
"2014-05-23 tom : dialog 에서 mask 제어 안하도록 변경"
*/
var AXNotification = Class.create(AXJ, {
version: "AXNotification v1.0",
author: "tom@axisj.com",
logs: [
"2012-10-30 오후 12:01:10",
"2013-01-09 오후 1:46:55 push type bug fix - tom"
],
initialize: function (AXJ_super) {
AXJ_super();
this.Observer = null;
Expand Down Expand Up @@ -1671,7 +1676,6 @@ var AXNotification = Class.create(AXJ, {
if (!AXgetId(config.targetID)) axdom(document.body).append(this.dialogTray);
this.dialogTray.prepend(po.join(''));

mask.open();
var bodyWidth = (AXUtil.docTD == "Q") ? document.body.clientWidth : document.documentElement.clientWidth;
var l = bodyWidth / 2 - this.dialogTray.width() / 2;
this.dialogTray.css({ left: l + "px" });
Expand Down Expand Up @@ -1771,7 +1775,6 @@ var AXNotification = Class.create(AXJ, {
if (axdom("#" + this.config.targetID).html() == "") {
this.lasBreadSeq = 0;
if (this.config.type == "dialog") {
mask.close();
if(breadID) axdom(document.body).unbind("keyup."+breadID);
}
}
Expand Down Expand Up @@ -14552,7 +14555,15 @@ var AXInputConverter = Class.create(AXJ, {
init: function () {
axdom(window).resize(this.windowResize.bind(this));
},
windowResize: function () {
var windowResizeApply = this.windowResizeApply.bind(this);
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.windowResizeObserver = setTimeout(function () {
windowResizeApply();
}, 10);
},
windowResizeApply: function(){
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.alignAllAnchor();
},
alignAllAnchor: function () {
Expand Down Expand Up @@ -21844,7 +21855,15 @@ var AXSelectConverter = Class.create(AXJ, {
this.isMobile = browser.mobile;
axdom(window).resize(this.windowResize.bind(this));
},
windowResize: function () {
var windowResizeApply = this.windowResizeApply.bind(this);
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.windowResizeObserver = setTimeout(function () {
windowResizeApply();
}, 10);
},
windowResizeApply: function(){
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.alignAllAnchor();
},
alignAllAnchor: function () {
Expand Down Expand Up @@ -30694,7 +30713,7 @@ swfobject.addDomLoadEvent(function () {
* AXUpload5
* @class AXUpload5
* @extends AXJ
* @version v1.27
* @version v1.28
* @author tom@axisj.com
* @logs
"2013-10-02 오후 2:19:36 - 시작 tom",
Expand All @@ -30708,7 +30727,8 @@ swfobject.addDomLoadEvent(function () {
"2014-02-23 오후 8:44:07 - <base> attr 인식 처리 구문 추가",
"2014-04-10 - tom : 설정에 선언된 파일타입 체크하여 파일 셀렉트와 드랍 방지 처리 구문 추가",
"2014-04-10 - tom : fileSelectAutoUpload 옵션 flash 모드에서 작동 하도록 픽스",
"2014-05-15 - tom : 파일선택 갯수 선택오류 버그 픽스 / fileSelectAutoUpload 버그 픽스"
"2014-05-15 - tom : 파일선택 갯수 선택오류 버그 픽스 / fileSelectAutoUpload 버그 픽스",
"2014-05-23 - tom : file mimeType 이 없는 경우 업로드 지원 구문 추가"

* @description
*
Expand Down Expand Up @@ -31299,8 +31319,7 @@ var AXUpload5 = Class.create(AXJ, {
var uploadedCount = this.uploadedList.length;
for (var i = 0; i < files.length; i++) {
var f = files[i];

if( f.size <= cfg.uploadMaxFileSize && (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) ){
if( f.size <= cfg.uploadMaxFileSize && ( (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) || (cfg.file_types == "*/*" && f.type == "") ) ){
if(uploadedCount-1 < cfg.uploadMaxFileCount || cfg.uploadMaxFileCount == 0){
var itemID = 'AX'+AXUtil.timekey()+'_AX_'+i;
this.queue.push({id:itemID, file:f});
Expand Down Expand Up @@ -31365,7 +31384,7 @@ var AXUpload5 = Class.create(AXJ, {
var fileTypeRe = new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig");
var uploadedCount = this.uploadedList.length;
for (var i = 0, f; f = files[i]; i++) {
if(f.size <= cfg.uploadMaxFileSize && (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) ){
if(f.size <= cfg.uploadMaxFileSize && ( (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) || (cfg.file_types == "*/*" && f.type == "") ) ){
uploadedCount++;
if(uploadedCount-1 < cfg.uploadMaxFileCount || cfg.uploadMaxFileCount == 0){
var itemID = 'AX'+AXUtil.timekey()+'_AX_'+i;
Expand Down
28 changes: 14 additions & 14 deletions dist/AXJ.min.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions lib/AXInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,15 @@ var AXInputConverter = Class.create(AXJ, {
init: function () {
axdom(window).resize(this.windowResize.bind(this));
},
windowResize: function () {
var windowResizeApply = this.windowResizeApply.bind(this);
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.windowResizeObserver = setTimeout(function () {
windowResizeApply();
}, 10);
},
windowResizeApply: function(){
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.alignAllAnchor();
},
alignAllAnchor: function () {
Expand Down
19 changes: 11 additions & 8 deletions lib/AXJ.js
Original file line number Diff line number Diff line change
Expand Up @@ -1564,13 +1564,18 @@ mask.setConfig();
/* ********************************************** AXMask ** */

/* ** AXNotification ********************************************** */
/**
* AXNotification
* @class AXNotification
* @extends AXJ
* @version v1.1
* @author tom@axisj.com
* @logs
"2012-10-30 오후 12:01:10",
"2013-01-09 오후 1:46:55 push type bug fix - tom"
"2014-05-23 tom : dialog 에서 mask 제어 안하도록 변경"
*/
var AXNotification = Class.create(AXJ, {
version: "AXNotification v1.0",
author: "tom@axisj.com",
logs: [
"2012-10-30 오후 12:01:10",
"2013-01-09 오후 1:46:55 push type bug fix - tom"
],
initialize: function (AXJ_super) {
AXJ_super();
this.Observer = null;
Expand Down Expand Up @@ -1669,7 +1674,6 @@ var AXNotification = Class.create(AXJ, {
if (!AXgetId(config.targetID)) axdom(document.body).append(this.dialogTray);
this.dialogTray.prepend(po.join(''));

mask.open();
var bodyWidth = (AXUtil.docTD == "Q") ? document.body.clientWidth : document.documentElement.clientWidth;
var l = bodyWidth / 2 - this.dialogTray.width() / 2;
this.dialogTray.css({ left: l + "px" });
Expand Down Expand Up @@ -1769,7 +1773,6 @@ var AXNotification = Class.create(AXJ, {
if (axdom("#" + this.config.targetID).html() == "") {
this.lasBreadSeq = 0;
if (this.config.type == "dialog") {
mask.close();
if(breadID) axdom(document.body).unbind("keyup."+breadID);
}
}
Expand Down
8 changes: 8 additions & 0 deletions lib/AXSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@ var AXSelectConverter = Class.create(AXJ, {
this.isMobile = browser.mobile;
axdom(window).resize(this.windowResize.bind(this));
},
windowResize: function () {
var windowResizeApply = this.windowResizeApply.bind(this);
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.windowResizeObserver = setTimeout(function () {
windowResizeApply();
}, 10);
},
windowResizeApply: function(){
if (this.windowResizeObserver) clearTimeout(this.windowResizeObserver);
this.alignAllAnchor();
},
alignAllAnchor: function () {
Expand Down
10 changes: 5 additions & 5 deletions lib/AXUpload5.js
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ swfobject.addDomLoadEvent(function () {
* AXUpload5
* @class AXUpload5
* @extends AXJ
* @version v1.27
* @version v1.28
* @author tom@axisj.com
* @logs
"2013-10-02 오후 2:19:36 - 시작 tom",
Expand All @@ -1163,7 +1163,8 @@ swfobject.addDomLoadEvent(function () {
"2014-02-23 오후 8:44:07 - <base> attr 인식 처리 구문 추가",
"2014-04-10 - tom : 설정에 선언된 파일타입 체크하여 파일 셀렉트와 드랍 방지 처리 구문 추가",
"2014-04-10 - tom : fileSelectAutoUpload 옵션 flash 모드에서 작동 하도록 픽스",
"2014-05-15 - tom : 파일선택 갯수 선택오류 버그 픽스 / fileSelectAutoUpload 버그 픽스"
"2014-05-15 - tom : 파일선택 갯수 선택오류 버그 픽스 / fileSelectAutoUpload 버그 픽스",
"2014-05-23 - tom : file mimeType 이 없는 경우 업로드 지원 구문 추가"
* @description
*
Expand Down Expand Up @@ -1754,8 +1755,7 @@ var AXUpload5 = Class.create(AXJ, {
var uploadedCount = this.uploadedList.length;
for (var i = 0; i < files.length; i++) {
var f = files[i];

if( f.size <= cfg.uploadMaxFileSize && (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) ){
if( f.size <= cfg.uploadMaxFileSize && ( (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) || (cfg.file_types == "*/*" && f.type == "") ) ){
if(uploadedCount-1 < cfg.uploadMaxFileCount || cfg.uploadMaxFileCount == 0){
var itemID = 'AX'+AXUtil.timekey()+'_AX_'+i;
this.queue.push({id:itemID, file:f});
Expand Down Expand Up @@ -1820,7 +1820,7 @@ var AXUpload5 = Class.create(AXJ, {
var fileTypeRe = new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig");
var uploadedCount = this.uploadedList.length;
for (var i = 0, f; f = files[i]; i++) {
if(f.size <= cfg.uploadMaxFileSize && (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) ){
if(f.size <= cfg.uploadMaxFileSize && ( (new RegExp(cfg.file_types.replace(/\*/g, "[a-z]"), "ig")).test(f.type.toString()) || (cfg.file_types == "*/*" && f.type == "") ) ){
uploadedCount++;
if(uploadedCount-1 < cfg.uploadMaxFileCount || cfg.uploadMaxFileCount == 0){
var itemID = 'AX'+AXUtil.timekey()+'_AX_'+i;
Expand Down
2 changes: 2 additions & 0 deletions samples/AXGrid/loadGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
{
result:"ok",
list:[
<? if ($pageNo != 2){ ?>
<? for ($i = 0;$i<20; $i++){ ?>
<? if($i > 0){ echo ","; } ?>{no:<?=($pageNo-1)*20 + ($i + 1)?>, title:"AXGrid data line <?=$pageNo."/".(($pageNo-1)*20 + ($i + 1))?>", img:"images/<?=$i+1?>.jpg", writer:"Thomas", regDate:"2013-01-18", desc:"myGrid.setList", price:123000, amount:10}
<? } ?>
<? } ?>
],
page:{
Expand Down
1 change: 1 addition & 0 deletions samples/AXUpload5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<script type="text/javascript" src="../../jquery/jquery.min.js"></script>
<script type="text/javascript" src="../../dist/AXJ.min.js"></script>
<script type="text/javascript" src="../../lib/AXUpload5.js"></script>
<script type="text/javascript" src="../page.js"></script>
<script type="text/javascript" src="pageTab.js"></script>
<!-- js block -->
Expand Down
4 changes: 2 additions & 2 deletions ui/arongi/AXInput.css
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,14 @@
background: url('images/dx-selector-search.png') center center no-repeat;
}
.AXanchorSelectorExpandBox {
position: absolute;
position: absolute !important;
left: 0px;
top: 0px;
border: 1px solid #b9babc;
border-radius: 4px;
background: #fff;
box-shadow: 0px 1px #e9eced;
overflow: hidden;
overflow: hidden !important;
}
.AXanchorSelectorExpandBox .AXanchorSelectorExpandScroll {
padding: 2px 0px;
Expand Down
4 changes: 2 additions & 2 deletions ui/arongi/AXJ.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui/arongi/dx-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -328,14 +328,14 @@
background: url('images/dx-selector-search.png') center center no-repeat;
}
.AXanchorSelectorExpandBox {
position: absolute;
position: absolute !important;
left: 0px;
top: 0px;
border: 1px solid #b9babc;
border-radius: 4px;
background: #fff;
box-shadow: 0px 1px #e9eced;
overflow: hidden;
overflow: hidden !important;
}
.AXanchorSelectorExpandBox .AXanchorSelectorExpandScroll {
padding: 2px 0px;
Expand Down
4 changes: 2 additions & 2 deletions ui/arongi/dx-input.less
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,11 @@

//Select에 이벤트가 발생하여 생성되는 경우 필요한 개체로 컴포넌트 컨테이너에 포함되지 않는다. 최상위
.AXanchorSelectorExpandBox{
position:absolute;left:0px;top:0px;
position:absolute !important;left:0px;top:0px;
border:1px solid #b9babc;border-radius:4px;
background:#fff;
box-shadow:0px 1px #e9eced;
overflow:hidden;
overflow:hidden !important;
.AXanchorSelectorExpandScroll{
padding:2px 0px;
}
Expand Down
Loading

0 comments on commit 998f7f0

Please sign in to comment.