projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
62d7ed6
)
switchmenuframe so umgeschrieben dass es keine fehler wirft
author
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 31 Aug 2012 10:12:11 +0000
(12:12 +0200)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 17 Oct 2012 13:51:17 +0000
(15:51 +0200)
js/switchmenuframe.js
patch
|
blob
|
history
diff --git
a/js/switchmenuframe.js
b/js/switchmenuframe.js
index
ec22426
..
055a7d9
100644
(file)
--- a/
js/switchmenuframe.js
+++ b/
js/switchmenuframe.js
@@
-1,17
+1,15
@@
var vSwitch_Menu = 1;
var vSwitch_Menu = 1;
-var FrameSize = (parent.document.getElementById('menuframe').cols);
+var Frame;
+var FrameSize;
-function Switch_Menu()
-{
- if (vSwitch_Menu)
- {
- vSwitch_Menu=false;
- parent.document.getElementById('menuframe').setAttribute('cols','30,*');
- }
- else
- {
- vSwitch_Menu=true;
- parent.document.getElementById('menuframe').setAttribute('cols',FrameSize);
- }
- return;
+function Switch_Menu() {
+ if (Frame) {
+ Frame.attr('cols',vSwitch_Menu ? '30,*' : FrameSize);
+ vSwitch_Menu=!vSwitch_Menu;
+ }
}
}
+
+$(function(){
+ Frame = $(parent.document.getElementById('menuframe'));
+ FrameSize = Frame.attr('cols');
+})