remove key from filebox

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9011 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-03 11:06:35 +00:00
parent c1417a889e
commit 455aeb4326

View file

@ -715,10 +715,9 @@ jQuery(function($){
$('.filebox')
.bind('before-open.mw', function(){
var $this, $list, $parentObj;
var key, anchor;
var anchor;
$this = $(this);
key = $this.attr('filebox_key');
anchor = $this.attr('href');
$list = $(anchor).find('.filebox_list');
@ -729,7 +728,7 @@ $('.filebox')
$list.find('.lined .select')
.bind('click', function(event){
var selectedImgSrc = $(this).parent().find('img.filebox_item').attr('src');
$this.trigger('filebox.selected', [key, selectedImgSrc]);
$this.trigger('filebox.selected', [selectedImgSrc]);
$this.trigger('close.mw');
return false;
});