- added default properies to yacyui-portalsearch

- see http://localhost.8080/yacy/ui/yacyui-portaltest.html

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5749 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent c001a020a9
commit 95885a263a

@ -5,6 +5,18 @@ $(document).ready(function() {
cache: false cache: false
}) })
// apply default properties
yconf = $.extend({
url : 'is a mandatory property - no default',
theme : 'start',
title : 'YaCy P2P Web Search',
width : 420,
height : 500,
position: ['top',50],
modal: false,
resizable: true
}, yconf);
$('<div id="ypopup" class="classic"></div>').appendTo("#yacy"); $('<div id="ypopup" class="classic"></div>').appendTo("#yacy");
var style1 = yconf.url + '/yacy/ui/css/yacyui-portalsearch.css'; var style1 = yconf.url + '/yacy/ui/css/yacyui-portalsearch.css';
@ -39,9 +51,9 @@ $(document).ready(function() {
height: yconf.height, height: yconf.height,
width: yconf.width, width: yconf.width,
minWidth: yconf.width, minWidth: yconf.width,
position: ['top',50], position: yconf.position,
modal: false, modal: yconf.modal,
resizable: true, resizable: yconf.resizable,
title: yconf.title, title: yconf.title,
buttons: { buttons: {
Next: function() { Next: function() {
@ -65,7 +77,6 @@ $(document).ready(function() {
$('#ysearch').submit(function() { $('#ysearch').submit(function() {
var query = $('#yquery').getValue();
var url = yconf.url + '/yacysearch.json?callback=?' var url = yconf.url + '/yacysearch.json?callback=?'
$('#ypopup').empty(); $('#ypopup').empty();

Loading…
Cancel
Save