fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
workaround for ie ignoring everything
[wolnelektury.git]
/
wolnelektury
/
static
/
js
/
widget.js
diff --git
a/wolnelektury/static/js/widget.js
b/wolnelektury/static/js/widget.js
index
7012e64
..
de30eb7
100644
(file)
--- a/
wolnelektury/static/js/widget.js
+++ b/
wolnelektury/static/js/widget.js
@@
-17,7
+17,7
@@
stylesheet.setAttribute('rel', 'stylesheet');
stylesheet.setAttribute('href', 'http://'+host+'/static/css/widget.css');
linkLogo.setAttribute('href', 'http://'+host);
logo.setAttribute('src', 'http://'+host+'/static/img/logo.png');
stylesheet.setAttribute('href', 'http://'+host+'/static/css/widget.css');
linkLogo.setAttribute('href', 'http://'+host);
logo.setAttribute('src', 'http://'+host+'/static/img/logo.png');
-form.setAttribute('action', 'http://'+host+'/
katalog/
szukaj/');
+form.setAttribute('action', 'http://'+host+'/szukaj/');
form.setAttribute('method', 'get');
form.setAttribute('accept-charset', 'utf-8');
form.setAttribute('id', 'wl-form');
form.setAttribute('method', 'get');
form.setAttribute('accept-charset', 'utf-8');
form.setAttribute('id', 'wl-form');
@@
-64,3
+64,10
@@
widget.style.width = "160px";
widget.style.padding = "10px";
widget.style.fontSize = "12px";
form.style.paddingTop = "10px";
widget.style.padding = "10px";
widget.style.fontSize = "12px";
form.style.paddingTop = "10px";
+
+/* resize - if needed */
+if(widget.getAttribute('width') == '140'){
+ logo.setAttribute('width', '140');
+ inputText.setAttribute('size', '10');
+ widget.style.width = "140px";
+}