- some fixes for prev. post

- better resizing and dragging

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6000 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent 0eb3bffe97
commit 8fe69da2bb

@ -49,7 +49,7 @@ $(document).ready(function() {
.attr({type:'text/css', href: style5, rel:'stylesheet', media:'screen'}) .attr({type:'text/css', href: style5, rel:'stylesheet', media:'screen'})
.appendTo(head); .appendTo(head);
var script0 = yconf.url + '/yacy/ui/js/jquery.dimensions.js'; var script0 = yconf.url + '/yacy/ui/js/jquery.dimensions.min.js';
var script1 = yconf.url + '/yacy/ui/js/jquery.query.js'; var script1 = yconf.url + '/yacy/ui/js/jquery.query.js';
var script2 = yconf.url + '/yacy/ui/js/jquery.form.js'; var script2 = yconf.url + '/yacy/ui/js/jquery.form.js';
var script3 = yconf.url + '/yacy/ui/js/jquery.field.min.js'; var script3 = yconf.url + '/yacy/ui/js/jquery.field.min.js';
@ -81,9 +81,13 @@ $(document).ready(function() {
$("#yquery").setValue(''); $("#yquery").setValue('');
}, },
buttons: { buttons: {
'>': function() { '@': function() {
$("#yside").dialog('open'); if ($("#yside").dialog('isOpen')) {
}, $("#yside").dialog('close');
} else {
$("#yside").dialog('open');
}
},
Next: function() { Next: function() {
startRecord = startRecord + maximumRecords; startRecord = startRecord + maximumRecords;
$('#ysearch').trigger('submit'); $('#ysearch').trigger('submit');
@ -96,12 +100,21 @@ $(document).ready(function() {
}, },
drag: function(event, ui) { drag: function(event, ui) {
var position = $(".ui-dialog").position(); var position = $(".ui-dialog").position();
$("#yside").dialog('option', 'position', [position.left+yconf.width+5,position.top+32]); var left = $(".ui-dialog").width()+5+position.left;
$("#yside").dialog('option', 'position', [left,position.top+32]);
}, },
dragStop: function(event, ui) { dragStop: function(event, ui) {
var position = $(".ui-dialog").position(); var position = $(".ui-dialog").position();
$("#yside").dialog('option', 'position', [position.left+yconf.width+5,position.top+32]); var left = $(".ui-dialog").width()+5+position.left;
$("#yside").dialog('option', 'position', [left,position.top+32]);
}, },
resizeStop: function(event, ui) {
var position = $(".ui-dialog").position();
var height = $(".ui-dialog").height()-85;
var left = $(".ui-dialog").width()+5+position.left;
$("#yside").dialog('option', 'height', height);
$("#yside").dialog('option', 'position', [left,position.top+32]);
},
close: function(event, ui) { close: function(event, ui) {
$("#yside").dialog('destroy'); $("#yside").dialog('destroy');
$('#yside').remove(); $('#yside').remove();
@ -118,15 +131,11 @@ $(document).ready(function() {
height: yconf.height-85, height: yconf.height-85,
minHeight: yconf.height-85, minHeight: yconf.height-85,
show: 'slide', show: 'slide',
hide: 'drop', hide: 'slide',
position : [position.left+yconf.width+5,position.top+32], position : [position.left+yconf.width+5,position.top+32],
open: function(event, ui) { open: function(event, ui) {
$('div.ui-widget-shadow').remove(); $('div.ui-widget-shadow').remove();
}, $('ypopup').dialog( 'moveToTop' );
buttons: {
'<': function() {
$("#yside").dialog('close');
}
} }
}); });
$('.ui-widget-shadow').remove(); $('.ui-widget-shadow').remove();

Loading…
Cancel
Save