Commit 3ddbe89e authored by Boris Kocherov's avatar Boris Kocherov

erp5_officejs: update ooffice

* compile *.less to css
* add document editor and presentation editor (presentation editor not
used now)
* use concatinated files
parent b0196c58

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts48059956.98</string> </value>
<value> <string>ts50885437.8</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -411,7 +411,7 @@
};\r\n
\r\n
DocsAPI.DocEditor.version = function() {\r\n
return \'3.0b##BN#\';\r\n
return \'3.0b.760\';\r\n
};\r\n
\r\n
MessageDispatcher = function(fn, scope) {\r\n
......@@ -558,7 +558,7 @@
</item>
<item>
<key> <string>size</string> </key>
<value> <int>16821</int> </value>
<value> <int>16820</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -2,25 +2,39 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308795.56</string> </value>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>cache-scripts.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[
<!DOCTYPE html>\r\n
<html>\r\n
......@@ -46,22 +60,25 @@
editor.LoadFontsFromServer();\r\n
</script>\r\n
</body>\r\n
</html>\r\n
</html>
]]></string> </value>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1112</int> </value>
<key> <string>id</string> </key>
<value> <string>cache-scripts.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -2,25 +2,39 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308795.64</string> </value>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>index.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[
<!DOCTYPE html>\r\n
<html>\r\n
......@@ -363,22 +377,25 @@
})();\r\n
</script>\r\n
</body>\r\n
</html>\r\n
</html>
]]></string> </value>
]]></unicode> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>14010</int> </value>
<key> <string>id</string> </key>
<value> <string>index.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -2,13 +2,13 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308795.91</string> </value>
<value> <string>ts50885438.41</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -98,6 +98,10 @@ AZIeMaoBIN3y8eHB0dFh3nZQLpMwWh+ELMC+TAt74HI2BKMn/BUKJL7BcwHJRvlXmJA4WESe3Ui1
4HE/9fAgdmlr3pzY5DDcOlW7U9ftqoUEaqM4bN1elU1/x6YqPGMw84zDXCZMHiFetnN200exZ49X
z43MKfA/s2s1ioH1tjAAAAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>128</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
......@@ -110,6 +114,10 @@ z43MKfA/s2s1ioH1tjAAAAAASUVORK5CYII=</string> </value>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>128</int> </value>
</item>
</dictionary>
</pickle>
</record>
......
......@@ -2,13 +2,13 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308796.0</string> </value>
<value> <string>ts50885438.55</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -102,6 +102,10 @@ ZlJsLhVdwEWFD1v0wgD8sXaAtkB8/UncG7fLXsF97KU7xme4UTVtq/BXeW9wrwAQBJEJpCgKO6XV
28D2pNcjeNp62e3htBV6YQAeBgAEAYUSCKmRMn1/2mhrag8EHFN6j4JfVfiRAf4L0OKEflwV8OkA
AAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>128</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
......@@ -114,6 +118,10 @@ AAAASUVORK5CYII=</string> </value>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>128</int> </value>
</item>
</dictionary>
</pickle>
</record>
......
......@@ -2,13 +2,13 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308796.09</string> </value>
<value> <string>ts50885438.61</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -98,6 +98,10 @@ AXf7OBHY6W3K9FE+fZyOEJwHmvwk54wC+ly6rw8lbnxOhrUOzkCgFy6fD+A4fBDEh0OxJ7X2nvDc
GznOIOBzDikHm58/mpF+UGTVK3AOCp+/nzpcPuuC0SdkVjtXnXL10o///w9H4ARaa93s9wAAAABJ
RU5ErkJggg==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>128</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
......@@ -110,6 +114,10 @@ RU5ErkJggg==</string> </value>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>128</int> </value>
</item>
</dictionary>
</pickle>
</record>
......
......@@ -2,13 +2,13 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
<global name="Image" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308796.18</string> </value>
<value> <string>ts50885438.71</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -104,6 +104,10 @@ i0AF2I6HLXhbspGJnOYySCBjSyc0oF8J0POKLRvmN5ThVYvlnc0b3jnFyxJ4PWbTanfZpTK9WoZf
PPSRa29abBBh8mLEdD/Ydg2bsvSrJlkMzF5P0Vt1YZl7vAtdoPf3r+0t/y91IjhGbgVoXgAAAABJ
RU5ErkJggg==</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>128</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
......@@ -116,6 +120,10 @@ RU5ErkJggg==</string> </value>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>128</int> </value>
</item>
</dictionary>
</pickle>
</record>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>common</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308796.46</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>Analytics.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
Common.component = Common.component || {};\r\n
Common.Analytics = Common.component.Analytics = new(function () {\r\n
var _category;\r\n
return {\r\n
initialize: function (id, category) {\r\n
if (typeof id === "undefined") {\r\n
throw "Analytics: invalid id.";\r\n
}\r\n
if (typeof category === "undefined" || Object.prototype.toString.apply(category) !== "[object String]") {\r\n
throw "Analytics: invalid category type.";\r\n
}\r\n
_category = category;\r\n
$("head").append(\'<script type="text/javascript">\' + "var _gaq = _gaq || [];" + \'_gaq.push(["_setAccount", "\' + id + \'"]);\' + \'_gaq.push(["_trackPageview"]);\' + "(function() {" + \'var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;\' + \'ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";\' + \'var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);\' + "})();" + "</script>");\r\n
},\r\n
trackEvent: function (action, label, value) {\r\n
if (typeof action !== "undefined" && Object.prototype.toString.apply(action) !== "[object String]") {\r\n
throw "Analytics: invalid action type.";\r\n
}\r\n
if (typeof label !== "undefined" && Object.prototype.toString.apply(label) !== "[object String]") {\r\n
throw "Analytics: invalid label type.";\r\n
}\r\n
if (typeof value !== "undefined" && !(Object.prototype.toString.apply(value) === "[object Number]" && isFinite(value))) {\r\n
throw "Analytics: invalid value type.";\r\n
}\r\n
if (typeof _gaq === "undefined") {\r\n
return;\r\n
}\r\n
if (_category === "undefined") {\r\n
throw "Analytics is not initialized.";\r\n
}\r\n
_gaq.push(["_trackEvent", _category, action, label, value]);\r\n
}\r\n
};\r\n
})();
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>3627</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308796.55</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>Gateway.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
Common.Gateway = new(function () {\r\n
var me = this,\r\n
$me = $(me);\r\n
var commandMap = {\r\n
"init": function (data) {\r\n
$me.trigger("init", data);\r\n
},\r\n
"openDocument": function (data) {\r\n
$me.trigger("opendocument", data);\r\n
},\r\n
"showMessage": function (data) {\r\n
$me.trigger("showmessage", data);\r\n
},\r\n
"applyEditRights": function (data) {\r\n
$me.trigger("applyeditrights", data);\r\n
},\r\n
"processSaveResult": function (data) {\r\n
$me.trigger("processsaveresult", data);\r\n
},\r\n
"processRightsChange": function (data) {\r\n
$me.trigger("processrightschange", data);\r\n
},\r\n
"refreshHistory": function (data) {\r\n
$me.trigger("refreshhistory", data);\r\n
},\r\n
"setHistoryData": function (data) {\r\n
$me.trigger("sethistorydata", data);\r\n
},\r\n
"processMouse": function (data) {\r\n
$me.trigger("processmouse", data);\r\n
},\r\n
"internalCommand": function (data) {\r\n
$me.trigger("internalcommand", data);\r\n
},\r\n
"resetFocus": function (data) {\r\n
$me.trigger("resetfocus", data);\r\n
}\r\n
};\r\n
var _postMessage = function (msg) {\r\n
if (window.parent && window.JSON) {\r\n
window.parent.postMessage(window.JSON.stringify(msg), "*");\r\n
}\r\n
};\r\n
var _onMessage = function (msg) {\r\n
var data = msg.data;\r\n
if (Object.prototype.toString.apply(data) !== "[object String]" || !window.JSON) {\r\n
return;\r\n
}\r\n
var cmd, handler;\r\n
try {\r\n
cmd = window.JSON.parse(data);\r\n
} catch(e) {\r\n
cmd = "";\r\n
}\r\n
if (cmd) {\r\n
handler = commandMap[cmd.command];\r\n
if (handler) {\r\n
handler.call(this, cmd.data);\r\n
}\r\n
}\r\n
};\r\n
var fn = function (e) {\r\n
_onMessage(e);\r\n
};\r\n
if (window.attachEvent) {\r\n
window.attachEvent("onmessage", fn);\r\n
} else {\r\n
window.addEventListener("message", fn, false);\r\n
}\r\n
return {\r\n
ready: function () {\r\n
_postMessage({\r\n
event: "onReady"\r\n
});\r\n
},\r\n
goBack: function (new_window) {\r\n
_postMessage({\r\n
event: "onBack",\r\n
data: (new_window == true)\r\n
});\r\n
},\r\n
save: function (url) {\r\n
_postMessage({\r\n
event: "onSave",\r\n
data: url\r\n
});\r\n
},\r\n
requestEditRights: function () {\r\n
_postMessage({\r\n
event: "onRequestEditRights"\r\n
});\r\n
},\r\n
requestHistory: function () {\r\n
_postMessage({\r\n
event: "onRequestHistory"\r\n
});\r\n
},\r\n
requestHistoryData: function (revision) {\r\n
_postMessage({\r\n
event: "onRequestHistoryData",\r\n
data: revision\r\n
});\r\n
},\r\n
requestHistoryClose: function (revision) {\r\n
_postMessage({\r\n
event: "onRequestHistoryClose"\r\n
});\r\n
},\r\n
reportError: function (code, description) {\r\n
_postMessage({\r\n
event: "onError",\r\n
data: {\r\n
errorCode: code,\r\n
errorDescription: description\r\n
}\r\n
});\r\n
},\r\n
setDocumentModified: function (modified) {\r\n
_postMessage({\r\n
event: "onDocumentStateChange",\r\n
data: modified\r\n
});\r\n
},\r\n
internalMessage: function (type, data) {\r\n
_postMessage({\r\n
event: "onInternalMessage",\r\n
data: {\r\n
type: type,\r\n
data: data\r\n
}\r\n
});\r\n
},\r\n
updateVersion: function () {\r\n
_postMessage({\r\n
event: "onOutdatedVersion"\r\n
});\r\n
},\r\n
on: function (event, handler) {\r\n
var localHandler = function (event, data) {\r\n
handler.call(me, data);\r\n
};\r\n
$me.on(event, localHandler);\r\n
}\r\n
};\r\n
})();
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>5973</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308796.64</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>IrregularStack.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
Common.IrregularStack = function (config) {\r\n
var _stack = [];\r\n
var _compare = function (obj1, obj2) {\r\n
if (typeof obj1 === "object" && typeof obj2 === "object" && window.JSON) {\r\n
return window.JSON.stringify(obj1) === window.JSON.stringify(obj2);\r\n
}\r\n
return obj1 === obj2;\r\n
};\r\n
config = config || {};\r\n
var _strongCompare = config.strongCompare || _compare;\r\n
var _weakCompare = config.weakCompare || _compare;\r\n
var _indexOf = function (obj, compare) {\r\n
for (var i = _stack.length - 1; i >= 0; i--) {\r\n
if (compare(_stack[i], obj)) {\r\n
return i;\r\n
}\r\n
}\r\n
return -1;\r\n
};\r\n
var _push = function (obj) {\r\n
_stack.push(obj);\r\n
};\r\n
var _pop = function (obj) {\r\n
var index = _indexOf(obj, _strongCompare);\r\n
if (index != -1) {\r\n
var removed = _stack.splice(index, 1);\r\n
return removed[0];\r\n
}\r\n
return undefined;\r\n
};\r\n
var _get = function (obj) {\r\n
var index = _indexOf(obj, _weakCompare);\r\n
if (index != -1) {\r\n
return _stack[index];\r\n
}\r\n
return undefined;\r\n
};\r\n
var _exist = function (obj) {\r\n
return ! (_indexOf(obj, _strongCompare) < 0);\r\n
};\r\n
return {\r\n
push: _push,\r\n
pop: _pop,\r\n
get: _get,\r\n
exist: _exist\r\n
};\r\n
};
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>3037</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>less</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308796.73</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>locale.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
Common.Locale = new(function () {\r\n
var l10n = {};\r\n
var _createXMLHTTPObject = function () {\r\n
var xmlhttp;\r\n
try {\r\n
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");\r\n
} catch(e) {\r\n
try {\r\n
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");\r\n
} catch(E) {\r\n
xmlhttp = false;\r\n
}\r\n
}\r\n
if (!xmlhttp && typeof XMLHttpRequest != "undefined") {\r\n
xmlhttp = new XMLHttpRequest();\r\n
}\r\n
return xmlhttp;\r\n
};\r\n
var _applyLocalization = function () {\r\n
try {\r\n
for (var prop in l10n) {\r\n
var p = prop.split(".");\r\n
if (p && p.length > 2) {\r\n
var obj = window;\r\n
for (var i = 0; i < p.length - 1; ++i) {\r\n
if (obj[p[i]] === undefined) {\r\n
obj[p[i]] = new Object();\r\n
}\r\n
obj = obj[p[i]];\r\n
}\r\n
if (obj) {\r\n
obj[p[p.length - 1]] = l10n[prop];\r\n
}\r\n
}\r\n
}\r\n
} catch(e) {}\r\n
};\r\n
var _get = function (prop, scope) {\r\n
var res = "";\r\n
if (scope && scope.name) {\r\n
res = l10n[scope.name + "." + prop];\r\n
}\r\n
return res || (scope ? eval(scope.name).prototype[prop] : "");\r\n
};\r\n
var _getUrlParameterByName = function (name) {\r\n
name = name.replace(/[\\[]/, "\\\\[").replace(/[\\]]/, "\\\\]");\r\n
var regex = new RegExp("[\\\\?&]" + name + "=([^&#]*)"),\r\n
results = regex.exec(location.search);\r\n
return results == null ? "" : decodeURIComponent(results[1].replace(/\\+/g, " "));\r\n
};\r\n
try {\r\n
var langParam = _getUrlParameterByName("lang");\r\n
var xhrObj = _createXMLHTTPObject();\r\n
if (xhrObj && langParam) {\r\n
var lang = langParam.split("-")[0];\r\n
xhrObj.open("GET", "locale/" + lang + ".json", false);\r\n
xhrObj.send("");\r\n
l10n = eval("(" + xhrObj.responseText + ")");\r\n
}\r\n
} catch(e) {}\r\n
return {\r\n
apply: _applyLocalization,\r\n
get: _get\r\n
};\r\n
})();
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>3880</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>lib</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>collection</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308797.72</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>ChatMessages.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
define(["backbone", "common/main/lib/model/ChatMessage"], function (Backbone) { ! Common.Collections && (Common.Collections = {});\r\n
Common.Collections.ChatMessages = Backbone.Collection.extend({\r\n
model: Common.Models.ChatMessage\r\n
});\r\n
});
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1829</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308797.82</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>Comments.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
Common.Collections = Common.Collections || {};\r\n
define(["underscore", "backbone", "common/main/lib/model/Comment"], function (_, Backbone) {\r\n
Common.Collections.Comments = Backbone.Collection.extend({\r\n
model: Common.Models.Comment,\r\n
clearEditing: function () {\r\n
this.each(function (comment) {\r\n
comment.set("editText", false);\r\n
comment.set("editTextInPopover", false);\r\n
comment.set("showReply", false);\r\n
comment.set("showReplyInPopover", false);\r\n
comment.set("hideAddReply", false);\r\n
});\r\n
},\r\n
getCommentsReplysCount: function (userid) {\r\n
var cnt = 0;\r\n
this.each(function (comment) {\r\n
if (comment.get("userid") == userid) {\r\n
cnt++;\r\n
}\r\n
var rpl = comment.get("replys");\r\n
if (rpl && rpl.length > 0) {\r\n
rpl.forEach(function (reply) {\r\n
if (reply.get("userid") == userid) {\r\n
cnt++;\r\n
}\r\n
});\r\n
}\r\n
});\r\n
return cnt;\r\n
}\r\n
});\r\n
});
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2861</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308797.93</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>Fonts.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
Common.Collections = Common.Collections || {};\r\n
define(["backbone", "common/main/lib/model/Font"], function (Backbone) {\r\n
Common.Collections.Fonts = Backbone.Collection.extend({\r\n
model: Common.Models.Font\r\n
});\r\n
});</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1859</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308798.04</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>HistoryVersions.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
Common.Collections = Common.Collections || {};\r\n
define(["underscore", "backbone", "common/main/lib/model/HistoryVersion"], function (_, Backbone) {\r\n
Common.Collections.HistoryVersions = Backbone.Collection.extend({\r\n
model: Common.Models.HistoryVersion,\r\n
findRevision: function (revision) {\r\n
return this.findWhere({\r\n
revision: revision\r\n
});\r\n
},\r\n
findRevisions: function (revision) {\r\n
return this.where({\r\n
revision: revision\r\n
});\r\n
}\r\n
});\r\n
});</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2197</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308798.16</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>Users.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
define(["backbone", "common/main/lib/model/User"], function (Backbone) {\r\n
Common.Collections = Common.Collections || {};\r\n
Common.Collections.Users = Backbone.Collection.extend({\r\n
model: Common.Models.User,\r\n
getOnlineCount: function () {\r\n
var count = 0;\r\n
this.each(function (user) {\r\n
user.online && count++;\r\n
});\r\n
return count;\r\n
},\r\n
findUser: function (id) {\r\n
return this.find(function (model) {\r\n
return model.get("id") == id;\r\n
});\r\n
}\r\n
});\r\n
Common.Collections.HistoryUsers = Backbone.Collection.extend({\r\n
model: Common.Models.User,\r\n
findUser: function (id) {\r\n
return this.find(function (model) {\r\n
return model.get("id") == id;\r\n
});\r\n
}\r\n
});\r\n
});
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2446</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>component</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308798.34</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>BaseView.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
define(["backbone"], function (Backbone) {\r\n
Common.UI = _.extend(Common.UI || {},\r\n
{\r\n
Keys: {\r\n
BACKSPACE: 8,\r\n
TAB: 9,\r\n
RETURN: 13,\r\n
SHIFT: 16,\r\n
CTRL: 17,\r\n
ALT: 18,\r\n
ESC: 27,\r\n
LEFT: 37,\r\n
UP: 38,\r\n
RIGHT: 39,\r\n
DOWN: 40,\r\n
DELETE: 46,\r\n
HOME: 36,\r\n
END: 35,\r\n
SPACE: 32,\r\n
PAGEUP: 33,\r\n
PAGEDOWN: 34,\r\n
INSERT: 45,\r\n
NUM_PLUS: 107,\r\n
NUM_MINUS: 109,\r\n
F1: 112,\r\n
F2: 113,\r\n
F3: 114,\r\n
F4: 115,\r\n
F5: 116,\r\n
F6: 117,\r\n
F7: 118,\r\n
F8: 119,\r\n
F9: 120,\r\n
F10: 121,\r\n
F11: 122,\r\n
F12: 123,\r\n
EQUALITY: 187,\r\n
MINUS: 189\r\n
},\r\n
BaseView: Backbone.View.extend({\r\n
isSuspendEvents: false,\r\n
initialize: function (options) {\r\n
this.options = this.options ? _({}).extend(this.options, options) : options;\r\n
},\r\n
setVisible: function (visible) {\r\n
return this[visible ? "show" : "hide"]();\r\n
},\r\n
isVisible: function () {\r\n
return $(this.el).is(":visible");\r\n
},\r\n
suspendEvents: function () {\r\n
this.isSuspendEvents = true;\r\n
},\r\n
resumeEvents: function () {\r\n
this.isSuspendEvents = false;\r\n
}\r\n
}),\r\n
getId: function (prefix) {\r\n
return _.uniqueId(prefix || "asc-gen");\r\n
}\r\n
});\r\n
});</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>3347</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308798.49</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>CheckBox.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
define(["common/main/lib/component/BaseView", "underscore"], function (base, _) {\r\n
Common.UI.CheckBox = Common.UI.BaseView.extend({\r\n
options: {\r\n
labelText: ""\r\n
},\r\n
disabled: false,\r\n
rendered: false,\r\n
indeterminate: false,\r\n
checked: false,\r\n
value: "unchecked",\r\n
template: _.template(\'<label class="checkbox-indeterminate"><input type="button"><%= labelText %></label>\'),\r\n
initialize: function (options) {\r\n
Common.UI.BaseView.prototype.initialize.call(this, options);\r\n
var me = this,\r\n
el = $(this.el);\r\n
this.render();\r\n
if (this.options.disabled) {\r\n
this.setDisabled(this.options.disabled);\r\n
}\r\n
if (this.options.value !== undefined) {\r\n
this.setValue(this.options.value, true);\r\n
}\r\n
this.$chk.on("click", _.bind(this.onItemCheck, this));\r\n
},\r\n
render: function () {\r\n
var el = $(this.el);\r\n
el.html(this.template({\r\n
labelText: this.options.labelText\r\n
}));\r\n
this.$chk = el.find("input[type=button]");\r\n
this.$label = el.find("label");\r\n
this.rendered = true;\r\n
return this;\r\n
},\r\n
setDisabled: function (disabled) {\r\n
if (disabled !== this.disabled) {\r\n
this.$label.toggleClass("disabled", disabled);\r\n
(disabled) ? this.$chk.attr({\r\n
disabled: disabled\r\n
}) : this.$chk.removeAttr("disabled");\r\n
}\r\n
this.disabled = disabled;\r\n
},\r\n
isDisabled: function () {\r\n
return this.disabled;\r\n
},\r\n
onItemCheck: function (e) {\r\n
if (!this.disabled) {\r\n
if (this.indeterminate) {\r\n
this.indeterminate = false;\r\n
this.setValue(false);\r\n
} else {\r\n
this.setValue(!this.checked);\r\n
}\r\n
}\r\n
},\r\n
setRawValue: function (value) {\r\n
this.checked = (value === true || value === "true" || value === "1" || value === 1 || value === "checked");\r\n
this.indeterminate = (value === "indeterminate");\r\n
this.$chk.toggleClass("checked", this.checked);\r\n
this.$chk.toggleClass("indeterminate", this.indeterminate);\r\n
this.value = this.indeterminate ? "indeterminate" : (this.checked ? "checked" : "unchecked");\r\n
},\r\n
setValue: function (value, suspendchange) {\r\n
if (this.rendered) {\r\n
this.lastValue = this.value;\r\n
this.setRawValue(value);\r\n
if (suspendchange !== true && this.lastValue !== value) {\r\n
this.trigger("change", this, this.value, this.lastValue);\r\n
}\r\n
} else {\r\n
this.options.value = value;\r\n
}\r\n
},\r\n
getValue: function () {\r\n
return this.value;\r\n
},\r\n
isChecked: function () {\r\n
return this.checked;\r\n
}\r\n
});\r\n
});
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>4812</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308798.58</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>ColorButton.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
define(["common/main/lib/component/Button"], function () {\r\n
Common.UI.ColorButton = Common.UI.Button.extend({\r\n
options: {\r\n
hint: false,\r\n
enableToggle: false\r\n
},\r\n
template: _.template([\'<div class="btn-group" id="<%= id %>">\', \'<button type="button" class="btn btn-color dropdown-toggle <%= cls %>" data-toggle="dropdown" style="<%= style %>">\', "<span>&nbsp;</span>", "</button>", "</div>"].join("")),\r\n
setColor: function (color) {\r\n
var border_color, clr, span = $(this.cmpEl).find("button span");\r\n
this.color = color;\r\n
if (color == "transparent") {\r\n
border_color = "#BEBEBE";\r\n
clr = color;\r\n
span.addClass("transparent");\r\n
} else {\r\n
border_color = "transparent";\r\n
clr = (typeof(color) == "object") ? "#" + color.color : "#" + color;\r\n
span.removeClass("transparent");\r\n
}\r\n
span.css({\r\n
"background-color": clr,\r\n
"border-color": border_color\r\n
});\r\n
}\r\n
});\r\n
});
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2768</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44308798.67</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>ColorPalette.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*\r\n
* (c) Copyright Ascensio System SIA 2010-2015\r\n
*\r\n
* This program is a free software product. You can redistribute it and/or \r\n
* modify it under the terms of the GNU Affero General Public License (AGPL) \r\n
* version 3 as published by the Free Software Foundation. In accordance with \r\n
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect \r\n
* that Ascensio System SIA expressly excludes the warranty of non-infringement\r\n
* of any third-party rights.\r\n
*\r\n
* This program is distributed WITHOUT ANY WARRANTY; without even the implied \r\n
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For \r\n
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html\r\n
*\r\n
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,\r\n
* EU, LV-1021.\r\n
*\r\n
* The interactive user interfaces in modified source and object code versions\r\n
* of the Program must display Appropriate Legal Notices, as required under \r\n
* Section 5 of the GNU AGPL version 3.\r\n
*\r\n
* Pursuant to Section 7(b) of the License you must retain the original Product\r\n
* logo when distributing the program. Pursuant to Section 7(e) we decline to\r\n
* grant you any rights under trademark law for use of our trademarks.\r\n
*\r\n
* All the Product\'s GUI elements, including illustrations and icon sets, as\r\n
* well as technical writing content are licensed under the terms of the\r\n
* Creative Commons Attribution-ShareAlike 4.0 International. See the License\r\n
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode\r\n
*\r\n
*/\r\n
if (Common === undefined) {\r\n
var Common = {};\r\n
}\r\n
define(["common/main/lib/component/BaseView"], function () {\r\n
Common.UI.ColorPalette = Common.UI.BaseView.extend({\r\n
options: {\r\n
allowReselect: true,\r\n
cls: "",\r\n
style: ""\r\n
},\r\n
template: _.template([\'<div class="palette-color">\', "<% _.each(colors, function(color, index) { %>", \'<span class="color-item" data-color="<%= color %>" style="background-color: #<%= color %>;"></span>\', "<% }) %>", "</div>"].join("")),\r\n
initialize: function (options) {\r\n
Common.UI.BaseView.prototype.initialize.call(this, options);\r\n
var me = this;\r\n
this.id = me.options.id;\r\n
this.cls = me.options.cls;\r\n
this.style = me.options.style;\r\n
this.colors = me.options.colors || [];\r\n
this.value = me.options.value;\r\n
if (me.options.el) {\r\n
me.render();\r\n
}\r\n
},\r\n
render: function (parentEl) {\r\n
var me = this;\r\n
if (!me.rendered) {\r\n
this.cmpEl = $(this.template({\r\n
id: this.id,\r\n
cls: this.cls,\r\n
style: this.style,\r\n
colors: this.colors\r\n
}));\r\n
if (parentEl) {\r\n
this.setElement(parentEl, false);\r\n
parentEl.html(this.cmpEl);\r\n
} else {\r\n
$(this.el).html(this.cmpEl);\r\n
}\r\n
} else {\r\n
this.cmpEl = $(this.el);\r\n
}\r\n
if (!me.rendered) {\r\n
var el = this.cmpEl;\r\n
el.on("click", "span.color-item", _.bind(this.itemClick, this));\r\n
}\r\n
me.rendered = true;\r\n
return this;\r\n
},\r\n
itemClick: function (e) {\r\n
var item = $(e.target);\r\n
this.select(item.attr("data-color"));\r\n
},\r\n
select: function (color, suppressEvent) {\r\n
if (this.value != color) {\r\n
var me = this;\r\n
$("span.color-item", this.cmpEl).removeClass("selected");\r\n
this.value = color;\r\n
if (color && /#?[a-fA-F0-9]{6}/.test(color)) {\r\n
color = /#?([a-fA-F0-9]{6})/.exec(color)[1].toUpperCase();\r\n
$("span[data-color=" + color + "]", this.cmpEl).addClass("selected");\r\n
if (!suppressEvent) {\r\n
me.trigger("select", me, this.value);\r\n
}\r\n
}\r\n
}\r\n
}\r\n
});\r\n
});
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>4221</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment