author | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2011-10-06 00:36:10 (UTC) |
---|---|---|
committer | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2011-10-06 00:36:10 (UTC) |
commit | 6ba274c79e60e417132b260bd0117c5a68121387 (patch) (unidiff) | |
tree | 57c1f95d0fbf9b80312c5c6b6f4a4f951e31c770 /frontend/beta/js/Clipperz/YUI | |
parent | 13ebf1b1987a1566d081ff1ba89b4dca197b7d2e (diff) | |
download | clipperz-6ba274c79e60e417132b260bd0117c5a68121387.zip clipperz-6ba274c79e60e417132b260bd0117c5a68121387.tar.gz clipperz-6ba274c79e60e417132b260bd0117c5a68121387.tar.bz2 |
Fixed the copyright headers
Diffstat (limited to 'frontend/beta/js/Clipperz/YUI') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/beta/js/Clipperz/YUI/Collapser.js | 15 | ||||
-rw-r--r-- | frontend/beta/js/Clipperz/YUI/DomHelper.js | 15 | ||||
-rw-r--r-- | frontend/beta/js/Clipperz/YUI/DomQuery.js | 15 | ||||
-rw-r--r-- | frontend/beta/js/Clipperz/YUI/Drawer.js | 15 | ||||
-rw-r--r-- | frontend/beta/js/Clipperz/YUI/IBLayoutManager.js | 15 | ||||
-rw-r--r-- | frontend/beta/js/Clipperz/YUI/IBLayoutRegion.js | 15 | ||||
-rw-r--r-- | frontend/beta/js/Clipperz/YUI/MessageBox.js | 15 |
7 files changed, 42 insertions, 63 deletions
diff --git a/frontend/beta/js/Clipperz/YUI/Collapser.js b/frontend/beta/js/Clipperz/YUI/Collapser.js index 5c0ac0f..b104877 100644 --- a/frontend/beta/js/Clipperz/YUI/Collapser.js +++ b/frontend/beta/js/Clipperz/YUI/Collapser.js | |||
@@ -1,72 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } | 27 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } |
31 | 28 | ||
32 | //found on YUI-EXT forum (http://www.yui-ext.com/forum/viewtopic.php?t=683&highlight=accordion) | 29 | //found on YUI-EXT forum (http://www.yui-ext.com/forum/viewtopic.php?t=683&highlight=accordion) |
33 | Clipperz.YUI.Collapser = function(clickEl, collapseEl, initiallyCollapsed) { | 30 | Clipperz.YUI.Collapser = function(clickEl, collapseEl, initiallyCollapsed) { |
34 | this.clickEl = getEl(clickEl); | 31 | this.clickEl = getEl(clickEl); |
35 | this.collapseEl = getEl(collapseEl); | 32 | this.collapseEl = getEl(collapseEl); |
36 | this.clickEl.addClass('collapser-expanded'); | 33 | this.clickEl.addClass('collapser-expanded'); |
37 | if (initiallyCollapsed == true) { | 34 | if (initiallyCollapsed == true) { |
38 | this.afterCollapse(); | 35 | this.afterCollapse(); |
39 | } | 36 | } |
40 | this.clickEl.mon('click', function(){ | 37 | this.clickEl.mon('click', function(){ |
41 | this.collapsed === true ? this.expand() : this.collapse(); | 38 | this.collapsed === true ? this.expand() : this.collapse(); |
42 | }, this, true); | 39 | }, this, true); |
43 | }; | 40 | }; |
44 | 41 | ||
45 | Clipperz.YUI.Collapser.prototype = { | 42 | Clipperz.YUI.Collapser.prototype = { |
46 | 'collapse': function(){ | 43 | 'collapse': function(){ |
47 | this.collapseEl.clip(); | 44 | this.collapseEl.clip(); |
48 | this.collapseEl.setHeight(1, true, .35, this.afterCollapse.createDelegate(this), YAHOO.util.Easing.easeOut); | 45 | this.collapseEl.setHeight(1, true, .35, this.afterCollapse.createDelegate(this), YAHOO.util.Easing.easeOut); |
49 | this.clickEl.replaceClass('collapser-expanded','collapser-collapsed'); | 46 | this.clickEl.replaceClass('collapser-expanded','collapser-collapsed'); |
50 | }, | 47 | }, |
51 | 48 | ||
52 | 'afterCollapse': function(){ | 49 | 'afterCollapse': function(){ |
53 | this.collapsed = true; | 50 | this.collapsed = true; |
54 | this.collapseEl.setDisplayed(false); | 51 | this.collapseEl.setDisplayed(false); |
55 | this.clickEl.replaceClass('collapser-expanded','collapser-collapsed'); | 52 | this.clickEl.replaceClass('collapser-expanded','collapser-collapsed'); |
56 | }, | 53 | }, |
57 | 54 | ||
58 | 'expand': function(){ | 55 | 'expand': function(){ |
59 | this.collapseEl.setDisplayed(true); | 56 | this.collapseEl.setDisplayed(true); |
60 | this.collapseEl.autoHeight(true, .35, this.afterExpand.createDelegate(this), YAHOO.util.Easing.easeOut); | 57 | this.collapseEl.autoHeight(true, .35, this.afterExpand.createDelegate(this), YAHOO.util.Easing.easeOut); |
61 | this.clickEl.replaceClass('collapser-collapsed','collapser-expanded'); | 58 | this.clickEl.replaceClass('collapser-collapsed','collapser-expanded'); |
62 | }, | 59 | }, |
63 | 60 | ||
64 | 'afterExpand': function(){ | 61 | 'afterExpand': function(){ |
65 | this.collapsed = false; | 62 | this.collapsed = false; |
66 | this.collapseEl.unclip(); | 63 | this.collapseEl.unclip(); |
67 | this.collapseEl.setStyle('height', ''); | 64 | this.collapseEl.setStyle('height', ''); |
68 | this.clickEl.replaceClass('collapser-collapsed','collapser-expanded'); | 65 | this.clickEl.replaceClass('collapser-collapsed','collapser-expanded'); |
69 | }, | 66 | }, |
70 | 67 | ||
71 | //----------------------------------------------------- | 68 | //----------------------------------------------------- |
72 | __syntaxFix__: '__syntaxFix__' | 69 | __syntaxFix__: '__syntaxFix__' |
diff --git a/frontend/beta/js/Clipperz/YUI/DomHelper.js b/frontend/beta/js/Clipperz/YUI/DomHelper.js index 4f8acde..05edc49 100644 --- a/frontend/beta/js/Clipperz/YUI/DomHelper.js +++ b/frontend/beta/js/Clipperz/YUI/DomHelper.js | |||
@@ -1,72 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.ext) == 'undefined') { Clipperz.ext = {}; } | 27 | if (typeof(Clipperz.ext) == 'undefined') { Clipperz.ext = {}; } |
31 | 28 | ||
32 | /** | 29 | /** |
33 | * @class Clipperz.YUI.DomHelper | 30 | * @class Clipperz.YUI.DomHelper |
34 | * Utility class for working with DOM and/or Templates. It transparently supports using HTML fragments or DOM. | 31 | * Utility class for working with DOM and/or Templates. It transparently supports using HTML fragments or DOM. |
35 | * For more information see <a href="http://www.jackslocum.com/yui/2006/10/06/domhelper-create-elements-using-dom-html-fragments-or-templates/">this blog post with examples</a>. | 32 | * For more information see <a href="http://www.jackslocum.com/yui/2006/10/06/domhelper-create-elements-using-dom-html-fragments-or-templates/">this blog post with examples</a>. |
36 | * @singleton | 33 | * @singleton |
37 | */ | 34 | */ |
38 | Clipperz.YUI.DomHelper = new function(){ | 35 | Clipperz.YUI.DomHelper = new function(){ |
39 | /**@private*/ | 36 | /**@private*/ |
40 | var d = document; | 37 | var d = document; |
41 | var tempTableEl = null; | 38 | var tempTableEl = null; |
42 | /** True to force the use of DOM instead of html fragments @type Boolean */ | 39 | /** True to force the use of DOM instead of html fragments @type Boolean */ |
43 | this.useDom = false; | 40 | this.useDom = false; |
44 | var emptyTags = /^(?:base|basefont|br|frame|hr|img|input|isindex|link|meta|nextid|range|spacer|wbr|audioscope|area|param|keygen|col|limittext|spot|tab|over|right|left|choose|atop|of)$/i; | 41 | var emptyTags = /^(?:base|basefont|br|frame|hr|img|input|isindex|link|meta|nextid|range|spacer|wbr|audioscope|area|param|keygen|col|limittext|spot|tab|over|right|left|choose|atop|of)$/i; |
45 | /** | 42 | /** |
46 | * Applies a style specification to an element | 43 | * Applies a style specification to an element |
47 | * @param {String/HTMLElement} el The element to apply styles to | 44 | * @param {String/HTMLElement} el The element to apply styles to |
48 | * @param {String/Object/Function} styles A style specification string eg "width:100px", or object in the form {width:"100px"}, or | 45 | * @param {String/Object/Function} styles A style specification string eg "width:100px", or object in the form {width:"100px"}, or |
49 | * a function which returns such a specification. | 46 | * a function which returns such a specification. |
50 | */ | 47 | */ |
51 | this.applyStyles = function(el, styles){ | 48 | this.applyStyles = function(el, styles){ |
52 | if(styles){ | 49 | if(styles){ |
53 | var D = YAHOO.util.Dom; | 50 | var D = YAHOO.util.Dom; |
54 | if (typeof styles == "string"){ | 51 | if (typeof styles == "string"){ |
55 | var re = /\s?([a-z\-]*)\:([^;]*);?/gi; | 52 | var re = /\s?([a-z\-]*)\:([^;]*);?/gi; |
56 | var matches; | 53 | var matches; |
57 | while ((matches = re.exec(styles)) != null){ | 54 | while ((matches = re.exec(styles)) != null){ |
58 | D.setStyle(el, matches[1], matches[2]); | 55 | D.setStyle(el, matches[1], matches[2]); |
59 | } | 56 | } |
60 | }else if (typeof styles == "object"){ | 57 | }else if (typeof styles == "object"){ |
61 | for (var style in styles){ | 58 | for (var style in styles){ |
62 | D.setStyle(el, style, styles[style]); | 59 | D.setStyle(el, style, styles[style]); |
63 | } | 60 | } |
64 | }else if (typeof styles == "function"){ | 61 | }else if (typeof styles == "function"){ |
65 | Clipperz.YUI.DomHelper.applyStyles(el, styles.call()); | 62 | Clipperz.YUI.DomHelper.applyStyles(el, styles.call()); |
66 | } | 63 | } |
67 | } | 64 | } |
68 | }; | 65 | }; |
69 | 66 | ||
70 | // build as innerHTML where available | 67 | // build as innerHTML where available |
71 | /** @ignore */ | 68 | /** @ignore */ |
72 | var createHtml = function(o){ | 69 | var createHtml = function(o){ |
diff --git a/frontend/beta/js/Clipperz/YUI/DomQuery.js b/frontend/beta/js/Clipperz/YUI/DomQuery.js index 84aac08..4ad4193 100644 --- a/frontend/beta/js/Clipperz/YUI/DomQuery.js +++ b/frontend/beta/js/Clipperz/YUI/DomQuery.js | |||
@@ -1,72 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | /* | 26 | /* |
30 | * yui-ext 0.40 | 27 | * yui-ext 0.40 |
31 | * Copyright(c) 2006, Jack Slocum. | 28 | * Copyright(c) 2006, Jack Slocum. |
32 | */ | 29 | */ |
33 | 30 | ||
34 | /** | 31 | /** |
35 | * @class Ext.DomQuery | 32 | * @class Ext.DomQuery |
36 | * Provides high performance selector/xpath processing by compiling queries into reusable functions. | 33 | * Provides high performance selector/xpath processing by compiling queries into reusable functions. |
37 | * New pseudo classes and matchers can be plugged. It works on HTML and XML documents (if a content node is passed in). | 34 | * New pseudo classes and matchers can be plugged. It works on HTML and XML documents (if a content node is passed in). |
38 | * @singleton | 35 | * @singleton |
39 | */ | 36 | */ |
40 | Ext.DomQuery = function(){ | 37 | Ext.DomQuery = function(){ |
41 | var cache = {}, simpleCache = {}, valueCache = {}; | 38 | var cache = {}, simpleCache = {}, valueCache = {}; |
42 | var nonSpace = /\S/; | 39 | var nonSpace = /\S/; |
43 | var trimRe = /^\s*(.*?)\s*$/; | 40 | var trimRe = /^\s*(.*?)\s*$/; |
44 | var tplRe = /\{(\d+)\}/g; | 41 | var tplRe = /\{(\d+)\}/g; |
45 | var modeRe = /^(\s?[\/>]\s?|\s|$)/; | 42 | var modeRe = /^(\s?[\/>]\s?|\s|$)/; |
46 | var clsRes = {}; | 43 | var clsRes = {}; |
47 | 44 | ||
48 | function child(p, index){ | 45 | function child(p, index){ |
49 | var i = 0; | 46 | var i = 0; |
50 | var n = p.firstChild; | 47 | var n = p.firstChild; |
51 | while(n){ | 48 | while(n){ |
52 | if(n.nodeType == 1){ | 49 | if(n.nodeType == 1){ |
53 | i++; | 50 | i++; |
54 | if(i == index){ | 51 | if(i == index){ |
55 | return n; | 52 | return n; |
56 | } | 53 | } |
57 | } | 54 | } |
58 | n = n.nextSibling; | 55 | n = n.nextSibling; |
59 | } | 56 | } |
60 | return null; | 57 | return null; |
61 | }; | 58 | }; |
62 | 59 | ||
63 | function next(d){ | 60 | function next(d){ |
64 | var n = d.nextSibling; | 61 | var n = d.nextSibling; |
65 | while(n && n.nodeType != 1){ | 62 | while(n && n.nodeType != 1){ |
66 | n = n.nextSibling; | 63 | n = n.nextSibling; |
67 | } | 64 | } |
68 | return n; | 65 | return n; |
69 | }; | 66 | }; |
70 | 67 | ||
71 | function prev(d){ | 68 | function prev(d){ |
72 | var n = d.previousSibling; | 69 | var n = d.previousSibling; |
diff --git a/frontend/beta/js/Clipperz/YUI/Drawer.js b/frontend/beta/js/Clipperz/YUI/Drawer.js index 394912e..508bfe5 100644 --- a/frontend/beta/js/Clipperz/YUI/Drawer.js +++ b/frontend/beta/js/Clipperz/YUI/Drawer.js | |||
@@ -1,72 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } | 27 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } |
31 | 28 | ||
32 | 29 | ||
33 | Clipperz.YUI.Drawer = function(anElement, aRegion) { | 30 | Clipperz.YUI.Drawer = function(anElement, aRegion) { |
34 | this._status = 'slideIn'; | 31 | this._status = 'slideIn'; |
35 | 32 | ||
36 | this._element = YAHOO.ext.Element.get(anElement); | 33 | this._element = YAHOO.ext.Element.get(anElement); |
37 | this._region = aRegion || null; | 34 | this._region = aRegion || null; |
38 | 35 | ||
39 | this._collapsedElement = this.element().getChildrenByClassName("drawer-collapsed")[0]; | 36 | this._collapsedElement = this.element().getChildrenByClassName("drawer-collapsed")[0]; |
40 | this._contentElement = this.element().getChildrenByClassName("drawer-content")[0]; | 37 | this._contentElement = this.element().getChildrenByClassName("drawer-content")[0]; |
41 | 38 | ||
42 | 39 | ||
43 | this._wholeCollapedElement = this.enhanceCollapsedElement(); | 40 | this._wholeCollapedElement = this.enhanceCollapsedElement(); |
44 | this._wholeCollapedElement.setWidth(this.region().element().getWidth()); | 41 | this._wholeCollapedElement.setWidth(this.region().element().getWidth()); |
45 | this._wholeCollapedElement.setHeight(this.region().element().getHeight()); | 42 | this._wholeCollapedElement.setHeight(this.region().element().getHeight()); |
46 | 43 | ||
47 | this._contentWrapper = this.enhanceContentElement(); | 44 | this._contentWrapper = this.enhanceContentElement(); |
48 | this._contentElementActor = new YAHOO.ext.Actor(this.contentWrapper().dom); | 45 | this._contentElementActor = new YAHOO.ext.Actor(this.contentWrapper().dom); |
49 | this.contentElementActor().hide(); | 46 | this.contentElementActor().hide(); |
50 | 47 | ||
51 | this._contentWidth = 200; | 48 | this._contentWidth = 200; |
52 | }; | 49 | }; |
53 | 50 | ||
54 | YAHOO.extendX(Clipperz.YUI.Drawer, YAHOO.ext.util.Observable, { | 51 | YAHOO.extendX(Clipperz.YUI.Drawer, YAHOO.ext.util.Observable, { |
55 | 52 | ||
56 | 'element': function() { | 53 | 'element': function() { |
57 | return this._element; | 54 | return this._element; |
58 | }, | 55 | }, |
59 | 56 | ||
60 | //----------------------------------------------------- | 57 | //----------------------------------------------------- |
61 | 58 | ||
62 | 'status': function() { | 59 | 'status': function() { |
63 | return this._status; | 60 | return this._status; |
64 | }, | 61 | }, |
65 | 62 | ||
66 | 'setStatus': function(aValue) { | 63 | 'setStatus': function(aValue) { |
67 | this._status = aValue; | 64 | this._status = aValue; |
68 | }, | 65 | }, |
69 | 66 | ||
70 | //----------------------------------------------------- | 67 | //----------------------------------------------------- |
71 | 68 | ||
72 | 'collapsedElement': function() { | 69 | 'collapsedElement': function() { |
diff --git a/frontend/beta/js/Clipperz/YUI/IBLayoutManager.js b/frontend/beta/js/Clipperz/YUI/IBLayoutManager.js index 626b699..6e2138e 100644 --- a/frontend/beta/js/Clipperz/YUI/IBLayoutManager.js +++ b/frontend/beta/js/Clipperz/YUI/IBLayoutManager.js | |||
@@ -1,72 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } | 27 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } |
31 | 28 | ||
32 | 29 | ||
33 | Clipperz.YUI.IBLayoutManager = function(container, config) { | 30 | Clipperz.YUI.IBLayoutManager = function(container, config) { |
34 | var regionName; | 31 | var regionName; |
35 | varelement; | 32 | varelement; |
36 | 33 | ||
37 | config = config || {}; | 34 | config = config || {}; |
38 | 35 | ||
39 | Clipperz.YUI.IBLayoutManager.superclass.constructor.call(this, container); | 36 | Clipperz.YUI.IBLayoutManager.superclass.constructor.call(this, container); |
40 | this.hideOnLayout = config.hideOnLayout || false; | 37 | this.hideOnLayout = config.hideOnLayout || false; |
41 | 38 | ||
42 | element = YAHOO.ext.Element.get(container); | 39 | element = YAHOO.ext.Element.get(container); |
43 | element.setStyle('position', 'absolute'); | 40 | element.setStyle('position', 'absolute'); |
44 | element.setStyle('overflow', 'hidden'); | 41 | element.setStyle('overflow', 'hidden'); |
45 | 42 | ||
46 | for (regionName in config.regions) { | 43 | for (regionName in config.regions) { |
47 | var newRegion; | 44 | var newRegion; |
48 | 45 | ||
49 | newRegion = new new Clipperz.YUI.IBLayoutRegion(this, regionName, config.regions[regionName]); | 46 | newRegion = new new Clipperz.YUI.IBLayoutRegion(this, regionName, config.regions[regionName]); |
50 | this.addRegion(regionName, newRegion); | 47 | this.addRegion(regionName, newRegion); |
51 | } | 48 | } |
52 | 49 | ||
53 | this.layout(); | 50 | this.layout(); |
54 | }; | 51 | }; |
55 | 52 | ||
56 | YAHOO.extendX(Clipperz.YUI.IBLayoutManager, YAHOO.ext.LayoutManager, { | 53 | YAHOO.extendX(Clipperz.YUI.IBLayoutManager, YAHOO.ext.LayoutManager, { |
57 | 54 | ||
58 | 'toString': function() { | 55 | 'toString': function() { |
59 | return "IBLayoutManager (" + this.el.id + ")"; | 56 | return "IBLayoutManager (" + this.el.id + ")"; |
60 | }, | 57 | }, |
61 | 58 | ||
62 | //----------------------------------------------------- | 59 | //----------------------------------------------------- |
63 | 60 | ||
64 | 'add': function(aName, aPanel) { | 61 | 'add': function(aName, aPanel) { |
65 | var regionName; | 62 | var regionName; |
66 | 63 | ||
67 | regionName = aName.toLowerCase(); | 64 | regionName = aName.toLowerCase(); |
68 | return this.regions[regionName].add(aPanel); | 65 | return this.regions[regionName].add(aPanel); |
69 | }, | 66 | }, |
70 | 67 | ||
71 | //----------------------------------------------------- | 68 | //----------------------------------------------------- |
72 | 69 | ||
diff --git a/frontend/beta/js/Clipperz/YUI/IBLayoutRegion.js b/frontend/beta/js/Clipperz/YUI/IBLayoutRegion.js index 2fd4377..f8e0cb1 100644 --- a/frontend/beta/js/Clipperz/YUI/IBLayoutRegion.js +++ b/frontend/beta/js/Clipperz/YUI/IBLayoutRegion.js | |||
@@ -1,72 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | 26 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } |
30 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } | 27 | if (typeof(Clipperz.YUI) == 'undefined') { Clipperz.YUI = {}; } |
31 | 28 | ||
32 | 29 | ||
33 | Clipperz.YUI.IBLayoutRegion = function(aManager, aName, aConfig) { | 30 | Clipperz.YUI.IBLayoutRegion = function(aManager, aName, aConfig) { |
34 | this._configuration = aConfig; | 31 | this._configuration = aConfig; |
35 | 32 | ||
36 | //Clipperz.YUI.IBLayoutRegion.superclass.constructor.call(); | 33 | //Clipperz.YUI.IBLayoutRegion.superclass.constructor.call(); |
37 | Clipperz.YUI.IBLayoutRegion.superclass.constructor.call(this, aManager, aConfig, aName); | 34 | Clipperz.YUI.IBLayoutRegion.superclass.constructor.call(this, aManager, aConfig, aName); |
38 | }; | 35 | }; |
39 | 36 | ||
40 | YAHOO.extendX(Clipperz.YUI.IBLayoutRegion, YAHOO.ext.LayoutRegion, { | 37 | YAHOO.extendX(Clipperz.YUI.IBLayoutRegion, YAHOO.ext.LayoutRegion, { |
41 | 38 | ||
42 | 'toString': function() { | 39 | 'toString': function() { |
43 | return "IBLayoutRegion (" + this.name() + ")"; | 40 | return "IBLayoutRegion (" + this.name() + ")"; |
44 | }, | 41 | }, |
45 | 42 | ||
46 | //----------------------------------------------------- | 43 | //----------------------------------------------------- |
47 | 44 | ||
48 | 'name': function() { | 45 | 'name': function() { |
49 | return this.position; | 46 | return this.position; |
50 | }, | 47 | }, |
51 | 48 | ||
52 | //----------------------------------------------------- | 49 | //----------------------------------------------------- |
53 | 50 | ||
54 | 'manager': function() { | 51 | 'manager': function() { |
55 | return this.mgr; | 52 | return this.mgr; |
56 | }, | 53 | }, |
57 | 54 | ||
58 | 'configuration': function() { | 55 | 'configuration': function() { |
59 | return this._configuration; | 56 | return this._configuration; |
60 | }, | 57 | }, |
61 | 58 | ||
62 | //----------------------------------------------------- | 59 | //----------------------------------------------------- |
63 | 60 | ||
64 | 'getAttributeValue': function(anAttribute) { | 61 | 'getAttributeValue': function(anAttribute) { |
65 | var result; | 62 | var result; |
66 | 63 | ||
67 | switch(anAttribute) { | 64 | switch(anAttribute) { |
68 | case "top": | 65 | case "top": |
69 | result = this.element().getTop(); | 66 | result = this.element().getTop(); |
70 | break; | 67 | break; |
71 | case "left": | 68 | case "left": |
72 | result = this.element().getLeft(); | 69 | result = this.element().getLeft(); |
diff --git a/frontend/beta/js/Clipperz/YUI/MessageBox.js b/frontend/beta/js/Clipperz/YUI/MessageBox.js index ec33d7d..c7b4702 100644 --- a/frontend/beta/js/Clipperz/YUI/MessageBox.js +++ b/frontend/beta/js/Clipperz/YUI/MessageBox.js | |||
@@ -1,72 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | Clipperz.YUI.MessageBox = function(){ | 26 | Clipperz.YUI.MessageBox = function(){ |
30 | var dlg, opt, mask; | 27 | var dlg, opt, mask; |
31 | var bodyEl, msgEl, textboxEl, textareaEl, progressEl, pp; | 28 | var bodyEl, msgEl, textboxEl, textareaEl, progressEl, pp; |
32 | var buttons, activeTextEl, bwidth; | 29 | var buttons, activeTextEl, bwidth; |
33 | 30 | ||
34 | var handleButton = function(button){ | 31 | var handleButton = function(button){ |
35 | if(typeof opt.fn == 'function'){ | 32 | if(typeof opt.fn == 'function'){ |
36 | if(opt.fn.call(opt.scope||window, button, activeTextEl.dom.value) !== false){ | 33 | if(opt.fn.call(opt.scope||window, button, activeTextEl.dom.value) !== false){ |
37 | dlg.hide(); | 34 | dlg.hide(); |
38 | } | 35 | } |
39 | }else{ | 36 | }else{ |
40 | dlg.hide(); | 37 | dlg.hide(); |
41 | } | 38 | } |
42 | }; | 39 | }; |
43 | 40 | ||
44 | return { | 41 | return { |
45 | updateButtons: function(b){ | 42 | updateButtons: function(b){ |
46 | var width = 0; | 43 | var width = 0; |
47 | if(!b){ | 44 | if(!b){ |
48 | buttons['ok'].hide(); | 45 | buttons['ok'].hide(); |
49 | buttons['cancel'].hide(); | 46 | buttons['cancel'].hide(); |
50 | buttons['yes'].hide(); | 47 | buttons['yes'].hide(); |
51 | buttons['no'].hide(); | 48 | buttons['no'].hide(); |
52 | return width; | 49 | return width; |
53 | } | 50 | } |
54 | for(var k in buttons){ | 51 | for(var k in buttons){ |
55 | if(typeof buttons[k] != 'function'){ | 52 | if(typeof buttons[k] != 'function'){ |
56 | if(b[k]){ | 53 | if(b[k]){ |
57 | buttons[k].show(); | 54 | buttons[k].show(); |
58 | buttons[k].setText(typeof b[k] == 'string' ? b[k] : YAHOO.ext.MessageBox.buttonText[k]); | 55 | buttons[k].setText(typeof b[k] == 'string' ? b[k] : YAHOO.ext.MessageBox.buttonText[k]); |
59 | width += buttons[k].el.getWidth()+15; | 56 | width += buttons[k].el.getWidth()+15; |
60 | }else{ | 57 | }else{ |
61 | buttons[k].hide(); | 58 | buttons[k].hide(); |
62 | } | 59 | } |
63 | } | 60 | } |
64 | } | 61 | } |
65 | return width; | 62 | return width; |
66 | }, | 63 | }, |
67 | 64 | ||
68 | getDialog : function(){ | 65 | getDialog : function(){ |
69 | if(!dlg){ | 66 | if(!dlg){ |
70 | dlg = new YAHOO.ext.BasicDialog('mb-dlg', { | 67 | dlg = new YAHOO.ext.BasicDialog('mb-dlg', { |
71 | autoCreate:true, | 68 | autoCreate:true, |
72 | shadow:true, | 69 | shadow:true, |