Site edit. File upload input button UI change. .overlap button style added.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11760 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ChanMyeong 2012-10-17 07:37:37 +00:00
parent ab79cc4552
commit 1443edc1eb
5 changed files with 15 additions and 17 deletions

View file

@ -190,9 +190,10 @@ jQuery(function($){
// File input .overlap style
$('input[type="file"].overlap').each(function(){
var $this = $(this);
var $btn = $this.prev('button');
$this.parent().css('position','relative');
$this.width($btn.width()).height($btn.height()).offset($btn.offset());
$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());
});
// Email Masking
$.fn.xeMask = function(){

View file

@ -190,9 +190,10 @@ jQuery(function($){
// File input .overlap style
$('input[type="file"].overlap').each(function(){
var $this = $(this);
var $btn = $this.prev('button');
$this.parent().css('position','relative');
$this.width($btn.width()).height($btn.height()).offset($btn.offset());
$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());
});
// Email Masking
$.fn.xeMask = function(){