mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
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:
parent
de3556ebb2
commit
d94a687977
5 changed files with 16 additions and 19 deletions
|
|
@ -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();
|
||||
|
|
|
|||
2
modules/admin/tpl/js/admin.min.js
vendored
2
modules/admin/tpl/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue