File type input UX enhancement.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12211 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-11-14 05:16:54 +00:00
parent de3556ebb2
commit d94a687977
5 changed files with 16 additions and 19 deletions

View file

@ -320,10 +320,7 @@ jQuery(function($){
$.fn.fileTypeOverlap = function(){
this.each(function(){
var $this = $(this);
$this.wrap('<span class="fileBtn" />').before('<button type="button">');
var $button = $this.prev('button');
$button.text($this.attr('title')).addClass($this.attr('class')).removeClass('overlap');
$this.attr('class','overlap').width($button.width()).height($button.height()).offset($button.offset());
$this.wrap('<span class="fileBtn x_btn" />').before($this.attr('title'));
});
};
$('input[type="file"].overlap').fileTypeOverlap();

File diff suppressed because one or more lines are too long