remove dead code

This commit is contained in:
j 2010-11-26 16:08:25 +01:00
parent b8e5764f3d
commit 43faea6028
1 changed files with 0 additions and 78 deletions

View File

@ -93,81 +93,3 @@ function constructList() {
}
});
}
/*
.bindEvent({
load: function(event, data) {
app.$ui.total.html(app.constructStatus('total', data));
data = [];
$.each(app.config.totals, function(i, v) {
data[v.id] = 0;
});
app.$ui.selected.html(app.constructStatus('selected', data));
},
open: function(event, data) {
//alert(data.toSource());
var $iframe = $('<iframe frameborder="0">')
.css({
width:'100%',
height: '99%',
border: 0,
margin: 0,
padding: 0
});
var $dialog = new Ox.Dialog({
title: 'Downloading',
buttons: [
{
title: 'Close',
click: function() {
$dialog.close();
}
}
],
width: 800,
height: 400
})
.append($iframe)
.open();
app.api.find({
query: {
conditions: [{
key: 'id',
value: data.ids[0],
operator: '='
}],
operator: ''
},
keys: ['links'],
range: [0, 100]
}, function(result) {
var url = result.data.items[0].links[0];
$iframe.attr('src', 'http://anonym.to/?' + url);
//var url = result.data.items[0].links[0];
//document.location.href = url;
//window.open(url, "download");
});
},
select: function(event, data) {
app.api.find({
query: {
conditions: $.map(data.ids, function(id, i) {
return {
key: 'id',
value: id,
operator: '='
}
}),
operator: '|'
}
}, function(result) {
app.$ui.selected.html(app.constructStatus('selected', result.data));
});
}
});
}
*/