diff --git a/addons/web/__openerp__.py b/addons/web/__openerp__.py
index fcfdca60a2a..51712954c53 100644
--- a/addons/web/__openerp__.py
+++ b/addons/web/__openerp__.py
@@ -17,7 +17,7 @@ This module provides the core of the OpenERP Web Client.
"static/lib/datejs/parser.js",
"static/lib/datejs/sugarpak.js",
"static/lib/datejs/extras.js",
- "static/lib/jquery/jquery-1.7.2.js",
+ "static/lib/jquery/jquery-1.8.2.js",
"static/lib/jquery.MD5/jquery.md5.js",
"static/lib/jquery.form/jquery.form.js",
"static/lib/jquery.validate/jquery.validate.js",
@@ -25,7 +25,7 @@ This module provides the core of the OpenERP Web Client.
"static/lib/spinjs/spin.js",
"static/lib/jquery.autosize/jquery.autosize.js",
"static/lib/jquery.blockUI/jquery.blockUI.js",
- "static/lib/jquery.ui/js/jquery-ui-1.8.17.custom.min.js",
+ "static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js",
"static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js",
"static/lib/jquery.ui.notify/js/jquery.notify.js",
"static/lib/jquery.deferred-queue/jquery.deferred-queue.js",
@@ -55,7 +55,7 @@ This module provides the core of the OpenERP Web Client.
"static/src/js/view_tree.js",
],
'css' : [
- "static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.8.16.custom.css",
+ "static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css",
"static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css",
"static/lib/jquery.ui.notify/css/ui.notify.css",
"static/lib/jquery.tipsy/tipsy.css",
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 72ffd9567f6..ad8d91ed1dd 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -575,6 +575,20 @@ def from_elementtree(el, preserve_whitespaces=False):
res["children"] = kids
return res
+
+def content_disposition(filename, req):
+ filename = filename.encode('utf8')
+ escaped = urllib2.quote(filename)
+ browser = req.httprequest.user_agent.browser
+ version = int((req.httprequest.user_agent.version or '0').split('.')[0])
+ if browser == 'msie' and version < 9:
+ return "attachment; filename=%s" % escaped
+ elif browser == 'safari':
+ return "attachment; filename=%s" % filename
+ else:
+ return "attachment; filename*=UTF-8''%s" % escaped
+
+
#----------------------------------------------------------
# OpenERP Web web Controllers
#----------------------------------------------------------
@@ -841,7 +855,7 @@ class Database(openerpweb.Controller):
}
return req.make_response(db_dump,
[('Content-Type', 'application/octet-stream; charset=binary'),
- ('Content-Disposition', 'attachment; filename="' + filename + '"')],
+ ('Content-Disposition', content_disposition(filename, req))],
{'fileToken': int(token)}
)
except xmlrpclib.Fault, e:
@@ -1520,17 +1534,6 @@ class Binary(openerpweb.Controller):
def placeholder(self, req):
addons_path = openerpweb.addons_manifest['web']['addons_path']
return open(os.path.join(addons_path, 'web', 'static', 'src', 'img', 'placeholder.png'), 'rb').read()
- def content_disposition(self, filename, req):
- filename = filename.encode('utf8')
- escaped = urllib2.quote(filename)
- browser = req.httprequest.user_agent.browser
- version = int((req.httprequest.user_agent.version or '0').split('.')[0])
- if browser == 'msie' and version < 9:
- return "attachment; filename=%s" % escaped
- elif browser == 'safari':
- return "attachment; filename=%s" % filename
- else:
- return "attachment; filename*=UTF-8''%s" % escaped
@openerpweb.httprequest
def saveas(self, req, model, field, id=None, filename_field=None, **kw):
@@ -1566,7 +1569,7 @@ class Binary(openerpweb.Controller):
filename = res.get(filename_field, '') or filename
return req.make_response(filecontent,
[('Content-Type', 'application/octet-stream'),
- ('Content-Disposition', self.content_disposition(filename, req))])
+ ('Content-Disposition', content_disposition(filename, req))])
@openerpweb.httprequest
def saveas_ajax(self, req, data, token):
@@ -1596,7 +1599,7 @@ class Binary(openerpweb.Controller):
filename = res.get(filename_field, '') or filename
return req.make_response(filecontent,
headers=[('Content-Type', 'application/octet-stream'),
- ('Content-Disposition', self.content_disposition(filename, req))],
+ ('Content-Disposition', content_disposition(filename, req))],
cookies={'fileToken': int(token)})
@openerpweb.httprequest
@@ -1861,7 +1864,8 @@ class Export(View):
return req.make_response(self.from_data(columns_headers, import_data),
- headers=[('Content-Disposition', 'attachment; filename="%s"' % self.filename(model)),
+ headers=[('Content-Disposition',
+ content_disposition(self.filename(model), req)),
('Content-Type', self.content_type)],
cookies={'fileToken': int(token)})
@@ -1997,11 +2001,11 @@ class Reports(View):
file_name = reports.read(res_id[0], ['name'], context)['name']
else:
file_name = action['report_name']
+ file_name = '%s.%s' % (file_name, report_struct['format'])
return req.make_response(report,
headers=[
- # maybe we should take of what characters can appear in a file name?
- ('Content-Disposition', 'attachment; filename="%s.%s"' % (file_name, report_struct['format'])),
+ ('Content-Disposition', content_disposition(file_name, req)),
('Content-Type', report_mimetype),
('Content-Length', len(report))],
cookies={'fileToken': int(token)})
diff --git a/addons/web/doc/index.rst b/addons/web/doc/index.rst
index 6a0d8dee2d4..99edd1156e0 100644
--- a/addons/web/doc/index.rst
+++ b/addons/web/doc/index.rst
@@ -11,12 +11,15 @@ Contents:
.. toctree::
:maxdepth: 1
+ presentation
+
changelog-7.0
async
rpc
widget
+ qweb
search-view
list-view
diff --git a/addons/web/doc/presentation.rst b/addons/web/doc/presentation.rst
new file mode 100644
index 00000000000..c249b540513
--- /dev/null
+++ b/addons/web/doc/presentation.rst
@@ -0,0 +1,36 @@
+
+Presentation
+============
+
+Prerequisites
+-------------
+
+Prerequisites to code addons for the OpenERP Web Client:
+
+- Html
+- Css
+- Javascript
+- jQuery
+
+Once you know all this, that's only the beginning. Most usages of Javascript/jQuery are small hacks to make a web page nicer. The OpenERP Client Web is different: it's a web application, not a web site. It doesn't have multiple pages generated by a server side code. Only one unique empty page is loaded and all the html is generated by Javascript code, the page is never reloaded. If you never developed that kind of application you still have lot of good practices to learn.
+
+Recommendations
+---------------
+
+First, here are the 5 golden rules when you create web 2.0 applications:
+
+* **Do not use ids**. Html ids are evil, the key anti-feature that makes your components non-reusable. You want to identify a dom part? Save a jQuery object over that dom element. If you really need to use ids, use _.uniqueId(), but 99% of the time you don't need to, classes are sufficient.
+* **Do not use predictable css class names** like "content" or "navigation", ten other developers will have the same idea than you and there will be clashes. A simple way to avoid this is to use prefixes. For example, if you need a css class for the button named "new" that is contained in the form view which is itself contained in the OpenERP application, name it "oe-form-view-new-button".
+* **Do not use global selectors** like *$(".my-class")*, you never know if your component will be instantiated multiple times. Limit the selector with a context, like *$(".my-class", this.$el)*.
+* As a general advice, **Never assume you own the page**. When you create a component, it is never unique and is always surrounded by a bunch of crazy html. You have to do with it.
+* **Learn how to use jQuery's deferreds** [1]_. That concept may seem over-complicated, but the experience tell us that it is nearly impossible to create big-size javascript applications without that.
+
+More recommendations related to the specific case of the OpenERP Web Client:
+
+* Your components should inherit from the *Widget* class.
+* Use QWeb templates for html rendering.
+* Use *Widget* 's methods (*appendTo*, *replace*,...) to insert your component and its content into the dom.
+* All css classes should have the prefix *oe-* .
+* Functions that call rpc() should return a deferred, even if it calls it indirectly. So a function that calls a function that calls a function that calls rpc() should return a deferred too.
+
+.. [1] http://api.jquery.com/category/deferred-object/
diff --git a/addons/web/doc/qweb.rst b/addons/web/doc/qweb.rst
new file mode 100644
index 00000000000..85719c6742d
--- /dev/null
+++ b/addons/web/doc/qweb.rst
@@ -0,0 +1,79 @@
+
+QWeb Cookbook
+=============
+
+QWeb is the template engine used by the OpenERP Web Client. It is a home made engine create by OpenERP developers. There are a few things to note about it:
+
+* Template are rendered in javascript on the client-side, the server does nothing.
+* It is an xml template engine, like Facelets_ for example. The source file must be a valid xml.
+* Templates are not interpreted. There are compiled to javascript. This makes them a lot faster to render, but sometimes harder to debug.
+* Most of the time it is used through the Widget class, but you can also use it directly using *openerp.web.qweb.render()* .
+
+.. _Facelets: http://en.wikipedia.org/wiki/Facelets
+
+Here is a typical QWeb file:
+
+::
+
+
+
+
+
...
+
+
+
...
+
+
+
+A QWeb file contains multiple templates, they are simply identified by a name.
+
+Here is a sample QWeb template:
+
+::
+
+
+
+
Name:
+
Password:
+
This user is an Administrator
+
+
User has role:
+
+
+
+
+
+*widget* is a variable given to the template engine by Widget sub-classes when they decide to render their associated template, it is simply *this*. Here is the corresponding Widget sub-class:
+
+::
+
+ UserPageWidget = openerp.base.Widget.extend({
+ template: "UserPage",
+ init: function(parent) {
+ this._super(parent);
+ this.user_name = "Xavier";
+ this.password = "lilo";
+ this.is_admin = true;
+ this.roles = ["Web Developer", "IE Hater", "Steve Jobs Worshiper"];
+ },
+ });
+
+It could output something like this:
+
+::
+
+
+
Name: Xavier
+
Password:
+
This user is an Administrator
User has role: Web Developer
+
User has role: IE Hater
+
User has role: Steve Jobs Worshiper
+
+
+A QWeb template should always contain one unique root element to be used effectively with the Widget class, here it is a *
*. QWeb only react to ** elements or attributes prefixed by *t-*. The ** is simply a null element, it is only used when you need to use a *t-* attribute without outputting an html element at the same time. Here are the effects of the most common QWeb attributes:
+
+* *t-esc* outputs the result of the evaluation of the given javascript expression
+* *t-att-ATTR* sets the value of the *ATTR* attribute to the result of the evaluation of the given javascript expression
+* *t-if* outputs the element and its content only if the given javascript expression returns true
+* *t-foreach* outputs as many times as contained in the list returned by the given javascript expression. For each iteration, a variable with the name defined by *t-as* contains the current element in the list.
diff --git a/addons/web/i18n/hu.po b/addons/web/i18n/hu.po
index 2e6f36cb2cf..cea5493c029 100644
--- a/addons/web/i18n/hu.po
+++ b/addons/web/i18n/hu.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openerp-web\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2012-07-02 09:06+0200\n"
-"PO-Revision-Date: 2012-08-24 09:16+0000\n"
+"PO-Revision-Date: 2012-10-26 12:17+0000\n"
"Last-Translator: Herczeg Péter \n"
"Language-Team: Hungarian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-10-21 05:02+0000\n"
-"X-Generator: Launchpad (build 16165)\n"
+"X-Launchpad-Export-Date: 2012-10-27 05:15+0000\n"
+"X-Generator: Launchpad (build 16194)\n"
#. openerp-web
#: addons/web/static/src/js/chrome.js:176
@@ -755,7 +755,7 @@ msgstr "Választani kell legalább egy rekordot!"
#. openerp-web
#: addons/web/static/src/js/views.js:875
msgid "Uploading..."
-msgstr ""
+msgstr "Feltöltés"
#. openerp-web
#: addons/web/static/src/js/views.js:885
diff --git a/addons/web/i18n/ru.po b/addons/web/i18n/ru.po
index fa80053a306..ed5735602d0 100644
--- a/addons/web/i18n/ru.po
+++ b/addons/web/i18n/ru.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openerp-web\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2012-07-02 09:06+0200\n"
-"PO-Revision-Date: 2012-10-23 14:30+0000\n"
+"PO-Revision-Date: 2012-11-01 12:07+0000\n"
"Last-Translator: Chertykov Denis \n"
"Language-Team: Russian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-10-24 05:20+0000\n"
-"X-Generator: Launchpad (build 16179)\n"
+"X-Launchpad-Export-Date: 2012-11-02 05:20+0000\n"
+"X-Generator: Launchpad (build 16218)\n"
#. openerp-web
#: addons/web/static/src/js/chrome.js:176
@@ -306,7 +306,7 @@ msgstr "Группировать по: %s"
#. openerp-web
#: addons/web/static/src/js/search.js:1132
msgid "GroupBy"
-msgstr ""
+msgstr "Группировать по"
#. openerp-web
#: addons/web/static/src/js/search.js:1267
@@ -535,7 +535,7 @@ msgstr "Удалить"
#. openerp-web
#: addons/web/static/src/xml/base.xml:762
msgid "Duplicate"
-msgstr "Клонировать"
+msgstr "Дублировать"
#. openerp-web
#: addons/web/static/src/js/view_form.js:133
@@ -867,13 +867,13 @@ msgstr "Удалить"
#: addons/web/static/src/xml/base.xml:166
#: addons/web/static/src/xml/base.xml:329
msgid "Backup"
-msgstr "Резервное копирование"
+msgstr "Резервная копия"
#. openerp-web
#: addons/web/static/src/xml/base.xml:195
#: addons/web/static/src/xml/base.xml:330
msgid "Restore"
-msgstr "Востановить"
+msgstr "Восстановить"
#. openerp-web
#: addons/web/static/src/xml/base.xml:332
@@ -908,7 +908,7 @@ msgstr "Язык по умолчанию:"
#. openerp-web
#: addons/web/static/src/xml/base.xml:91
msgid "Admin password:"
-msgstr "Пароль Администратора:"
+msgstr "Пароль администратора:"
#. openerp-web
#: addons/web/static/src/xml/base.xml:95
@@ -1080,7 +1080,7 @@ msgstr "Изменить действие"
#. openerp-web
#: addons/web/static/src/xml/base.xml:486
msgid "Edit Workflow"
-msgstr "Редактировать Процесс"
+msgstr "Редактировать процесс"
#. openerp-web
#: addons/web/static/src/xml/base.xml:491
@@ -1222,7 +1222,7 @@ msgstr "При изменении:"
#. openerp-web
#: addons/web/static/src/xml/base.xml:981
msgid "Relation:"
-msgstr "Отношение:"
+msgstr "Связь:"
#. openerp-web
#: addons/web/static/src/xml/base.xml:985
@@ -1411,12 +1411,12 @@ msgstr "Применить"
#. openerp-web
#: addons/web/static/src/xml/base.xml:1509
msgid "Save & New"
-msgstr "Сохранить и Создать"
+msgstr "Сохранить и создать"
#. openerp-web
#: addons/web/static/src/xml/base.xml:1510
msgid "Save & Close"
-msgstr "Сохранить и Закрыть"
+msgstr "Сохранить и закрыть"
#. openerp-web
#: addons/web/static/src/xml/base.xml:1617
@@ -1556,7 +1556,7 @@ msgid ""
"For use if CSV files have titles on multiple lines, skips more than a single "
"line during import"
msgstr ""
-"Применимо если в CSV файле заголовки расположены в нескольких строках и из "
+"Применимо если в CSV файле заголовки расположены в нескольких строках и их "
"необходимо пропустить"
#. openerp-web
@@ -1669,9 +1669,6 @@ msgstr "Предпросмотр файла, который система не
#~ msgid "Activate the developper mode"
#~ msgstr "Активировать режим разработчика"
-#~ msgid "Notebook Page \""
-#~ msgstr "Страница Блокнота \""
-
#~ msgid "Filter disabled due to invalid syntax"
#~ msgstr "Фильтр отключен из-за неверного синтаксиса"
@@ -1686,3 +1683,6 @@ msgstr "Предпросмотр файла, который система не
#~ msgid "Advanced Filters"
#~ msgstr "Расширенные фильтры"
+
+#~ msgid "Notebook Page \""
+#~ msgstr "Страница блокнота \""
diff --git a/addons/web/i18n/sl.po b/addons/web/i18n/sl.po
index e15e7b572bc..687742a1775 100644
--- a/addons/web/i18n/sl.po
+++ b/addons/web/i18n/sl.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openerp-web\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2012-07-02 09:06+0200\n"
-"PO-Revision-Date: 2012-01-31 06:25+0000\n"
-"Last-Translator: ERP Basing \n"
+"PO-Revision-Date: 2012-11-01 16:38+0000\n"
+"Last-Translator: Dusan Laznik \n"
"Language-Team: Slovenian \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-10-21 05:02+0000\n"
-"X-Generator: Launchpad (build 16165)\n"
+"X-Launchpad-Export-Date: 2012-11-02 05:20+0000\n"
+"X-Generator: Launchpad (build 16218)\n"
#. openerp-web
#: addons/web/static/src/js/chrome.js:176
@@ -129,62 +129,62 @@ msgstr "OpenERP-Community Version"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:619
msgid "less than a minute ago"
-msgstr ""
+msgstr "manj kot minuto nazaj"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:620
msgid "about a minute ago"
-msgstr ""
+msgstr "približno pred minuto"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:621
#, python-format
msgid "%d minutes ago"
-msgstr ""
+msgstr "pred %d minutami"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:622
msgid "about an hour ago"
-msgstr ""
+msgstr "pred približno eno uro"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:623
#, python-format
msgid "%d hours ago"
-msgstr ""
+msgstr "Pred %d urami"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:624
msgid "a day ago"
-msgstr ""
+msgstr "pred enim dnevom"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:625
#, python-format
msgid "%d days ago"
-msgstr ""
+msgstr "pred %d dnevi"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:626
msgid "about a month ago"
-msgstr ""
+msgstr "približno pred enim mesecem"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:627
#, python-format
msgid "%d months ago"
-msgstr ""
+msgstr "pred %d meseci"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:628
msgid "about a year ago"
-msgstr ""
+msgstr "približno pred enim letom"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:629
#, python-format
msgid "%d years ago"
-msgstr ""
+msgstr "Pred %d leti"
#. openerp-web
#: addons/web/static/src/js/data_export.js:6
@@ -293,13 +293,13 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/js/search.js:999
msgid "Filter"
-msgstr ""
+msgstr "Filter:"
#. openerp-web
#: addons/web/static/src/js/search.js:1108
#, python-format
msgid "Group by: %s"
-msgstr ""
+msgstr "Združi po: %s"
#. openerp-web
#: addons/web/static/src/js/search.js:1132
@@ -347,7 +347,7 @@ msgstr "Filtri"
#. openerp-web
#: addons/web/static/src/js/search.js:1762
msgid "Advanced"
-msgstr ""
+msgstr "Napredeno"
#. openerp-web
#: addons/web/static/src/js/search.js:1853
@@ -632,7 +632,7 @@ msgstr "Dodaj: "
#. openerp-web
#: addons/web/static/src/js/view_form.js:4230
msgid "Save As..."
-msgstr ""
+msgstr "Shrani kot ..."
#. openerp-web
#: addons/web/static/src/js/view_form.js:4230
@@ -669,7 +669,7 @@ msgstr "Skupina"
#. openerp-web
#: addons/web/static/src/js/view_list.js:549
msgid "Do you really want to remove these records?"
-msgstr ""
+msgstr "Res želite odstraniti te zapise?"
#. openerp-web
#: addons/web/static/src/js/views.js:925
@@ -679,7 +679,7 @@ msgstr "Opozorilo"
#. openerp-web
#: addons/web/static/src/js/view_list.js:716
msgid "You must select at least one record."
-msgstr ""
+msgstr "Izbrati morate vsaj en zapis"
#. openerp-web
#: addons/web/static/src/js/view_list.js:1243
@@ -727,17 +727,17 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/js/views.js:716
msgid "Print"
-msgstr ""
+msgstr "Tiskanje"
#. openerp-web
#: addons/web/static/src/js/views.js:717
msgid "Attachment"
-msgstr ""
+msgstr "Priponka"
#. openerp-web
#: addons/web/static/src/js/views.js:718 addons/web/static/src/xml/base.xml:276
msgid "More"
-msgstr ""
+msgstr "Dodatno"
#. openerp-web
#: addons/web/static/src/js/views.js:810
@@ -757,7 +757,7 @@ msgstr "Izbrati morate vsaj en zapis."
#. openerp-web
#: addons/web/static/src/js/views.js:875
msgid "Uploading..."
-msgstr ""
+msgstr "Pošiljanje ..."
#. openerp-web
#: addons/web/static/src/js/views.js:885
@@ -963,7 +963,7 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/xml/base.xml:327
msgid "Log out"
-msgstr ""
+msgstr "Odjava"
#. openerp-web
#: addons/web/static/src/xml/base.xml:333
@@ -1028,7 +1028,7 @@ msgstr "Potrditev gesla:"
#. openerp-web
#: addons/web/static/src/xml/base.xml:390
msgid "Open"
-msgstr ""
+msgstr "Odpri"
#. openerp-web
#: addons/web/static/src/xml/base.xml:390
@@ -1123,18 +1123,18 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/xml/base.xml:527
msgid "Add..."
-msgstr ""
+msgstr "Dodaj ..."
#. openerp-web
#: addons/web/static/src/xml/base.xml:622
#: addons/web/static/src/xml/base.xml:687
msgid "or"
-msgstr ""
+msgstr "ali"
#. openerp-web
#: addons/web/static/src/xml/base.xml:687
msgid "Discard"
-msgstr ""
+msgstr "Opusti"
#. openerp-web
#: addons/web/static/src/xml/base.xml:806
@@ -1220,7 +1220,7 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/xml/base.xml:981
msgid "Relation:"
-msgstr ""
+msgstr "Relacija:"
#. openerp-web
#: addons/web/static/src/xml/base.xml:985
@@ -1235,7 +1235,7 @@ msgstr "Odpri vir"
#. openerp-web
#: addons/web/static/src/xml/base.xml:1063
msgid "Select date"
-msgstr ""
+msgstr "Izberi datum"
#. openerp-web
#: addons/web/static/src/xml/base.xml:948
@@ -1298,7 +1298,7 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/xml/base.xml:1260
msgid "Button Type:"
-msgstr ""
+msgstr "Vrsta tipke:"
#. openerp-web
#: addons/web/static/src/xml/base.xml:1264
@@ -1318,7 +1318,7 @@ msgstr "Polje"
#. openerp-web
#: addons/web/static/src/xml/base.xml:1205
msgid "Advanced Search..."
-msgstr ""
+msgstr "Napredno iskanje ..."
#. openerp-web
#: addons/web/static/src/xml/base.xml:1287
@@ -1363,7 +1363,7 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/xml/base.xml:1381
msgid "Filter name"
-msgstr ""
+msgstr "Ime filtra"
#. openerp-web
#: addons/web/static/src/xml/base.xml:1383
diff --git a/addons/web/i18n/zh_CN.po b/addons/web/i18n/zh_CN.po
index 69cd72339ae..09a7d041b88 100644
--- a/addons/web/i18n/zh_CN.po
+++ b/addons/web/i18n/zh_CN.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openerp-web\n"
"Report-Msgid-Bugs-To: FULL NAME \n"
"POT-Creation-Date: 2012-07-02 09:06+0200\n"
-"PO-Revision-Date: 2012-02-17 07:29+0000\n"
-"Last-Translator: Jeff Wang \n"
+"PO-Revision-Date: 2012-11-06 04:40+0000\n"
+"Last-Translator: Wei \"oldrev\" Li \n"
"Language-Team: Chinese (Simplified) \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2012-10-21 05:03+0000\n"
-"X-Generator: Launchpad (build 16165)\n"
+"X-Launchpad-Export-Date: 2012-11-07 04:55+0000\n"
+"X-Generator: Launchpad (build 16232)\n"
#. openerp-web
#: addons/web/static/src/js/chrome.js:176
@@ -129,56 +129,56 @@ msgstr "OpenERP社区支持版"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:619
msgid "less than a minute ago"
-msgstr ""
+msgstr "一分钟内"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:620
msgid "about a minute ago"
-msgstr ""
+msgstr "大约一分钟"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:621
#, python-format
msgid "%d minutes ago"
-msgstr ""
+msgstr "%d 分钟之前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:622
msgid "about an hour ago"
-msgstr ""
+msgstr "大约一小时前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:623
#, python-format
msgid "%d hours ago"
-msgstr ""
+msgstr "%d 小时前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:624
msgid "a day ago"
-msgstr ""
+msgstr "一天前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:625
#, python-format
msgid "%d days ago"
-msgstr ""
+msgstr "%d 天前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:626
msgid "about a month ago"
-msgstr ""
+msgstr "大约一月前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:627
#, python-format
msgid "%d months ago"
-msgstr ""
+msgstr "%d 月前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:628
msgid "about a year ago"
-msgstr ""
+msgstr "大约一年前"
#. openerp-web
#: addons/web/static/src/js/coresetup.js:629
@@ -247,13 +247,13 @@ msgstr ""
#. openerp-web
#: addons/web/static/src/js/data_import.js:386
msgid "*Required Fields are not selected :"
-msgstr ""
+msgstr "*没有选择必须的字段:"
#. openerp-web
#: addons/web/static/src/js/formats.js:139
#, python-format
msgid "(%d records)"
-msgstr ""
+msgstr "(%d 条记录)"
#. openerp-web
#: addons/web/static/src/js/formats.js:325
diff --git a/addons/web/static/lib/cleditor/jquery.cleditor.js b/addons/web/static/lib/cleditor/jquery.cleditor.js
index c0763136c99..0fff0152776 100644
--- a/addons/web/static/lib/cleditor/jquery.cleditor.js
+++ b/addons/web/static/lib/cleditor/jquery.cleditor.js
@@ -295,7 +295,12 @@
// Bind the window resize event when the width or height is auto or %
if (/auto|%/.test("" + options.width + options.height))
- $(window).resize(function() {refresh(editor);});
+ $(window).resize(function() {
+ // CHM Note MonkeyPatch: if the DOM is not remove, refresh the cleditor
+ if(editor.$main.parent().parent().size()) {
+ refresh(editor);
+ }
+ });
// Create the iframe and resize the controls
refresh(editor);
@@ -562,7 +567,7 @@
//==================
// Private Functions
//==================
-
+
// checksum - returns a checksum using the Adler-32 method
function checksum(text)
{
diff --git a/addons/web/static/lib/jquery.deferred-queue/LICENSE b/addons/web/static/lib/jquery.deferred-queue/LICENSE
deleted file mode 100644
index ee8cf44578c..00000000000
--- a/addons/web/static/lib/jquery.deferred-queue/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright 2011 Xavier Morel. All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification, are
-permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice, this list of
- conditions and the following disclaimer.
-
- 2. Redistributions in binary form must reproduce the above copyright notice, this list
- of conditions and the following disclaimer in the documentation and/or other materials
- provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY XAVIER MOREL ``AS IS'' AND ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL OR
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/addons/web/static/lib/jquery.deferred-queue/README b/addons/web/static/lib/jquery.deferred-queue/README
deleted file mode 100644
index 71d980199c9..00000000000
--- a/addons/web/static/lib/jquery.deferred-queue/README
+++ /dev/null
@@ -1,59 +0,0 @@
-.. -*- restructuredtext -*-
-
-In jQuery 1.5, jQuery has introduced a Deferred object in order to
-better handle callbacks.
-
-Along with Deferred, it introduced ``jQuery.when`` which allows, among
-other things, for multiplexing deferreds (waiting on multiple
-deferreds at the same time).
-
-While this is very nice if all deferreds are available at the same
-point, it doesn't really work if the resolution of a deferred can
-generate more deferreds, or for collections of deferreds coming from
-multiple sources (which may not be aware of one another).
-
-Deferred.queue tries to be a solution to this. It is based on the
-principle of FIFO multiple-producers multiple-consumers tasks queues,
-such as Python's `queue.Queue`_. Any code with a reference to the
-queue can add a promise to the queue, and the queue (which is a
-promise itself) will only be resolved once all promises within are
-resolved.
-
-Quickstart
-----------
-
-Deferred.queue has a very simple life cycle: it is dormant when
-created, it starts working as soon as promises get added to it (via
-``.push``, or by providing them directly to its constructor), and as
-soon as the last promise in the queue is resolved it resolves itself.
-
-If any promise in the queue fails, the queue itself will be rejected
-(without waiting for further promises).
-
-Once a queue has been resolved or rejected, adding new promises to it
-results in an error.
-
-API
----
-
-``jQuery.Deferred.queue([promises...])``
- Creates a new deferred queue. Can be primed with a series of promise
- objects.
-
-``.push(promise...)``
- Adds promises to the queue. Returns the queue itself (can be
- chained).
-
- If the queue has already been resolved or rejected, raises an error.
-
-``.then([doneCallbacks][, failCallbacks])``
- Promise/A ``then`` method.
-
-``.done(doneCallbacks)``
- jQuery ``done`` extension to promise objects
-
-``.fail(failCallbacks)``
- jQuery ``fail`` extension to promise objects
-
-.. _queue.Queue:
- http://docs.python.org/dev/library/queue.html
diff --git a/addons/web/static/lib/jquery.deferred-queue/jquery.deferred-queue.js b/addons/web/static/lib/jquery.deferred-queue/jquery.deferred-queue.js
deleted file mode 100644
index 7ef83342f77..00000000000
--- a/addons/web/static/lib/jquery.deferred-queue/jquery.deferred-queue.js
+++ /dev/null
@@ -1,34 +0,0 @@
-(function ($) {
- "use strict";
- $.extend($.Deferred, {
- queue: function () {
- var queueDeferred = $.Deferred();
- var promises = 0;
-
- function resolve() {
- if (--promises > 0) {
- return;
- }
- setTimeout($.proxy(queueDeferred, 'resolve'), 0);
- }
-
- var promise = $.extend(queueDeferred.promise(), {
- push: function () {
- if (this.isResolved() || this.isRejected()) {
- throw new Error("Can not add promises to a resolved "
- + "or rejected promise queue");
- }
-
- promises += 1;
- $.when.apply(null, arguments).then(
- resolve, $.proxy(queueDeferred, 'reject'));
- return this;
- }
- });
- if (arguments.length) {
- promise.push.apply(promise, arguments);
- }
- return promise;
- }
- });
-})(jQuery)
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/README.md b/addons/web/static/lib/jquery.ui.bootstrap/README.md
new file mode 100644
index 00000000000..dfa1ad75302
--- /dev/null
+++ b/addons/web/static/lib/jquery.ui.bootstrap/README.md
@@ -0,0 +1,31 @@
+#jQuery UI Bootstrap
+
+##Summary
+
+This is a project I started to bring the beauty of Twitter's Bootstrap to jQuery UI widgets.
+
+Twitter's Bootstrap was one of my favorite projects to come out of 2011, but having used it regularly it left me wanting two things:
+
+* The ability to work side-by-side with jQuery UI (something which caused a number of widgets to break visually)
+* The ability to theme jQuery UI widgets using Bootstrap styles. Whilst I love jQuery UI, I (like others) find some of the current themes to look a little dated. My hope is that this theme provides a decent alternative for others that feel the same.
+
+To clarify, this project doesn't aim or intend to replace Twitter Bootstrap. It merely provides a jQuery UI-compatible theme inspired by Bootstrap's design. It also provides a version of Bootstrap CSS with a few (minor) sections commented out which enable the theme to work along-side it.
+
+I welcome any and all feedback as I'd very much like this theme to be as solid as possible.
+
+##Browser-support
+
+All modern browsers are targeted by this theme with 'lo-res' experiences (i.e no gradients, border-radius etc.) provided for users using older browsers.
+
+There *are* some minor known issues lingering that I'm working on, but the hope is that in time those will all get ironed out.
+
+##jQuery UI support
+
+This theme targets jQuery UI 1.8.16 and the default version of jQuery included in the (current) jQuery UI builds (jQuery 1.6.2). I'm aware of jQuery 1.7.1 and intend on upgrading anything necessary in the theme to use it when the jQuery UI team officially include it in their theme packs.
+
+
+##Demo
+
+For a live preview of the theme, see [http://addyosmani.github.com/jquery-ui-bootstrap](http://addyosmani.github.com/jquery-ui-bootstrap).
+
+A [blog post](http://addyosmani.com/blog/jquery-ui-bootstrap/) with some more details about the project is also available.
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_flat_0_aaaaaa_40x100.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_55_fbf9ee_1x400.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_65_ffffff_1x400.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_dadada_1x400.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_dadada_1x400.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_e6e6e6_1x400.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_ffffff_1x400.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_glass_75_ffffff_1x400.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_highlight-soft_75_cccccc_1x100.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-bg_inset-soft_95_fef1ec_1x100.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_222222_256x240.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_222222_256x240.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_2e83ff_256x240.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_2e83ff_256x240.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_454545_256x240.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_454545_256x240.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_888888_256x240.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_888888_256x240.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_cd0a0a_256x240.png b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/images/ui-icons_cd0a0a_256x240.png
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.8.16.custom.css b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css
similarity index 89%
rename from addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.8.16.custom.css
rename to addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css
index 513fd4abe59..a06e9447afc 100644
--- a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.8.16.custom.css
+++ b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css
@@ -23,6 +23,7 @@
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }
@@ -59,7 +60,7 @@
----------------------------------*/
.ui-widget { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size:13px; }
.ui-widget .ui-widget { font-size: 1em; }
-/*.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1em; }*/
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1em; }
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_75_ffffff_1x400.png) 50% 50% repeat-x; color: #404040; }
.ui-widget-content a { color: #404040; }
.ui-widget-header {
@@ -399,7 +400,6 @@
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
-
/* Overlays */
.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
@@ -432,9 +432,9 @@
*/
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
/*
- * jQuery UI Accordion 1.8.16
+ * jQuery UI Accordion 1.9.0
*
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
@@ -445,7 +445,7 @@
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; font-weight:bold; }
.ui-accordion .ui-accordion-li-fix { display: inline; }
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
-.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em 1.7em; }
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
@@ -465,46 +465,55 @@
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
/*
- * jQuery UI Menu 1.8.16
+ * jQuery UI Menu 1.9.0
*
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Copyright 2012-10-11, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Menu#theming
*/
-.ui-menu {
- list-style:none;
- padding: 2px;
- margin: 0;
- display:block;
- float: left;
-}
-.ui-menu .ui-menu {
- margin-top: -3px;
-}
-.ui-menu .ui-menu-item {
- margin:0;
- padding: 0;
- zoom: 1;
- float: left;
- clear: left;
- width: 100%;
-}
-.ui-menu .ui-menu-item a {
- text-decoration:none;
- display:block;
- padding:.2em .4em;
- line-height:1.5;
- zoom:1;
-}
-.ui-menu .ui-menu-item a.ui-state-hover,
-.ui-menu .ui-menu-item a.ui-state-active {
- font-weight: normal;
- background:#0064CD;
- color:#fff
+
+.ui-menu { list-style:none; padding: 2px; margin: 0; display:block; float:left; outline: none; }
+.ui-menu .ui-menu { margin-top: -3px; position: absolute; }
+.ui-menu .ui-menu-item { margin: 0; padding: 0; zoom: 1;float: left;clear: left; width: 100%; }
+.ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0 0; }
+.ui-menu .ui-menu-item a { text-decoration: none; display: block; padding: 2px .4em; line-height: 1.5; zoom: 1; font-weight: normal; }
+.ui-menu .ui-menu-item a.ui-state-focus,
+.ui-menu .ui-menu-item a.ui-state-active {
+ font-weight: normal;
+ margin: 0;
+ color: #ffffff;
+ background: #0064cd;
+ background-color: #0064cd;
+ background-repeat: repeat-x;
+ background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
+ background-image: -moz-linear-gradient(top, #049cdb, #0064cd);
+ background-image: -ms-linear-gradient(top, #049cdb, #0064cd);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
+ background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);
+ background-image: -o-linear-gradient(top, #049cdb, #0064cd);
+ background-image: linear-gradient(top, #049cdb, #0064cd);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0);
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+ border-color: #0064cd #0064cd #003f81;
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}
+.ui-menu .ui-state-disabled { font-weight: normal; margin: .4em 0 .2em; line-height: 1.5; }
+.ui-menu .ui-state-disabled a { cursor: default; }
+
+/* icon support */
+.ui-menu-icons { position: relative; }
+.ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
+
+/* left-aligned */
+.ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
+
+/* right-aligned */
+.ui-menu .ui-menu-icon { position: static; float: right; }
+
+.ui-menu { width: 200px; margin-bottom: 2em; }
/*
* jQuery UI Button 1.8.16
@@ -651,7 +660,31 @@ button.ui-button-icons-only { width: 3.7em; }
/* workarounds */
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+/*
+ * jQuery UI spinner 1.9.0
+ *
+ * Copyright 2012-10-11, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
+.ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; margin-left: .4em; margin-right: 22px; }
+.ui-spinner{}
+.ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; z-index: 100; text-align: center; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
+.ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
+.ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
+.ui-spinner-up { top: 0; }
+.ui-spinner-down { bottom: 0; }
+
+/* TR overrides */
+span.ui-spinner { background: none; }
+.ui-spinner .ui-icon-triangle-1-s {
+ /* need to fix icons sprite */
+ background-position:-65px -16px;
+}
/*
* jQuery UI Dialog 1.8.16
@@ -805,14 +838,16 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
-.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
- * jQuery UI Tabs 1.8.16
+.ui-slider-vertical .ui-slider-range-max { top: 0; }
+
+/*
+ * jQuery UI Tabs 1.9.0
*
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
- * http://docs.jquery.com/UI/Tabs#theming
+ * http://jqueryui.com/tabs/
*/
.ui-tabs .ui-tabs-nav{ background:none; border-color: #ddd;
border-style: solid;
@@ -824,14 +859,11 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
background:whiteSmoke;
border-bottom:1px solid #ddd;
padding-bottom:0px;
- color:#4c4c4c;
+ color:#00438A;
}
-
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; border-bottom:1px solid #DDD; }
-.ui-tabs .ui-tabs-nav li { text-decoration: none; list-style: none; float: left; position: relative; top: 1px; padding: 0px 0px 1px 0px; white-space: nowrap; background:none; border:0px;
-
-}
+.ui-tabs .ui-tabs-nav li { text-decoration: none; list-style: none; float: left; position: relative; top: 1px; padding: 0px 0px 1px 0px; white-space: nowrap; background:none; border:0px; }
.ui-tabs-nav .ui-state-default{
-webkit-box-shadow: 0px 0px 0px #ffffff; /* Saf3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
@@ -853,25 +885,24 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
}
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 0px; outline:none;}
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a {
+.ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: 0; padding-bottom: 0px; outline:none;}
+.ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a {
background-color: #ffffff;
border: 1px solid #ddd;
border-bottom-color: #ffffff;
cursor: default;
- color:#4c4c4c;
+ color:gray;
outline:none;
}
-
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected:hover{
+.ui-tabs .ui-tabs-nav li.ui-tabs-active:hover{
background:#ffffff;
outline:none;
}
-
-.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; color:#0069D6; background:none; font-weight:normal; margin-bottom:-1px;}
+.ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; color:#0069D6; background:none; font-weight:normal; margin-bottom:-1px;}
/* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
.ui-tabs-panel .ui-button{text-decoration:none;}
@@ -883,16 +914,39 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
filter:none;
}
-
-
/*
- * jQuery UI Datepicker 1.8.16
+ * jQuery UI Tooltip 1.9.0
*
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Copyright 2012-10-11, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
- * http://docs.jquery.com/UI/Datepicker#theming
+ * http://jqueryui.com/tooltip/
+ */
+.ui-tooltip {
+ padding:8px;
+ position:absolute;
+ z-index:9999;
+ -o-box-shadow: 0 0 5px #ddd;
+ -moz-box-shadow: 0 0 5px #ddd;
+ -webkit-box-shadow: 0 0 5px #ddd;
+ /*box-shadow: 0 2px 5px #ddd;*/
+ box-shadow: inset 0 1px 0 #ffffff;
+}
+/* Fades and background-images don't work well together in IE6, drop the image */
+* html .ui-tooltip {
+ background-image: none;
+}
+body .ui-tooltip { border-width:2px; }
+
+/*
+ * jQuery UI Datepicker 1.9.0
+ *
+ * Copyright 2012-10-11, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://jqueryui.com/datepicker/
*/
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; border:0px; font-weight: bold; width: 100%; padding: 4px 0; background-color: #f5f5f5; color: #808080; }
@@ -982,7 +1036,7 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
}
.ui-datepicker td:hover{
- color:white;
+ color: #ffffff;
}
.ui-datepicker td .ui-state-default {
@@ -1001,21 +1055,34 @@ button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra pad
margin-bottom:0px;
font-size:normal;
text-shadow: 0px;
- color:white;
+ color: #ffffff;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
-.ui-datepicker td .ui-state-default:hover{
- background:#0064cd;
- color:white;
- -webkit-border-radius: 4px;
- -moz-border-radius: 4px;
- border-radius: 4px;
+.ui-datepicker td .ui-state-hover {
+ color: #ffffff;
+ background: #0064cd;
+ background-color: #0064cd;
+ background-repeat: repeat-x;
+ background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
+ background-image: -moz-linear-gradient(top, #049cdb, #0064cd);
+ background-image: -ms-linear-gradient(top, #049cdb, #0064cd);
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
+ background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);
+ background-image: -o-linear-gradient(top, #049cdb, #0064cd);
+ background-image: linear-gradient(top, #049cdb, #0064cd);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0);
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
+ border-color: #0064cd #0064cd #003f81;
+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ -khtml-border-radius: 4px;
+ border-radius: 4px;
}
-
/*
* jQuery UI Progressbar 1.8.16
*
@@ -1065,16 +1132,17 @@ input:focus, textarea:focus {
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
}
-/*input[type=file]:focus, input[type=checkbox]:focus, select:focus {
+input[type=file]:focus, input[type=checkbox]:focus, select:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
outline: 1px dotted #666;
-}*/
+}
-/*input[type="text"],
+input[type="text"],
input[type="password"],
-textarea,*/
+.ui-autocomplete-input,
+textarea,
.uneditable-input {
display: inline-block;
padding: 4px;
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery.ui.1.8.16.ie.css b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery.ui.1.9.0.ie.css
similarity index 57%
rename from addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery.ui.1.8.16.ie.css
rename to addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery.ui.1.9.0.ie.css
index b24b9fb8ab0..b7392b0cd69 100644
--- a/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery.ui.1.8.16.ie.css
+++ b/addons/web/static/lib/jquery.ui.bootstrap/css/custom-theme/jquery.ui.1.9.0.ie.css
@@ -1,5 +1,15 @@
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-left, .ui-corner-bottom{ border-radius:0px;}
+/*
+ * jQuery UI Tabs 1.9.0
+ *
+ * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://jqueryui.com/tabs/
+ */
+
.ui-state-active,.ui-tabs-selected { border-radius:0px;}
.ui-tabs-selected { border-radius:0px;}
.ui-tabs .ui-tabs-nav li{ filter:none;}
diff --git a/addons/web/static/lib/jquery.ui.bootstrap/css/less/forms.less b/addons/web/static/lib/jquery.ui.bootstrap/css/less/forms.less
old mode 100755
new mode 100644
diff --git a/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png b/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
index ad3d6346e00..b39a6fb27ff 100644
Binary files a/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png and b/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png differ
diff --git a/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-icons_2e83ff_256x240.png b/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-icons_2e83ff_256x240.png
index 09d1cdc856c..84defe6e8ab 100644
Binary files a/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-icons_2e83ff_256x240.png and b/addons/web/static/lib/jquery.ui/css/smoothness/images/ui-icons_2e83ff_256x240.png differ
diff --git a/addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.8.17.custom.css b/addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css
similarity index 77%
rename from addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.8.17.custom.css
rename to addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css
index 3a4da3911c3..557e531a476 100644
--- a/addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.8.17.custom.css
+++ b/addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.css
@@ -1,12 +1,8 @@
-/*
- * jQuery UI CSS Framework 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Theming/API
- */
+/*! jQuery UI - v1.9.1 - 2012-10-29
+* http://jqueryui.com
+* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css
+* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
+* Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */
/* Layout helpers
----------------------------------*/
@@ -36,20 +32,198 @@
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
+.ui-accordion .ui-accordion-header { display: block; cursor: pointer; position: relative; margin-top: 2px; padding: .5em .5em .5em .7em; zoom: 1; }
+.ui-accordion .ui-accordion-icons { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-noicons { padding-left: .7em; }
+.ui-accordion .ui-accordion-icons .ui-accordion-icons { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-accordion-header-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; overflow: auto; zoom: 1; }
+.ui-autocomplete {
+ position: absolute;
+ top: 0; /* #8656 */
+ cursor: default;
+}
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button, .ui-button:link, .ui-button:visited, .ui-button:hover, .ui-button:active { text-decoration: none; }
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; }
+button.ui-button-icons-only { width: 3.7em; }
-/*
- * jQuery UI CSS Framework 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Theming/API
- *
- * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
- */
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4; }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
+.ui-datepicker .ui-datepicker-prev { left:2px; }
+.ui-datepicker .ui-datepicker-next { right:2px; }
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
+.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month,
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
+.ui-datepicker td { border: 0; padding: 1px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
+
+/* with multiple calendars */
+.ui-datepicker.ui-datepicker-multi { width:auto; }
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
+.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
+.ui-datepicker-cover {
+ position: absolute; /*must have*/
+ z-index: -1; /*must have*/
+ filter: mask(); /*must have*/
+ top: -4px; /*must have*/
+ left: -4px; /*must have*/
+ width: 200px; /*must have*/
+ height: 200px; /*must have*/
+}.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
+.ui-menu { list-style:none; padding: 2px; margin: 0; display:block; outline: none; }
+.ui-menu .ui-menu { margin-top: -3px; position: absolute; }
+.ui-menu .ui-menu-item { margin: 0; padding: 0; zoom: 1; width: 100%; }
+.ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0 0; }
+.ui-menu .ui-menu-item a { text-decoration: none; display: block; padding: 2px .4em; line-height: 1.5; zoom: 1; font-weight: normal; }
+.ui-menu .ui-menu-item a.ui-state-focus,
+.ui-menu .ui-menu-item a.ui-state-active { font-weight: normal; margin: -1px; }
+
+.ui-menu .ui-state-disabled { font-weight: normal; margin: .4em 0 .2em; line-height: 1.5; }
+.ui-menu .ui-state-disabled a { cursor: default; }
+
+/* icon support */
+.ui-menu-icons { position: relative; }
+.ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
+
+/* left-aligned */
+.ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
+
+/* right-aligned */
+.ui-menu .ui-menu-icon { position: static; float: right; }
+.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }.ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
+.ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; margin-left: .4em; margin-right: 22px; }
+.ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; text-align: center; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
+.ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
+.ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
+.ui-spinner-up { top: 0; }
+.ui-spinner-down { bottom: 0; }
+
+/* TR overrides */
+.ui-spinner .ui-icon-triangle-1-s {
+ /* need to fix icons sprite */
+ background-position:-65px -16px;
+}
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 0; margin: 1px .2em 0 0; border-bottom: 0; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: -1px; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tooltip {
+ padding: 8px;
+ position: absolute;
+ z-index: 9999;
+ max-width: 300px;
+ -webkit-box-shadow: 0 0 5px #aaa;
+ box-shadow: 0 0 5px #aaa;
+}
+/* Fades and background-images don't work well together in IE6, drop the image */
+* html .ui-tooltip {
+ background-image: none;
+}
+body .ui-tooltip { border-width: 2px; }
/* Component containers
----------------------------------*/
@@ -66,10 +240,9 @@
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
-.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; }
+.ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited { color: #212121; text-decoration: none; }
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
-.ui-widget :active { outline: none; }
/* Interaction Cues
----------------------------------*/
@@ -81,6 +254,7 @@
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+.ui-state-disabled .ui-icon { filter:Alpha(Opacity=35); } /* For IE8 - See #6059 */
/* Icons
----------------------------------*/
@@ -222,8 +396,8 @@
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
-.ui-icon-radio-off { background-position: -96px -144px; }
-.ui-icon-radio-on { background-position: -112px -144px; }
+.ui-icon-radio-on { background-position: -96px -144px; }
+.ui-icon-radio-off { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
@@ -283,283 +457,5 @@
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
/* Overlays */
-.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
-.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
- * jQuery UI Resizable 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Resizable#theming
- */
-.ui-resizable { position: relative;}
-.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
-.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
-.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
-.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
-.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
-.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
-.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
-.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
-.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
-.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
- * jQuery UI Selectable 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Selectable#theming
- */
-.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
-/*
- * jQuery UI Accordion 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Accordion#theming
- */
-/* IE/Win - Fix animation bug - #4615 */
-.ui-accordion { width: 100%; }
-.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
-.ui-accordion .ui-accordion-li-fix { display: inline; }
-.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
-.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
-.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
-.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
-.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
-.ui-accordion .ui-accordion-content-active { display: block; }
-/*
- * jQuery UI Autocomplete 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Autocomplete#theming
- */
-.ui-autocomplete { position: absolute; cursor: default; }
-
-/* workarounds */
-* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
-
-/*
- * jQuery UI Menu 1.8.17
- *
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Menu#theming
- */
-.ui-menu {
- list-style:none;
- padding: 2px;
- margin: 0;
- display:block;
- float: left;
-}
-.ui-menu .ui-menu {
- margin-top: -3px;
-}
-.ui-menu .ui-menu-item {
- margin:0;
- padding: 0;
- zoom: 1;
- float: left;
- clear: left;
- width: 100%;
-}
-.ui-menu .ui-menu-item a {
- text-decoration:none;
- display:block;
- padding:.2em .4em;
- line-height:1.5;
- zoom:1;
-}
-.ui-menu .ui-menu-item a.ui-state-hover,
-.ui-menu .ui-menu-item a.ui-state-active {
- font-weight: normal;
- margin: -1px;
-}
-/*
- * jQuery UI Button 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Button#theming
- */
-.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
-.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
-button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
-.ui-button-icons-only { width: 3.4em; }
-button.ui-button-icons-only { width: 3.7em; }
-
-/*button text element */
-.ui-button .ui-button-text { display: block; line-height: 1.4; }
-.ui-button-text-only .ui-button-text { padding: .4em 1em; }
-.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
-.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
-.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
-.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
-/* no icon support for input elements, provide padding by default */
-input.ui-button { padding: .4em 1em; }
-
-/*button icon element(s) */
-.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
-.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
-.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
-.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
-.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
-
-/*button sets*/
-.ui-buttonset { margin-right: 7px; }
-.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
-
-/* workarounds */
-button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
-/*
- * jQuery UI Dialog 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Dialog#theming
- */
-.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
-.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
-.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
-.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
-.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
-.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
-.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
-.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
-.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
-.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
-.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
-.ui-draggable .ui-dialog-titlebar { cursor: move; }
-/*
- * jQuery UI Slider 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Slider#theming
- */
-.ui-slider { position: relative; text-align: left; }
-.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
-.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
-
-.ui-slider-horizontal { height: .8em; }
-.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
-.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
-.ui-slider-horizontal .ui-slider-range-min { left: 0; }
-.ui-slider-horizontal .ui-slider-range-max { right: 0; }
-
-.ui-slider-vertical { width: .8em; height: 100px; }
-.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
-.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
-.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
-.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
- * jQuery UI Tabs 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Tabs#theming
- */
-.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
-.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
-.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
-.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
-.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
-.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
-.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
-.ui-tabs .ui-tabs-hide { display: none !important; }
-/*
- * jQuery UI Datepicker 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Datepicker#theming
- */
-.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
-.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
-.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
-.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
-.ui-datepicker .ui-datepicker-prev { left:2px; }
-.ui-datepicker .ui-datepicker-next { right:2px; }
-.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
-.ui-datepicker .ui-datepicker-next-hover { right:1px; }
-.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
-.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
-.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
-.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
-.ui-datepicker select.ui-datepicker-month,
-.ui-datepicker select.ui-datepicker-year { width: 49%;}
-.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
-.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
-.ui-datepicker td { border: 0; padding: 1px; }
-.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
-.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
-.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
-.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
-
-/* with multiple calendars */
-.ui-datepicker.ui-datepicker-multi { width:auto; }
-.ui-datepicker-multi .ui-datepicker-group { float:left; }
-.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
-.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
-.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
-.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
-.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
-.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
-.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
-.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
-
-/* RTL support */
-.ui-datepicker-rtl { direction: rtl; }
-.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
-.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
-.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
-.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
-.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
-.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
-.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
-.ui-datepicker-rtl .ui-datepicker-group { float:right; }
-.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
-.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
-
-/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
-.ui-datepicker-cover {
- display: none; /*sorry for IE5*/
- display/**/: block; /*sorry for IE5*/
- position: absolute; /*must have*/
- z-index: -1; /*must have*/
- filter: mask(); /*must have*/
- top: -4px; /*must have*/
- left: -4px; /*must have*/
- width: 200px; /*must have*/
- height: 200px; /*must have*/
-}/*
- * jQuery UI Progressbar 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Progressbar#theming
- */
-.ui-progressbar { height:2em; text-align: left; overflow: hidden; }
-.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
\ No newline at end of file
+.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .3;filter:Alpha(Opacity=30); }
+.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .3;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }
\ No newline at end of file
diff --git a/addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.min.css b/addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.min.css
new file mode 100644
index 00000000000..57670ffe715
--- /dev/null
+++ b/addons/web/static/lib/jquery.ui/css/smoothness/jquery-ui-1.9.1.custom.min.css
@@ -0,0 +1,5 @@
+/*! jQuery UI - v1.9.1 - 2012-10-29
+* http://jqueryui.com
+* Includes: jquery.ui.core.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css
+* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
+* Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px);clip:rect(1px,1px,1px,1px)}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table}.ui-helper-clearfix:after{clear:both}.ui-helper-clearfix{zoom:1}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-state-disabled{cursor:default!important}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display:block}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black}.ui-accordion .ui-accordion-header{display:block;cursor:pointer;position:relative;margin-top:2px;padding:.5em .5em .5em .7em;zoom:1}.ui-accordion .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-noicons{padding-left:.7em}.ui-accordion .ui-accordion-icons .ui-accordion-icons{padding-left:2.2em}.ui-accordion .ui-accordion-header .ui-accordion-header-icon{position:absolute;left:.5em;top:50%;margin-top:-8px}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;overflow:auto;zoom:1}.ui-autocomplete{position:absolute;top:0;cursor:default}* html .ui-autocomplete{width:1px}.ui-button{display:inline-block;position:relative;padding:0;margin-right:.1em;cursor:pointer;text-align:center;zoom:1;overflow:visible}.ui-button,.ui-button:link,.ui-button:visited,.ui-button:hover,.ui-button:active{text-decoration:none}.ui-button-icon-only{width:2.2em}button.ui-button-icon-only{width:2.4em}.ui-button-icons-only{width:3.4em}button.ui-button-icons-only{width:3.7em}.ui-button .ui-button-text{display:block;line-height:1.4}.ui-button-text-only .ui-button-text{padding:.4em 1em}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em}input.ui-button{padding:.4em 1em}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em}.ui-buttonset{margin-right:7px}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em}button.ui-button::-moz-focus-inner{border:0;padding:0}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month-year{width:100%}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group{float:left}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0em}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current{float:right}.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.ui-datepicker-cover{position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px}.ui-dialog{position:absolute;padding:.2em;width:300px;overflow:hidden}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative}.ui-dialog .ui-dialog-title{float:left;margin:.1em 16px .1em 0}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:19px;margin:-10px 0 0 0;padding:1px;height:18px}.ui-dialog .ui-dialog-titlebar-close span{display:block;margin:1px}.ui-dialog .ui-dialog-titlebar-close:hover,.ui-dialog .ui-dialog-titlebar-close:focus{padding:0}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto;zoom:1}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer}.ui-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px}.ui-draggable .ui-dialog-titlebar{cursor:move}.ui-menu{list-style:none;padding:2px;margin:0;display:block;outline:none}.ui-menu .ui-menu{margin-top:-3px;position:absolute}.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;width:100%}.ui-menu .ui-menu-divider{margin:5px -2px 5px -2px;height:0;font-size:0;line-height:0;border-width:1px 0 0 0}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:2px .4em;line-height:1.5;zoom:1;font-weight:normal}.ui-menu .ui-menu-item a.ui-state-focus,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px}.ui-menu .ui-state-disabled{font-weight:normal;margin:.4em 0 .2em;line-height:1.5}.ui-menu .ui-state-disabled a{cursor:default}.ui-menu-icons{position:relative}.ui-menu-icons .ui-menu-item a{position:relative;padding-left:2em}.ui-menu .ui-icon{position:absolute;top:.2em;left:.2em}.ui-menu .ui-menu-icon{position:static;float:right}.ui-progressbar{height:2em;text-align:left;overflow:hidden}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%}.ui-slider{position:relative;text-align:left}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.ui-spinner{position:relative;display:inline-block;overflow:hidden;padding:0;vertical-align:middle}.ui-spinner-input{border:none;background:none;padding:0;margin:.2em 0;vertical-align:middle;margin-left:.4em;margin-right:22px}.ui-spinner-button{width:16px;height:50%;font-size:.5em;padding:0;margin:0;text-align:center;position:absolute;cursor:default;display:block;overflow:hidden;right:0}.ui-spinner a.ui-spinner-button{border-top:none;border-bottom:none;border-right:none}.ui-spinner .ui-icon{position:absolute;margin-top:-8px;top:50%;left:0}.ui-spinner-up{top:0}.ui-spinner-down{bottom:0}.ui-spinner .ui-icon-triangle-1-s{background-position:-65px -16px}.ui-tabs{position:relative;padding:.2em;zoom:1}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:0;margin:1px .2em 0 0;border-bottom:0;padding:0;white-space:nowrap}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none}.ui-tabs .ui-tabs-nav li.ui-tabs-active{margin-bottom:-1px;padding-bottom:1px}.ui-tabs .ui-tabs-nav li.ui-tabs-active a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-tabs-loading a{cursor:text}.ui-tabs .ui-tabs-nav li a,.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a{cursor:pointer}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none}.ui-tooltip{padding:8px;position:absolute;z-index:9999;max-width:300px;-webkit-box-shadow:0 0 5px #aaa;box-shadow:0 0 5px #aaa}* html .ui-tooltip{background-image:none}body .ui-tooltip{border-width:2px}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.ui-widget .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.ui-widget-content a{color:#222}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:bold}.ui-widget-header a{color:#222}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#555}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited{color:#212121;text-decoration:none}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px;background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png)}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png)}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png)}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png)}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png)}.ui-icon-carat-1-n{background-position:0 0}.ui-icon-carat-1-ne{background-position:-16px 0}.ui-icon-carat-1-e{background-position:-32px 0}.ui-icon-carat-1-se{background-position:-48px 0}.ui-icon-carat-1-s{background-position:-64px 0}.ui-icon-carat-1-sw{background-position:-80px 0}.ui-icon-carat-1-w{background-position:-96px 0}.ui-icon-carat-1-nw{background-position:-112px 0}.ui-icon-carat-2-n-s{background-position:-128px 0}.ui-icon-carat-2-e-w{background-position:-144px 0}.ui-icon-triangle-1-n{background-position:0 -16px}.ui-icon-triangle-1-ne{background-position:-16px -16px}.ui-icon-triangle-1-e{background-position:-32px -16px}.ui-icon-triangle-1-se{background-position:-48px -16px}.ui-icon-triangle-1-s{background-position:-64px -16px}.ui-icon-triangle-1-sw{background-position:-80px -16px}.ui-icon-triangle-1-w{background-position:-96px -16px}.ui-icon-triangle-1-nw{background-position:-112px -16px}.ui-icon-triangle-2-n-s{background-position:-128px -16px}.ui-icon-triangle-2-e-w{background-position:-144px -16px}.ui-icon-arrow-1-n{background-position:0 -32px}.ui-icon-arrow-1-ne{background-position:-16px -32px}.ui-icon-arrow-1-e{background-position:-32px -32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{background-position:-64px -32px}.ui-icon-arrow-1-sw{background-position:-80px -32px}.ui-icon-arrow-1-w{background-position:-96px -32px}.ui-icon-arrow-1-nw{background-position:-112px -32px}.ui-icon-arrow-2-n-s{background-position:-128px -32px}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.ui-icon-arrow-2-e-w{background-position:-160px -32px}.ui-icon-arrow-2-se-nw{background-position:-176px -32px}.ui-icon-arrowstop-1-n{background-position:-192px -32px}.ui-icon-arrowstop-1-e{background-position:-208px -32px}.ui-icon-arrowstop-1-s{background-position:-224px -32px}.ui-icon-arrowstop-1-w{background-position:-240px -32px}.ui-icon-arrowthick-1-n{background-position:0 -48px}.ui-icon-arrowthick-1-ne{background-position:-16px -48px}.ui-icon-arrowthick-1-e{background-position:-32px -48px}.ui-icon-arrowthick-1-se{background-position:-48px -48px}.ui-icon-arrowthick-1-s{background-position:-64px -48px}.ui-icon-arrowthick-1-sw{background-position:-80px -48px}.ui-icon-arrowthick-1-w{background-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px -48px}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.ui-icon-arrowreturn-1-w{background-position:-64px -64px}.ui-icon-arrowreturn-1-n{background-position:-80px -64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arrowreturn-1-s{background-position:-112px -64px}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.ui-icon-arrow-4{background-position:0 -80px}.ui-icon-arrow-4-diag{background-position:-16px -80px}.ui-icon-extlink{background-position:-32px -80px}.ui-icon-newwin{background-position:-48px -80px}.ui-icon-refresh{background-position:-64px -80px}.ui-icon-shuffle{background-position:-80px -80px}.ui-icon-transfer-e-w{background-position:-96px -80px}.ui-icon-transferthick-e-w{background-position:-112px -80px}.ui-icon-folder-collapsed{background-position:0 -96px}.ui-icon-folder-open{background-position:-16px -96px}.ui-icon-document{background-position:-32px -96px}.ui-icon-document-b{background-position:-48px -96px}.ui-icon-note{background-position:-64px -96px}.ui-icon-mail-closed{background-position:-80px -96px}.ui-icon-mail-open{background-position:-96px -96px}.ui-icon-suitcase{background-position:-112px -96px}.ui-icon-comment{background-position:-128px -96px}.ui-icon-person{background-position:-144px -96px}.ui-icon-print{background-position:-160px -96px}.ui-icon-trash{background-position:-176px -96px}.ui-icon-locked{background-position:-192px -96px}.ui-icon-unlocked{background-position:-208px -96px}.ui-icon-bookmark{background-position:-224px -96px}.ui-icon-tag{background-position:-240px -96px}.ui-icon-home{background-position:0 -112px}.ui-icon-flag{background-position:-16px -112px}.ui-icon-calendar{background-position:-32px -112px}.ui-icon-cart{background-position:-48px -112px}.ui-icon-pencil{background-position:-64px -112px}.ui-icon-clock{background-position:-80px -112px}.ui-icon-disk{background-position:-96px -112px}.ui-icon-calculator{background-position:-112px -112px}.ui-icon-zoomin{background-position:-128px -112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{background-position:-160px -112px}.ui-icon-wrench{background-position:-176px -112px}.ui-icon-gear{background-position:-192px -112px}.ui-icon-heart{background-position:-208px -112px}.ui-icon-star{background-position:-224px -112px}.ui-icon-link{background-position:-240px -112px}.ui-icon-cancel{background-position:0 -128px}.ui-icon-plus{background-position:-16px -128px}.ui-icon-plusthick{background-position:-32px -128px}.ui-icon-minus{background-position:-48px -128px}.ui-icon-minusthick{background-position:-64px -128px}.ui-icon-close{background-position:-80px -128px}.ui-icon-closethick{background-position:-96px -128px}.ui-icon-key{background-position:-112px -128px}.ui-icon-lightbulb{background-position:-128px -128px}.ui-icon-scissors{background-position:-144px -128px}.ui-icon-clipboard{background-position:-160px -128px}.ui-icon-copy{background-position:-176px -128px}.ui-icon-contact{background-position:-192px -128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{background-position:-224px -128px}.ui-icon-script{background-position:-240px -128px}.ui-icon-alert{background-position:0 -144px}.ui-icon-info{background-position:-16px -144px}.ui-icon-notice{background-position:-32px -144px}.ui-icon-help{background-position:-48px -144px}.ui-icon-check{background-position:-64px -144px}.ui-icon-bullet{background-position:-80px -144px}.ui-icon-radio-on{background-position:-96px -144px}.ui-icon-radio-off{background-position:-112px -144px}.ui-icon-pin-w{background-position:-128px -144px}.ui-icon-pin-s{background-position:-144px -144px}.ui-icon-play{background-position:0 -160px}.ui-icon-pause{background-position:-16px -160px}.ui-icon-seek-next{background-position:-32px -160px}.ui-icon-seek-prev{background-position:-48px -160px}.ui-icon-seek-end{background-position:-64px -160px}.ui-icon-seek-start{background-position:-80px -160px}.ui-icon-seek-first{background-position:-80px -160px}.ui-icon-stop{background-position:-96px -160px}.ui-icon-eject{background-position:-112px -160px}.ui-icon-volume-off{background-position:-128px -160px}.ui-icon-volume-on{background-position:-144px -160px}.ui-icon-power{background-position:0 -176px}.ui-icon-signal-diag{background-position:-16px -176px}.ui-icon-signal{background-position:-32px -176px}.ui-icon-battery-0{background-position:-48px -176px}.ui-icon-battery-1{background-position:-64px -176px}.ui-icon-battery-2{background-position:-80px -176px}.ui-icon-battery-3{background-position:-96px -176px}.ui-icon-circle-plus{background-position:0 -192px}.ui-icon-circle-minus{background-position:-16px -192px}.ui-icon-circle-close{background-position:-32px -192px}.ui-icon-circle-triangle-e{background-position:-48px -192px}.ui-icon-circle-triangle-s{background-position:-64px -192px}.ui-icon-circle-triangle-w{background-position:-80px -192px}.ui-icon-circle-triangle-n{background-position:-96px -192px}.ui-icon-circle-arrow-e{background-position:-112px -192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-icon-circle-arrow-w{background-position:-144px -192px}.ui-icon-circle-arrow-n{background-position:-160px -192px}.ui-icon-circle-zoomin{background-position:-176px -192px}.ui-icon-circle-zoomout{background-position:-192px -192px}.ui-icon-circle-check{background-position:-208px -192px}.ui-icon-circlesmall-plus{background-position:0 -208px}.ui-icon-circlesmall-minus{background-position:-16px -208px}.ui-icon-circlesmall-close{background-position:-32px -208px}.ui-icon-squaresmall-plus{background-position:-48px -208px}.ui-icon-squaresmall-minus{background-position:-64px -208px}.ui-icon-squaresmall-close{background-position:-80px -208px}.ui-icon-grip-dotted-vertical{background-position:0 -224px}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.ui-icon-grip-solid-vertical{background-position:-32px -224px}.ui-icon-grip-solid-horizontal{background-position:-48px -224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.ui-icon-grip-diagonal-se{background-position:-80px -224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}
\ No newline at end of file
diff --git a/addons/web/static/lib/jquery.ui/js/jquery-ui-1.8.17.custom.min.js b/addons/web/static/lib/jquery.ui/js/jquery-ui-1.8.17.custom.min.js
deleted file mode 100644
index 991cb8d0a67..00000000000
--- a/addons/web/static/lib/jquery.ui/js/jquery-ui-1.8.17.custom.min.js
+++ /dev/null
@@ -1,356 +0,0 @@
-/*!
- * jQuery UI 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI
- */(function(a,b){function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;if(!b.href||!g||f.nodeName.toLowerCase()!=="map")return!1;h=a("img[usemap=#"+g+"]")[0];return!!h&&d(h)}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function h(b,c,d,f){a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){if(c===b)return g["inner"+d].call(this);return this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){if(typeof b!="number")return g["outer"+d].call(this,b);return this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!!d&&!!a.element[0].parentNode)for(var e=0;e0)return!0;b[d]=1,e=b[d]>0,b[d]=0;return e},isOverAxis:function(a,b,c){return a>b&&a=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b));return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);/*
- * jQuery UI Position 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Position
- */(function(a,b){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,e="center",f={},g=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return g.apply(this,arguments);b=a.extend({},b);var h=a(b.of),i=h[0],j=(b.collision||"flip").split(" "),k=b.offset?b.offset.split(" "):[0,0],l,m,n;i.nodeType===9?(l=h.width(),m=h.height(),n={top:0,left:0}):i.setTimeout?(l=h.width(),m=h.height(),n={top:h.scrollTop(),left:h.scrollLeft()}):i.preventDefault?(b.at="left top",l=m=0,n={top:b.of.pageY,left:b.of.pageX}):(l=h.outerWidth(),m=h.outerHeight(),n=h.offset()),a.each(["my","at"],function(){var a=(b[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat([e]):d.test(a[0])?[e].concat(a):[e,e]),a[0]=c.test(a[0])?a[0]:e,a[1]=d.test(a[1])?a[1]:e,b[this]=a}),j.length===1&&(j[1]=j[0]),k[0]=parseInt(k[0],10)||0,k.length===1&&(k[1]=k[0]),k[1]=parseInt(k[1],10)||0,b.at[0]==="right"?n.left+=l:b.at[0]===e&&(n.left+=l/2),b.at[1]==="bottom"?n.top+=m:b.at[1]===e&&(n.top+=m/2),n.left+=k[0],n.top+=k[1];return this.each(function(){var c=a(this),d=c.outerWidth(),g=c.outerHeight(),h=parseInt(a.curCSS(this,"marginLeft",!0))||0,i=parseInt(a.curCSS(this,"marginTop",!0))||0,o=d+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),p=g+i+(parseInt(a.curCSS(this,"marginBottom",!0))||0),q=a.extend({},n),r;b.my[0]==="right"?q.left-=d:b.my[0]===e&&(q.left-=d/2),b.my[1]==="bottom"?q.top-=g:b.my[1]===e&&(q.top-=g/2),f.fractions||(q.left=Math.round(q.left),q.top=Math.round(q.top)),r={left:q.left-h,top:q.top-i},a.each(["left","top"],function(c,e){a.ui.position[j[c]]&&a.ui.position[j[c]][e](q,{targetWidth:l,targetHeight:m,elemWidth:d,elemHeight:g,collisionPosition:r,collisionWidth:o,collisionHeight:p,offset:k,my:b.my,at:b.at})}),a.fn.bgiframe&&c.bgiframe(),c.offset(a.extend(q,{using:b.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window),e=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();b.left=e>0?b.left-e:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=e>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!==e){var d=a(window),f=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),g=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,h=c.at[0]==="left"?c.targetWidth:-c.targetWidth,i=-2*c.offset[0];b.left+=c.collisionPosition.left<0?g+h+i:f>0?g+h+i:0}},top:function(b,c){if(c.at[1]!==e){var d=a(window),f=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),g=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,h=c.at[1]==="top"?c.targetHeight:-c.targetHeight,i=-2*c.offset[1];b.top+=c.collisionPosition.top<0?g+h+i:f>0?g+h+i:0}}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];if(!c||!c.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return h.call(this)}),function(){var b=document.getElementsByTagName("body")[0],c=document.createElement("div"),d,e,g,h,i;d=document.createElement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&jQuery.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendChild(c),e=b||document.documentElement,e.insertBefore(d,e.firstChild),c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerHTML="",e.removeChild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()})(jQuery);/*
- * jQuery UI Draggable 1.8.17
- *
- * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Draggables
- *
- * Depends:
- * jquery.ui.core.js
- * jquery.ui.mouse.js
- * jquery.ui.widget.js
- */(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(!!this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy();return this}},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle"))return!1;this.handle=this._getHandle(b);if(!this.handle)return!1;c.iframeFix&&a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")});return!0},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),c.containment&&this._setContainment();if(this._trigger("start",b)===!1){this._clear();return!1}this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b);return!0},_mouseDrag:function(b,c){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute");if(!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1){this._mouseUp({});return!1}this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,b);return!1},_mouseStop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,b)),this.dropped&&(c=this.dropped,this.dropped=!1);if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var d=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){d._trigger("stop",b)!==!1&&d._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseUp:function(b){this.options.iframeFix===!0&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b);return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(c=!0)});return c},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo),d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){var c=a(b.containment),d=c[0];if(!d)return;var e=c.offset(),f=a(d).css("overflow")!="hidden";this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c}else b.containment.constructor==Array&&(this.containment=b.containment)},_convertPositionTo:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(b){var c=this.options,d=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName),f=b.pageX,g=b.pageY;if(this.originalPosition){var h;if(this.containment){if(this.relative_container){var i=this.relative_container.offset();h=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else h=this.containment;b.pageX-this.offset.click.lefth[2]&&(f=h[2]+this.offset.click.left),b.pageY-this.offset.click.top>h[3]&&(g=h[3]+this.offset.click.top)}if(c.grid){var j=c.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY;g=h?j-this.offset.click.toph[3]?j-this.offset.click.toph[2]?k-this.offset.click.left=0;k--){var l=d.snapElements[k].left,m=l+d.snapElements[k].width,n=d.snapElements[k].top,o=n+d.snapElements[k].height;if(!(l-f=k&&g<=l||h>=k&&h<=l||gl)&&(e>=i&&e<=j||f>=i&&f<=j||ej);default:return!1}},a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,c){var d=a.ui.ddmanager.droppables[b.options.scope]||[],e=c?c.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf();droppablesLoop:for(var g=0;g
";return d},set_value:function(a,d,c,b){for(var f=a.getElementsByTagName("input"),e=0;e':""},set_value:function(a,d,c,b){var a=document.getElementById(b.id),f=scheduler.uid(),e=!1;typeof b.checked_value!="undefined"&&c[b.map_to]==b.checked_value&&(e=!0);a.className+=" dhx_cal_checkbox";var g="",h="";scheduler.config.wide_form?(a.innerHTML=h,a.nextSibling.innerHTML=g):a.innerHTML=g+h},get_value:function(a,d,c){var a=document.getElementById(c.id),b=a.getElementsByTagName("input")[0];b||(b=a.nextSibling.getElementsByTagName("input")[0]);return b.checked?c.checked_value||!0:c.unchecked_value||!1},focus:function(){}};
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_expand.js b/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_expand.js
deleted file mode 100644
index 06a1187a723..00000000000
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_expand.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
-*/
-scheduler.expand=function(){var a=scheduler._obj;do a._position=a.style.position||"",a.style.position="static";while((a=a.parentNode)&&a.style);a=scheduler._obj;a.style.position="absolute";a._width=a.style.width;a._height=a.style.height;a.style.width=a.style.height="100%";a.style.top=a.style.left="0px";var b=document.body;b.scrollTop=0;if(b=b.parentNode)b.scrollTop=0;document.body._overflow=document.body.style.overflow||"";document.body.style.overflow="hidden";scheduler._maximize()};
-scheduler.collapse=function(){var a=scheduler._obj;do a.style.position=a._position;while((a=a.parentNode)&&a.style);a=scheduler._obj;a.style.width=a._width;a.style.height=a._height;document.body.style.overflow=document.body._overflow;scheduler._maximize()};scheduler.attachEvent("onTemplatesReady",function(){var a=document.createElement("DIV");a.className="dhx_expand_icon";scheduler.toggleIcon=a;scheduler._obj.appendChild(a);a.onclick=function(){scheduler.expanded?scheduler.collapse():scheduler.expand()}});
-scheduler._maximize=function(){this.expanded=!this.expanded;this.toggleIcon.style.backgroundPosition="0px "+(this.expanded?"0":"18")+"px";for(var a=["left","top"],b=0;bd&&(a[e+1]=d);m=!0};scheduler.attachEvent("onScaleAdd",function(b,a){var c=k[a.valueOf()]||l[a.getDay()];if(c)for(var d=0;dscheduler.config.limit_end.valueOf()||this.date.add(d,1,c)<=scheduler.config.limit_start.valueOf())?(setTimeout(function(){scheduler.setCurrentView(scheduler._date,
-c)},1),!1):!0});var f=function(b){var a=scheduler.config,c=b.start_date.valueOf()>=a.limit_start.valueOf()&&b.end_date.valueOf()<=a.limit_end.valueOf();if(c&&m&&b._timed){var d=scheduler.date.date_part(new Date(b.start_date.valueOf())),e=k[d.valueOf()]||l[d.getDay()],f=b.start_date.getHours()*60+b.start_date.getMinutes(),h=b.end_date.getHours()*60+b.end_date.getMinutes();if(e)for(var j=0;jf){if(f<=i&&f>=g){if(i==1440||h=g&&h=scheduler.config.limit_end.valueOf())a.start_date=this.date.add(scheduler.config.limit_end,-1,"day");if(a.end_date=scheduler.config.limit_end.valueOf())a.end_date=this.date.add(scheduler.config.limit_end,-1,"day");if(a.start_date.valueOf()>=a.end_date.valueOf())a.end_date=this.date.add(a.start_date,this.config.event_duration||this.config.time_step,"minute");a._timed=this.is_one_day_event(a)}return!0});scheduler.attachEvent("onEventChanged",function(b){if(!b)return!0;var a=scheduler.getEvent(b);if(!f(a)){if(!g)return!1;a.start_date=g[0];a.end_date=
-g[1];a._timed=this.is_one_day_event(a)}return!0});scheduler.attachEvent("onBeforeEventChanged",function(b){return f(b)})})();
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_map_view.js b/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_map_view.js
deleted file mode 100644
index 57735c07a0e..00000000000
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_map_view.js
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
-This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
-*/
-scheduler.xy.map_date_width=188;scheduler.xy.map_description_width=400;scheduler.config.map_resolve_event_location=!0;scheduler.config.map_resolve_user_location=!0;scheduler.config.map_initial_position=new google.maps.LatLng(48.724,8.215);scheduler.config.map_error_position=new google.maps.LatLng(15,15);scheduler.config.map_infowindow_max_width=300;scheduler.config.map_type=google.maps.MapTypeId.ROADMAP;scheduler.config.map_zoom_after_resolve=15;scheduler.locale.labels.marker_geo_success="It seems you are here.";
-scheduler.locale.labels.marker_geo_fail="Sorry, could not get your current position using geolocation.";scheduler.templates.marker_date=scheduler.date.date_to_str("%Y-%m-%d %H:%i");scheduler.templates.marker_text=function(f,g,e){return"
"},set_value:function(b,c,a){function d(a,b,c){n(a,b,c);a.value=scheduler.templates.calendar_time(b);a._date=scheduler.date.date_part(new Date(b))}var e=b.getElementsByTagName("input"),f=b.getElementsByTagName("select"),n=function(a,b,c){a.onclick=function(){scheduler.destroyCalendar(null,!0);scheduler.renderCalendar({position:a,date:new Date(this._date),navigation:!0,handler:function(b){a.value=scheduler.templates.calendar_time(b);
-a._date=new Date(b);scheduler.destroyCalendar();scheduler.config.event_duration&&scheduler.config.auto_end_date&&c==0&&o()}})}};if(scheduler.config.full_day){if(!b._full_day){var m="";scheduler.config.wide_form||(m=b.previousSibling.innerHTML+m);b.previousSibling.innerHTML=m;b._full_day=!0}var k=b.previousSibling.getElementsByTagName("input")[0],p=scheduler.date.time_part(a.start_date)==
-0&&scheduler.date.time_part(a.end_date)==0&&a.end_date.valueOf()-a.start_date.valueOf()<1728E5;k.checked=p;for(var i in f)f[i].disabled=k.checked;for(i=0;i",b=0;b"+d.options[b].label+"",convertStringToBoolean(d.vertical)&&(a+=" ");a+="";return a},set_value:function(d,a,b,c){function h(b){for(var c=d.getElementsByTagName("input"),a=0;a";o=c[0].offsetWidth;return a}function y(c,a){for(var b=parseInt(c.style.left),d=0;db)return d;return a}function w(c){for(var a="",b=c.firstChild.rows,d=0;d";k=c.firstChild.rows[0].cells[0].offsetHeight}return a}function A(c){var a=
-"";a+="";if(scheduler._mode=="agenda"){var b=scheduler._els.dhx_cal_header[0].childNodes[0].childNodes;a+=""+g(b[0].innerHTML)+""+g(b[1].innerHTML)+""}else if(scheduler._mode=="year")for(var b=scheduler._els.dhx_cal_data[0].childNodes,d=0;d",a+=q(b[d].childNodes[1].childNodes),a+=w(b[d].childNodes[2]),a+="";else{a+="";b=scheduler._els.dhx_cal_header[0].childNodes;a+=q(b);a+="";var e=scheduler._els.dhx_cal_data[0];if(scheduler.matrix&&scheduler.matrix[scheduler._mode]){a+="";for(d=0;d";a+="";k=e.firstChild.rows[0].cells[0].offsetHeight}else if(e.firstChild.tagName=="TABLE")a+=w(e);else{for(e=e.childNodes[e.childNodes.length-
-1];e.className.indexOf("dhx_scale_holder")==-1;)e=e.previousSibling;e=e.childNodes;a+="";for(d=0;d";a+="";k=e[0].offsetHeight}}a+="";return a}function r(c,a){return(window.getComputedStyle?window.getComputedStyle(c,null)[a]:c.currentStyle?c.currentStyle[a]:null)||""}function B(){var c="",a=scheduler._rendered;if(scheduler._mode=="agenda")for(var b=0;b"+g(a[b].childNodes[0].innerHTML)+""+
-g(a[b].childNodes[2].innerHTML)+"";else if(scheduler._mode=="year"){a=scheduler.get_visible_events();for(b=0;b";d=scheduler.date.add(d,1,"day");
-if(d.valueOf()>=scheduler._max_date.valueOf())break}}}else for(b=0;b";if(n=="event"){c+="";var u=p?r(a[b].childNodes[2],"color"):"",v=p?r(a[b].childNodes[2],"backgroundColor"):
-"";c+=""}else u=p?r(a[b],"color"):"",v=p?r(a[b],"backgroundColor"):"",c+="";c+=""}return c}function C(){var c="";return c}var o=0,k=0,p=!1;f=="fullcolor"&&(p=!0,f="color");f=f||"color";html_regexp=RegExp("<[^>]*>","g");var l=(new Date).valueOf(),i=document.createElement("div");i.style.display="none";document.body.appendChild(i);
-i.innerHTML='';document.getElementById(l).firstChild.value=A(f).replace("\u2013","-")+B()+C();document.getElementById(l).submit();i.parentNode.removeChild(i);grid=null};
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_readonly.js b/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_readonly.js
deleted file mode 100644
index 066e5e5a57b..00000000000
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_readonly.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
-*/
-scheduler.attachEvent("onTemplatesReady",function(){function h(d,b,c,f){for(var e=b.getElementsByTagName(d),a=c.getElementsByTagName(d),g=a.length-1;g>=0;g--)if(c=a[g],f){var i=document.createElement("SPAN");i.className="dhx_text_disabled";i.innerHTML=f(e[g]);c.parentNode.insertBefore(i,c);c.parentNode.removeChild(c)}else c.disabled=!0}scheduler.attachEvent("onBeforeLightbox",function(d){if(this.config.readonly_form||this.getEvent(d).readonly)this.config.readonly_active=!0;else return this.config.readonly_active=
-!1,!0;for(var b=0;be)return a.setDate(a.getDate()+b[h]*1-e-(d?c:f));this.transpose_day_week(a,b,c+d,null,c)};
-scheduler.transpose_type=function(a){var b="transpose_"+a;if(!this.date[b]){var c=a.split("_"),d=864E5,f="add_"+a,e=this.transponse_size[c[0]]*c[1];if(c[0]=="day"||c[0]=="week"){var h=null;if(c[4]&&(h=c[4].split(","),scheduler.config.start_on_monday)){for(var j=0;j0&&a.setDate(a.getDate()+c*e);h&&scheduler.transpose_day_week(a,h,1,e)};this.date[f]=function(a,b){var c=new Date(a.valueOf());
-if(h)for(var d=0;d=0&&a.setMonth(a.getMonth()+d*e);c[3]&&scheduler.date.day_week(a,c[2],c[3])},this.date[f]=function(a,b){var d=new Date(a.valueOf());d.setMonth(d.getMonth()+b*e);c[3]&&scheduler.date.day_week(d,c[2],c[3]);return d}}};
-scheduler.repeat_date=function(a,b,c,d,f){var d=d||this._min_date,f=f||this._max_date,e=new Date(a.start_date.valueOf());if(!a.rec_pattern&&a.rec_type)a.rec_pattern=a.rec_type.split("#")[0];this.transpose_type(a.rec_pattern);for(scheduler.date["transpose_"+a.rec_pattern](e,d);e0?new Date(e.valueOf()+a.event_length*1E3-k*6E4):new Date(i.end_date.valueOf()+k*6E4);i._timed=this.is_one_day_event(i);if(!i._timed&&!this._table_view&&!this.config.multi_day)break;b.push(i);c||(this._events[i.id]=i,this._rec_temp.push(i))}e=this.date.add(e,1,a.rec_pattern)}};
-scheduler.getRecDates=function(a,b){var c=typeof a=="object"?a:scheduler.getEvent(a),d=0,f=[],b=b||1E3,e=new Date(c.start_date.valueOf()),h=new Date(e.valueOf());if(!c.rec_type)return[{start_date:c.start_date,end_date:c.end_date}];this.transpose_type(c.rec_pattern);for(scheduler.date["transpose_"+c.rec_pattern](e,h);ea)if(f.rec_pattern){if(f.rec_pattern!="none"){var e=[];this.repeat_date(f,e,!0,a,b);for(var h=0;ha&&!this._rec_markers[e[h].id]&&c.push(e[h])}}else f.id.toString().indexOf("#")==-1&&c.push(f)}return c};scheduler.config.repeat_date="%m.%d.%Y";
-scheduler.config.lightbox.sections=[{name:"description",height:130,map_to:"text",type:"textarea",focus:!0},{name:"recurring",type:"recurring",map_to:"rec_type",button:"recurring"},{name:"time",height:72,type:"time",map_to:"auto"}];scheduler._copy_dummy=function(){this.start_date=new Date(this.start_date);this.end_date=new Date(this.end_date);this.event_length=this.event_pid=this.rec_pattern=this.rec_type=this._timed=null};
-scheduler.__recurring_template='
';
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_serialize.js b/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_serialize.js
deleted file mode 100644
index fd3b34913bb..00000000000
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/codebase/ext/dhtmlxscheduler_serialize.js
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
-*/
-scheduler.data_attributes=function(){var f=[],d=scheduler.templates.xml_format,c;for(c in this._events){var e=this._events[c],a;for(a in e)a.substr(0,1)!="_"&&f.push([a,a=="start_date"||a=="end_date"?d:null]);break}return f};
-scheduler.toXML=function(f){var d=[],c=this.data_attributes(),e;for(e in this._events){var a=this._events[e];if(a.id.toString().indexOf("#")==-1){d.push("");for(var b=0;b"+c[b][0]+">");d.push("")}}return(f||"")+""+d.join("\n")+""};
-scheduler.toJSON=function(){var f=[],d=this.data_attributes(),c;for(c in this._events){var e=this._events[c];if(e.id.toString().indexOf("#")==-1){for(var e=this._events[c],a=[],b=0;b=this._trace_x[d+1];)d++;for(;this._trace_x[d]&&a[c].end_date>this._trace_x[d];)b[f][d]||(b[f][d]=[]),b[f][d].push(a[c]),d++}return b}function v(a,b,c){var f=0,d=b?a.end_date:a.start_date;if(d.valueOf()>scheduler._max_date.valueOf())d=scheduler._max_date;var i=d-scheduler._min_date_timeline;
-if(i<0)k=0;else{var g=Math.round(i/(c*scheduler._cols[0]));if(g>scheduler._cols.length)g=scheduler._cols.length;for(var e=0;ed.start_date?1:-1});for(var l=[],d=0;dm.start_date;)n++;l[n]=m;o+=scheduler.render_timeline_event.call(this,m,n)}}if(this.fit_events){var w=this._events_height[this.y_unit[e].key]||0;h.height=w>h.height?w:h.height;h.style_height="height:"+
-h.height+"px;"}b+="
"),
- templateCss:dhx.Template(""),
- templateColor:dhx.Template("#color#"),
- templateTextColor:dhx.Template("#textColor#"),
- padding:2
- },
- _prepareEvents:function(){
- var evs = this.data.getRange();
- var stack = [];
- var ev,i,j,k,_is_sorder,_max_sorder,_sorder_set;
- for(i=0; i< evs.length;i++){
- ev=evs[i];
- ev.$inner=false;
- while (stack.length && stack[stack.length-1].end_date.valueOf()<=ev.start_date.valueOf()){
- stack.splice(stack.length-1,1);
- }
- _sorder_set = false;
-
- for(j=0;j< stack.length;j++){
- if(stack[j].end_date.valueOf()<=ev.start_date.valueOf()){
- _sorder_set = true;
- ev.$sorder=stack[j].$sorder;
- stack.splice(j,1);
- ev.$inner=true;
- break;
- }
- }
-
- if (stack.length) stack[stack.length-1].$inner=true;
-
- if(!_sorder_set){
- if(stack.length){
- if(stack.length<=stack[stack.length-1].$sorder){
- if(!stack[stack.length-1].$sorder)
- ev.$sorder = 0;
- else
- for(j=0;j_max_sorder)
- _max_sorder = stack[j].$sorder;
- ev.$sorder = _max_sorder+1;
- ev.$inner = false;
- }
- }
- else
- ev.$sorder = 0;
- }
- stack.push(ev);
- if (stack.length>(stack.max_count||0)) stack.max_count=stack.length;
- }
-
- for (var i=0; i < evs.length; i++){
- evs[i].$count=stack.max_count;
- this._setPosition(evs[i]);
- }
- },
- _setPosition:function(ev){
-
- var date = this.config.date.getValue?this.config.date.getValue():this.config.date;
-
- var start = dhx.Date.copy(ev.start_date);
- var end = dhx.Date.copy(ev.end_date);
- var sh = start.getHours();
- var eh = end.getHours();
- if(dhx.Date.datePart(start).valueOf()>dhx.Date.datePart(end).valueOf()){
- end = start;
- }
-
- if(dhx.Date.datePart(start).valueOf()dhx.Date.datePart(date).valueOf()){
- end = dhx.Date.datePart(date);
- end.setMinutes(0);
- end.setHours(this.config.lastHour);
- }
- if (sh < this.config.firstHour || eh >= this.config.lastHour){
- if (sh < this.config.firstHour){
- end.setHours(this.config.firstHour);
- ev.start_date.setMinutes(0);
- }
- if (eh >= this.config.lastHour){
- end.setMinutes(0);
- end.setHours(this.config.lastHour);
- }
- }
- var temp_width = Math.floor((this._content_width-this.config.timeScaleWidth-this.config.eventOffset-8)/ev.$count);
- ev.$left=ev.$sorder*(temp_width)+this.config.timeScaleWidth+this.config.eventOffset;
- if (!ev.$inner) temp_width=temp_width*(ev.$count-ev.$sorder);
- ev.$width = temp_width-this.config.eventOffset-this.type.padding*2;
-
- var sm = start.getHours()*60+start.getMinutes();
- var em = (end.getHours()*60+end.getMinutes())||(this.config.lastHour*60);
- ev.$top = Math.round((sm-this.config.firstHour/60)*(this.config.timeScaleHeight+1)/60); //42px/hour
- ev.$height = Math.max(10,(em-sm)*(this.config.timeScaleHeight+1)/60-2)-this.type.padding*2;
- }
-}, dhx.MouseEvents, dhx.SelectionModel, dhx.Scrollable, dhx.RenderStack, dhx.DataLoader, dhx.ui.view, dhx.EventSystem, dhx.Settings);
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/dhtmlxcommon.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/dhtmlxcommon.js
deleted file mode 100644
index ce3c3891f0f..00000000000
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/dhtmlxcommon.js
+++ /dev/null
@@ -1,914 +0,0 @@
-/*
-This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
-*/
-dhtmlx=function(obj){
- for (var a in obj) dhtmlx[a]=obj[a];
- return dhtmlx; //simple singleton
-};
-dhtmlx.extend_api=function(name,map,ext){
- var t = window[name];
- if (!t) return; //component not defined
- window[name]=function(obj){
- if (obj && typeof obj == "object" && !obj.tagName && !(obj instanceof Array)){
- var that = t.apply(this,(map._init?map._init(obj):arguments));
- //global settings
- for (var a in dhtmlx)
- if (map[a]) this[map[a]](dhtmlx[a]);
- //local settings
- for (var a in obj){
- if (map[a]) this[map[a]](obj[a]);
- else if (a.indexOf("on")==0){
- this.attachEvent(a,obj[a]);
- }
- }
- } else
- var that = t.apply(this,arguments);
- if (map._patch) map._patch(this);
- return that||this;
- };
- window[name].prototype=t.prototype;
- if (ext)
- dhtmlXHeir(window[name].prototype,ext);
-};
-
-dhtmlxAjax={
- get:function(url,callback){
- var t=new dtmlXMLLoaderObject(true);
- t.async=(arguments.length<3);
- t.waitCall=callback;
- t.loadXML(url)
- return t;
- },
- post:function(url,post,callback){
- var t=new dtmlXMLLoaderObject(true);
- t.async=(arguments.length<4);
- t.waitCall=callback;
- t.loadXML(url,true,post)
- return t;
- },
- getSync:function(url){
- return this.get(url,null,true)
- },
- postSync:function(url,post){
- return this.post(url,post,null,true);
- }
-}
-
-/**
- * @desc: xmlLoader object
- * @type: private
- * @param: funcObject - xml parser function
- * @param: object - jsControl object
- * @param: async - sync/async mode (async by default)
- * @param: rSeed - enable/disable random seed ( prevent IE caching)
- * @topic: 0
- */
-function dtmlXMLLoaderObject(funcObject, dhtmlObject, async, rSeed){
- this.xmlDoc="";
-
- if (typeof (async) != "undefined")
- this.async=async;
- else
- this.async=true;
-
- this.onloadAction=funcObject||null;
- this.mainObject=dhtmlObject||null;
- this.waitCall=null;
- this.rSeed=rSeed||false;
- return this;
-};
-/**
- * @desc: xml loading handler
- * @type: private
- * @param: dtmlObject - xmlLoader object
- * @topic: 0
- */
-dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){
- var once = true;
- this.check=function (){
- if ((dhtmlObject)&&(dhtmlObject.onloadAction != null)){
- if ((!dhtmlObject.xmlDoc.readyState)||(dhtmlObject.xmlDoc.readyState == 4)){
- if (!once)
- return;
-
- once=false; //IE 5 fix
- if (typeof dhtmlObject.onloadAction == "function")
- dhtmlObject.onloadAction(dhtmlObject.mainObject, null, null, null, dhtmlObject);
-
- if (dhtmlObject.waitCall){
- dhtmlObject.waitCall.call(this,dhtmlObject);
- dhtmlObject.waitCall=null;
- }
- }
- }
- };
- return this.check;
-};
-
-/**
- * @desc: return XML top node
- * @param: tagName - top XML node tag name (not used in IE, required for Safari and Mozilla)
- * @type: private
- * @returns: top XML node
- * @topic: 0
- */
-dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName, oldObj){
- if (this.xmlDoc.responseXML){
- var temp = this.xmlDoc.responseXML.getElementsByTagName(tagName);
- if(temp.length==0 && tagName.indexOf(":")!=-1)
- var temp = this.xmlDoc.responseXML.getElementsByTagName((tagName.split(":"))[1]);
- var z = temp[0];
- } else
- var z = this.xmlDoc.documentElement;
-
- if (z){
- this._retry=false;
- return z;
- }
-
- if ((_isIE)&&(!this._retry)){
- //fall back to MS.XMLDOM
- var xmlString = this.xmlDoc.responseText;
- var oldObj = this.xmlDoc;
- this._retry=true;
- this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
- this.xmlDoc.async=false;
- this.xmlDoc["loadXM"+"L"](xmlString);
-
- return this.getXMLTopNode(tagName, oldObj);
- }
- dhtmlxError.throwError("LoadXML", "Incorrect XML", [
- (oldObj||this.xmlDoc),
- this.mainObject
- ]);
-
- return document.createElement("DIV");
-};
-
-/**
- * @desc: load XML from string
- * @type: private
- * @param: xmlString - xml string
- * @topic: 0
- */
-dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){
- {
- try{
- var parser = new DOMParser();
- this.xmlDoc=parser.parseFromString(xmlString, "text/xml");
- }
- catch (e){
- this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
- this.xmlDoc.async=this.async;
- this.xmlDoc["loadXM"+"L"](xmlString);
- }
- }
-
- this.onloadAction(this.mainObject, null, null, null, this);
-
- if (this.waitCall){
- this.waitCall();
- this.waitCall=null;
- }
-}
-/**
- * @desc: load XML
- * @type: private
- * @param: filePath - xml file path
- * @param: postMode - send POST request
- * @param: postVars - list of vars for post request
- * @topic: 0
- */
-dtmlXMLLoaderObject.prototype.loadXML=function(filePath, postMode, postVars, rpc){
- if (this.rSeed)
- filePath+=((filePath.indexOf("?") != -1) ? "&" : "?")+"a_dhx_rSeed="+(new Date()).valueOf();
- this.filePath=filePath;
- if ((!_isIE)&&(window.XMLHttpRequest))
- this.xmlDoc=new XMLHttpRequest();
- else {
- this.xmlDoc=new ActiveXObject("Microsoft.XMLHTTP");
- }
-
- if (this.async)
- this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);
- this.xmlDoc.open(postMode ? "POST" : "GET", filePath, this.async);
-
- if (rpc){
- this.xmlDoc.setRequestHeader("User-Agent", "dhtmlxRPC v0.1 ("+navigator.userAgent+")");
- this.xmlDoc.setRequestHeader("Content-type", "text/xml");
- }
-
- else if (postMode)
- this.xmlDoc.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
-
- this.xmlDoc.setRequestHeader("X-Requested-With","XMLHttpRequest");
- this.xmlDoc.send(null||postVars);
-
- if (!this.async)
- (new this.waitLoadFunction(this))();
-};
-/**
- * @desc: destructor, cleans used memory
- * @type: private
- * @topic: 0
- */
-dtmlXMLLoaderObject.prototype.destructor=function(){
- this.onloadAction=null;
- this.mainObject=null;
- this.xmlDoc=null;
- return null;
-}
-
-dtmlXMLLoaderObject.prototype.xmlNodeToJSON = function(node){
- var t={};
- for (var i=0; i-1)
- _isChrome=true;
-
-if ((navigator.userAgent.indexOf('Safari') != -1)||(navigator.userAgent.indexOf('Konqueror') != -1)){
- var _KHTMLrv = parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf('Safari')+7, 5));
-
- if (_KHTMLrv > 525){ //mimic FF behavior for Safari 3.1+
- _isFF=true;
- var _FFrv = 1.9;
- } else
- _isKHTML=true;
-} else if (navigator.userAgent.indexOf('Opera') != -1){
- _isOpera=true;
- _OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf('Opera')+6, 3));
-}
-
-
-else if (navigator.appName.indexOf("Microsoft") != -1){
- _isIE=true;
- if (navigator.appVersion.indexOf("MSIE 8.0")!= -1 && document.compatMode != "BackCompat") _isIE=8;
-} else {
- _isFF=true;
- var _FFrv = parseFloat(navigator.userAgent.split("rv:")[1])
-}
-
-
-//multibrowser Xpath processor
-dtmlXMLLoaderObject.prototype.doXPath=function(xpathExp, docObj, namespace, result_type){
- if (_isKHTML || (!_isIE && !window.XPathResult))
- return this.doXPathOpera(xpathExp, docObj);
-
- if (_isIE){ //IE
- if (!docObj)
- if (!this.xmlDoc.nodeName)
- docObj=this.xmlDoc.responseXML
- else
- docObj=this.xmlDoc;
-
- if (!docObj)
- dhtmlxError.throwError("LoadXML", "Incorrect XML", [
- (docObj||this.xmlDoc),
- this.mainObject
- ]);
-
- if (namespace != null)
- docObj.setProperty("SelectionNamespaces", "xmlns:xsl='"+namespace+"'"); //
-
- if (result_type == 'single'){
- return docObj.selectSingleNode(xpathExp);
- }
- else {
- return docObj.selectNodes(xpathExp)||new Array(0);
- }
- } else { //Mozilla
- var nodeObj = docObj;
-
- if (!docObj){
- if (!this.xmlDoc.nodeName){
- docObj=this.xmlDoc.responseXML
- }
- else {
- docObj=this.xmlDoc;
- }
- }
-
- if (!docObj)
- dhtmlxError.throwError("LoadXML", "Incorrect XML", [
- (docObj||this.xmlDoc),
- this.mainObject
- ]);
-
- if (docObj.nodeName.indexOf("document") != -1){
- nodeObj=docObj;
- }
- else {
- nodeObj=docObj;
- docObj=docObj.ownerDocument;
- }
- var retType = XPathResult.ANY_TYPE;
-
- if (result_type == 'single')
- retType=XPathResult.FIRST_ORDERED_NODE_TYPE
- var rowsCol = new Array();
- var col = docObj.evaluate(xpathExp, nodeObj, function(pref){
- return namespace
- }, retType, null);
-
- if (retType == XPathResult.FIRST_ORDERED_NODE_TYPE){
- return col.singleNodeValue;
- }
- var thisColMemb = col.iterateNext();
-
- while (thisColMemb){
- rowsCol[rowsCol.length]=thisColMemb;
- thisColMemb=col.iterateNext();
- }
- return rowsCol;
- }
-}
-
-function _dhtmlxError(type, name, params){
- if (!this.catches)
- this.catches=new Array();
-
- return this;
-}
-
-_dhtmlxError.prototype.catchError=function(type, func_name){
- this.catches[type]=func_name;
-}
-_dhtmlxError.prototype.throwError=function(type, name, params){
- if (this.catches[type])
- return this.catches[type](type, name, params);
-
- if (this.catches["ALL"])
- return this.catches["ALL"](type, name, params);
-
- alert("Error type: "+arguments[0]+"\nDescription: "+arguments[1]);
- return null;
-}
-
-window.dhtmlxError=new _dhtmlxError();
-
-
-//opera fake, while 9.0 not released
-//multibrowser Xpath processor
-dtmlXMLLoaderObject.prototype.doXPathOpera=function(xpathExp, docObj){
- //this is fake for Opera
- var z = xpathExp.replace(/[\/]+/gi, "/").split('/');
- var obj = null;
- var i = 1;
-
- if (!z.length)
- return [];
-
- if (z[0] == ".")
- obj=[docObj]; else if (z[0] == ""){
- obj=(this.xmlDoc.responseXML||this.xmlDoc).getElementsByTagName(z[i].replace(/\[[^\]]*\]/g, ""));
- i++;
- } else
- return [];
-
- for (i; i < z.length; i++)obj=this._getAllNamedChilds(obj, z[i]);
-
- if (z[i-1].indexOf("[") != -1)
- obj=this._filterXPath(obj, z[i-1]);
- return obj;
-}
-
-dtmlXMLLoaderObject.prototype._filterXPath=function(a, b){
- var c = new Array();
- var b = b.replace(/[^\[]*\[\@/g, "").replace(/[\[\]\@]*/g, "");
-
- for (var i = 0; i < a.length; i++)
- if (a[i].getAttribute(b))
- c[c.length]=a[i];
-
- return c;
-}
-dtmlXMLLoaderObject.prototype._getAllNamedChilds=function(a, b){
- var c = new Array();
-
- if (_isKHTML)
- b=b.toUpperCase();
-
- for (var i = 0; i < a.length; i++)for (var j = 0; j < a[i].childNodes.length; j++){
- if (_isKHTML){
- if (a[i].childNodes[j].tagName&&a[i].childNodes[j].tagName.toUpperCase() == b)
- c[c.length]=a[i].childNodes[j];
- }
-
- else if (a[i].childNodes[j].tagName == b)
- c[c.length]=a[i].childNodes[j];
- }
-
- return c;
-}
-
-function dhtmlXHeir(a, b){
- for (var c in b)
- if (typeof (b[c]) == "function")
- a[c]=b[c];
- return a;
-}
-
-function dhtmlxEvent(el, event, handler){
- if (el.addEventListener)
- el.addEventListener(event, handler, false);
-
- else if (el.attachEvent)
- el.attachEvent("on"+event, handler);
-}
-
-//============= XSL Extension ===================================
-
-dtmlXMLLoaderObject.prototype.xslDoc=null;
-dtmlXMLLoaderObject.prototype.setXSLParamValue=function(paramName, paramValue, xslDoc){
- if (!xslDoc)
- xslDoc=this.xslDoc
-
- if (xslDoc.responseXML)
- xslDoc=xslDoc.responseXML;
- var item =
- this.doXPath("/xsl:stylesheet/xsl:variable[@name='"+paramName+"']", xslDoc,
- "http:/\/www.w3.org/1999/XSL/Transform", "single");
-
- if (item != null)
- item.firstChild.nodeValue=paramValue
-}
-dtmlXMLLoaderObject.prototype.doXSLTransToObject=function(xslDoc, xmlDoc){
- if (!xslDoc)
- xslDoc=this.xslDoc;
-
- if (xslDoc.responseXML)
- xslDoc=xslDoc.responseXML
-
- if (!xmlDoc)
- xmlDoc=this.xmlDoc;
-
- if (xmlDoc.responseXML)
- xmlDoc=xmlDoc.responseXML
-
- //MOzilla
- if (!_isIE){
- if (!this.XSLProcessor){
- this.XSLProcessor=new XSLTProcessor();
- this.XSLProcessor.importStylesheet(xslDoc);
- }
- var result = this.XSLProcessor.transformToDocument(xmlDoc);
- } else {
- var result = new ActiveXObject("Msxml2.DOMDocument.3.0");
- try{
- xmlDoc.transformNodeToObject(xslDoc, result);
- }catch(e){
- result = xmlDoc.transformNode(xslDoc);
- }
- }
- return result;
-}
-
-dtmlXMLLoaderObject.prototype.doXSLTransToString=function(xslDoc, xmlDoc){
- var res = this.doXSLTransToObject(xslDoc, xmlDoc);
- if(typeof(res)=="string")
- return res;
- return this.doSerialization(res);
-}
-
-dtmlXMLLoaderObject.prototype.doSerialization=function(xmlDoc){
- if (!xmlDoc)
- xmlDoc=this.xmlDoc;
- if (xmlDoc.responseXML)
- xmlDoc=xmlDoc.responseXML
- if (!_isIE){
- var xmlSerializer = new XMLSerializer();
- return xmlSerializer.serializeToString(xmlDoc);
- } else
- return xmlDoc.xml;
-}
-
-/**
-* @desc:
-* @type: private
-*/
-dhtmlxEventable=function(obj){
- obj.dhx_SeverCatcherPath="";
- obj.attachEvent=function(name, catcher, callObj){
- name='ev_'+name.toLowerCase();
- if (!this[name])
- this[name]=new this.eventCatcher(callObj||this);
-
- return(name+':'+this[name].addEvent(catcher)); //return ID (event name & event ID)
- }
- obj.callEvent=function(name, arg0){
- name='ev_'+name.toLowerCase();
- if (this[name])
- return this[name].apply(this, arg0);
- return true;
- }
- obj.checkEvent=function(name){
- return (!!this['ev_'+name.toLowerCase()])
- }
- obj.eventCatcher=function(obj){
- var dhx_catch = [];
- var z = function(){
- var res = true;
- for (var i = 0; i < dhx_catch.length; i++){
- if (dhx_catch[i] != null){
- var zr = dhx_catch[i].apply(obj, arguments);
- res=res&&zr;
- }
- }
- return res;
- }
- z.addEvent=function(ev){
- if (typeof (ev) != "function")
- ev=eval(ev);
- if (ev)
- return dhx_catch.push(ev)-1;
- return false;
- }
- z.removeEvent=function(id){
- dhx_catch[id]=null;
- }
- return z;
- }
- obj.detachEvent=function(id){
- if (id != false){
- var list = id.split(':'); //get EventName and ID
- this[list[0]].removeEvent(list[1]); //remove event
- }
- }
- obj.detachAllEvents = function(){
- for (var name in this){
- if (name.indexOf("ev_")==0)
- delete this[name];
- }
- }
-}
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/dhtmlxdataprocessor.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/dhtmlxdataprocessor.js
deleted file mode 100644
index 4a4143f947f..00000000000
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/dhtmlxdataprocessor.js
+++ /dev/null
@@ -1,587 +0,0 @@
-/*
-This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
-*/
-/**
- * @desc: constructor, data processor object
- * @param: serverProcessorURL - url used for update
- * @type: public
- */
-function dataProcessor(serverProcessorURL){
- this.serverProcessor = serverProcessorURL;
- this.action_param="!nativeeditor_status";
-
- this.object = null;
- this.updatedRows = []; //ids of updated rows
-
- this.autoUpdate = true;
- this.updateMode = "cell";
- this._tMode="GET";
- this.post_delim = "_";
-
- this._waitMode=0;
- this._in_progress={};//?
- this._invalid={};
- this.mandatoryFields=[];
- this.messages=[];
-
- this.styles={
- updated:"font-weight:bold;",
- inserted:"font-weight:bold;",
- deleted:"text-decoration : line-through;",
- invalid:"background-color:FFE0E0;",
- invalid_cell:"border-bottom:2px solid red;",
- error:"color:red;",
- clear:"font-weight:normal;text-decoration:none;"
- };
-
- this.enableUTFencoding(true);
- dhtmlxEventable(this);
-
- return this;
- }
-
-dataProcessor.prototype={
- /**
- * @desc: select GET or POST transaction model
- * @param: mode - GET/POST
- * @param: total - true/false - send records row by row or all at once (for grid only)
- * @type: public
- */
- setTransactionMode:function(mode,total){
- this._tMode=mode;
- this._tSend=total;
- },
- escape:function(data){
- if (this._utf)
- return encodeURIComponent(data);
- else
- return escape(data);
- },
- /**
- * @desc: allows to set escaping mode
- * @param: true - utf based escaping, simple - use current page encoding
- * @type: public
- */
- enableUTFencoding:function(mode){
- this._utf=convertStringToBoolean(mode);
- },
- /**
- * @desc: allows to define, which column may trigger update
- * @param: val - array or list of true/false values
- * @type: public
- */
- setDataColumns:function(val){
- this._columns=(typeof val == "string")?val.split(","):val;
- },
- /**
- * @desc: get state of updating
- * @returns: true - all in sync with server, false - some items not updated yet.
- * @type: public
- */
- getSyncState:function(){
- return !this.updatedRows.length;
- },
- /**
- * @desc: enable/disable named field for data syncing, will use column ids for grid
- * @param: mode - true/false
- * @type: public
- */
- enableDataNames:function(mode){
- this._endnm=convertStringToBoolean(mode);
- },
- /**
- * @desc: enable/disable mode , when only changed fields and row id send to the server side, instead of all fields in default mode
- * @param: mode - true/false
- * @type: public
- */
- enablePartialDataSend:function(mode){
- this._changed=convertStringToBoolean(mode);
- },
- /**
- * @desc: set if rows should be send to server automaticaly
- * @param: mode - "row" - based on row selection changed, "cell" - based on cell editing finished, "off" - manual data sending
- * @type: public
- */
- setUpdateMode:function(mode,dnd){
- this.autoUpdate = (mode=="cell");
- this.updateMode = mode;
- this.dnd=dnd;
- },
- ignore:function(code,master){
- this._silent_mode=true;
- code.call(master||window);
- this._silent_mode=false;
- },
- /**
- * @desc: mark row as updated/normal. check mandatory fields,initiate autoupdate (if turned on)
- * @param: rowId - id of row to set update-status for
- * @param: state - true for "updated", false for "not updated"
- * @param: mode - update mode name
- * @type: public
- */
- setUpdated:function(rowId,state,mode){
- if (this._silent_mode) return;
- var ind=this.findRow(rowId);
-
- mode=mode||"updated";
- var existing = this.obj.getUserData(rowId,this.action_param);
- if (existing && mode == "updated") mode=existing;
- if (state){
- this.set_invalid(rowId,false); //clear previous error flag
- this.updatedRows[ind]=rowId;
- this.obj.setUserData(rowId,this.action_param,mode);
- if (this._in_progress[rowId])
- this._in_progress[rowId]="wait";
- } else{
- if (!this.is_invalid(rowId)){
- this.updatedRows.splice(ind,1);
- this.obj.setUserData(rowId,this.action_param,"");
- }
- }
-
- //clear changed flag
- if (!state)
- this._clearUpdateFlag(rowId);
-
- this.markRow(rowId,state,mode);
- if (state && this.autoUpdate) this.sendData(rowId);
- },
- _clearUpdateFlag:function(id){},
- markRow:function(id,state,mode){
- var str="";
- var invalid=this.is_invalid(id);
- if (invalid){
- str=this.styles[invalid];
- state=true;
- }
- if (this.callEvent("onRowMark",[id,state,mode,invalid])){
- //default logic
- str=this.styles[state?mode:"clear"]+str;
-
- this.obj[this._methods[0]](id,str);
-
- if (invalid && invalid.details){
- str+=this.styles[invalid+"_cell"];
- for (var i=0; i < invalid.details.length; i++)
- if (invalid.details[i])
- this.obj[this._methods[1]](id,i,str);
- }
- }
- },
- getState:function(id){
- return this.obj.getUserData(id,this.action_param);
- },
- is_invalid:function(id){
- return this._invalid[id];
- },
- set_invalid:function(id,mode,details){
- if (details) mode={value:mode, details:details, toString:function(){ return this.value.toString(); }};
- this._invalid[id]=mode;
- },
- /**
- * @desc: check mandatory fields and varify values of cells, initiate update (if specified)
- * @param: rowId - id of row to set update-status for
- * @type: public
- */
- checkBeforeUpdate:function(rowId){
- return true;
- },
- /**
- * @desc: send row(s) values to server
- * @param: rowId - id of row which data to send. If not specified, then all "updated" rows will be send
- * @type: public
- */
- sendData:function(rowId){
- if (this._waitMode && (this.obj.mytype=="tree" || this.obj._h2)) return;
- if (this.obj.editStop) this.obj.editStop();
-
-
- if(typeof rowId == "undefined" || this._tSend) return this.sendAllData();
- if (this._in_progress[rowId]) return false;
-
- this.messages=[];
- if (!this.checkBeforeUpdate(rowId) && this.callEvent("onValidatationError",[rowId,this.messages])) return false;
- this._beforeSendData(this._getRowData(rowId),rowId);
- },
- _beforeSendData:function(data,rowId){
- if (!this.callEvent("onBeforeUpdate",[rowId,this.getState(rowId),data])) return false;
- this._sendData(data,rowId);
- },
- serialize:function(data, id){
- if (typeof data == "string")
- return data;
- if (typeof id != "undefined")
- return this.serialize_one(data,"");
- else{
- var stack = [];
- var keys = [];
- for (var key in data)
- if (data.hasOwnProperty(key)){
- stack.push(this.serialize_one(data[key],key+this.post_delim));
- keys.push(key);
- }
- stack.push("ids="+this.escape(keys.join(",")));
- return stack.join("&");
- }
- },
- serialize_one:function(data, pref){
- if (typeof data == "string")
- return data;
- var stack = [];
- for (var key in data)
- if (data.hasOwnProperty(key))
- stack.push(this.escape((pref||"")+key)+"="+this.escape(data[key]));
- return stack.join("&");
- },
- _sendData:function(a1,rowId){
- if (!a1) return; //nothing to send
- if (!this.callEvent("onBeforeDataSending",rowId?[rowId,this.getState(rowId),a1]:[null, null, a1])) return false;
-
- if (rowId)
- this._in_progress[rowId]=(new Date()).valueOf();
- var a2=new dtmlXMLLoaderObject(this.afterUpdate,this,true);
-
- var a3 = this.serverProcessor+(this._user?(getUrlSymbol(this.serverProcessor)+["dhx_user="+this._user,"dhx_version="+this.obj.getUserData(0,"version")].join("&")):"");
-
- if (this._tMode!="POST")
- a2.loadXML(a3+((a3.indexOf("?")!=-1)?"&":"?")+this.serialize(a1,rowId));
- else
- a2.loadXML(a3,true,this.serialize(a1,rowId));
-
- this._waitMode++;
- },
- sendAllData:function(){
- if (!this.updatedRows.length) return;
-
- this.messages=[]; var valid=true;
- for (var i=0; i[close] [clear] DataProcessor
Current state
Log:
";
- if (document.body) document.body.insertBefore(c,document.body.firstChild);
- else dhtmlxEvent(window,"load",function(){
- document.body.insertBefore(c,document.body.firstChild);
- })
- dhtmlxEvent(window,"dblclick",function(){
- c.style.display='';
- })
- return c;
-}
-
-dataProcessor.prototype._error=function(data){
- this._log(""+data+"");
-}
-dataProcessor.prototype._log=function(data){
- var div=document.createElement("DIV");
- div.innerHTML = data;
- var parent=this._console.childNodes[2];
- parent.appendChild(div);
- parent.scrollTop=parent.scrollHeight;
-
- if (window.console && window.console.log)
- window.console.log("DataProcessor :: "+data.replace(" "," ").replace("","").replace("",""));
-
-}
-dataProcessor.prototype._updateStat=function(data){
- var data=[" Current state"];
- for(var i=0;i")+"Current mode: "+this.updateMode;
-}
-dataProcessor.prototype.xml_analize=function(xml){
- if (_isFF){
- if (!xml.xmlDoc.responseXML)
- this._error("Not an XML, probably incorrect content type specified ( must be text/xml ), or some text output was started before XML data");
- else if (xml.xmlDoc.responseXML.firstChild.tagName=="parsererror")
- this._error(xml.xmlDoc.responseXML.firstChild.textContent);
- else return true;
- } else if (_isIE){
- if (xml.xmlDoc.responseXML.parseError.errorCode)
- this._error("XML error : "+xml.xmlDoc.responseXML.parseError.reason);
- else if (!xml.xmlDoc.responseXML.documentElement)
- this._error("Not an XML, probably incorrect content type specified ( must be text/xml ), or some text output was started before XML data");
- else return true;
- }
- return false;
-}
-
-dataProcessor.wrap=function(name,before,after){
- var d=dataProcessor.prototype;
- if (!d._wrap) d._wrap={};
- d._wrap[name]=d[name];
- d[name]=function(){
- if (before) before.apply(this,arguments);
- var res=d._wrap[name].apply(this,arguments);
- if (after) after.apply(this,[arguments,res]);
- return res;
- }
-};
-
-dataProcessor.wrap("setUpdated",function(rowId,state,mode){
- this._log(" row "+rowId+" "+(state?"marked":"unmarked")+" ["+(mode||"updated")+","+(this.is_invalid(rowId)||"valid")+"]");
-},function(){
- this._updateStat();
-});
-
-
-
-dataProcessor.wrap("sendData",function(rowId){
- if (rowId){
- this._log(" Initiating data sending for "+rowId+"");
- if (this.obj.mytype=="tree"){
- if (!this.obj._idpull[rowId])
- this._log(" Error! item with such ID not exists "+rowId+"");
- } else {
- if (this.rowsAr && !this.obj.rowsAr[rowId])
- this._log(" Error! row with such ID not exists "+rowId+"");
- }
- }
-},function(){
-
-});
-
-dataProcessor.wrap("sendAllData",function(){
- this._log(" Initiating data sending for all rows ");
-},function(){
-
-});
-dataProcessor.logSingle=function(data,id){
- var tdata = {};
- if (id)
- tdata[id] = data;
- else
- tdata = data;
-
- var url = [];
- for (var key in tdata) {
- url.push("");
- }
- return url.join("");
-}
-dataProcessor.wrap("_sendData",function(data,rowId){
- if (rowId)
- this._log(" Sending in one-by-one mode, current ID = "+rowId);
- else
- this._log(" Sending all data at once");
- this._log(" Server url: "+this.serverProcessor+" parameters");
- var url = [];
- this._log("
"+dataProcessor.logSingle(data,rowId)+"
");
-},function(){
-
-});
-
-
-dataProcessor.wrap("afterUpdate",function(that,b,c,d,xml){
- that._log(" Server response received details
';
+ if (ok)
+ inner += button(config.ok || "OK", true);
+ if (cancel)
+ inner += button(config.cancel || "Cancel", false);
+ if (config.buttons){
+ for (var i=0; i';
+ box.innerHTML = inner;
+
+ if (config.content){
+ var node = config.content;
+ if (typeof node == "string")
+ node = document.getElementById(node);
+ if (node.style.display == 'none')
+ node.style.display = "";
+ box.childNodes[config.title?1:0].appendChild(node);
+ }
+
+ box.onclick = function(e){
+ e = e ||event;
+ var source = e.target || e.srcElement;
+ if (!source.className) source = source.parentNode;
+ if (source.className.split(" ")[0] == "dhtmlx_popup_button"){
+ result = source.getAttribute("result");
+ result = (result == "true")||(result == "false"?false:result);
+ callback(config, result);
+ }
+ };
+ config.box = box;
+ if (ok||cancel)
+ _dhx_msg_cfg = config;
+
+ return box;
+ }
+ function _createBox(config, ok, cancel){
+ var box = config.tagName ? config : _boxStructure(config, ok, cancel);
+
+ if (!config.hidden)
+ modality(true);
+ document.body.appendChild(box);
+ var x = Math.abs(Math.floor(((window.innerWidth||document.documentElement.offsetWidth) - box.offsetWidth)/2));
+ var y = Math.abs(Math.floor(((window.innerHeight||document.documentElement.offsetHeight) - box.offsetHeight)/2));
+ if (config.position == "top")
+ box.style.top = "-3px";
+ else
+ box.style.top = y+'px';
+ box.style.left = x+'px';
+ //necessary for IE only
+ box.onkeydown = modal_key;
+
+ box.focus();
+ if (config.hidden)
+ dhtmlx.modalbox.hide(box);
+
+ return box;
+ }
+
+ function alertPopup(config){
+ return _createBox(config, true, false);
+ }
+ function confirmPopup(config){
+ return _createBox(config, true, true);
+ }
+ function boxPopup(config){
+ return _createBox(config);
+ }
+ function box_params(text, type, callback){
+ if (typeof text != "object"){
+ if (typeof type == "function"){
+ callback = type;
+ type = "";
+ }
+ text = {text:text, type:type, callback:callback };
+ }
+ return text;
+ }
+ function params(text, type, expire, id){
+ if (typeof text != "object")
+ text = {text:text, type:type, expire:expire, id:id};
+ text.id = text.id||t.uid();
+ text.expire = text.expire||t.expire;
+ return text;
+ }
+ dhtmlx.alert = function(){
+ text = box_params.apply(this, arguments);
+ text.type = text.type || "confirm";
+ return alertPopup(text);
+ };
+ dhtmlx.confirm = function(){
+ text = box_params.apply(this, arguments);
+ text.type = text.type || "alert";
+ return confirmPopup(text);
+ };
+ dhtmlx.modalbox = function(){
+ text = box_params.apply(this, arguments);
+ text.type = text.type || "alert";
+ return boxPopup(text);
+ };
+ dhtmlx.modalbox.hide = function(node){
+ while (node && node.getAttribute && !node.getAttribute("dhxbox"))
+ node = node.parentNode;
+ if (node){
+ node.parentNode.removeChild(node);
+ modality(false);
+ }
+ };
+ var t = dhtmlx.message = function(text, type, expire, id){
+ text = params.apply(this, arguments);
+ text.type = text.type||"info";
+
+ var subtype = text.type.split("-")[0];
+ switch (subtype){
+ case "alert":
+ return alertPopup(text);
+ case "confirm":
+ return confirmPopup(text);
+ case "modalbox":
+ return boxPopup(text);
+ default:
+ return info(text);
+ break;
+ }
+ };
+
+ t.seed = (new Date()).valueOf();
+ t.uid = function(){return t.seed++;};
+ t.expire = 4000;
+ t.keyboard = true;
+ t.position = "top";
+ t.pull = {};
+ t.timers = {};
+
+ t.hideAll = function(){
+ for (var key in t.pull)
+ t.hide(key);
+ };
+ t.hide = function(id){
+ var obj = t.pull[id];
+ if (obj && obj.parentNode){
+ window.setTimeout(function(){
+ obj.parentNode.removeChild(obj);
+ obj = null;
+ },2000);
+ obj.className+=" hidden";
+
+ if(t.timers[id])
+ window.clearTimeout(t.timers[id]);
+ delete t.pull[id];
+ }
+ };
+})();
/**
* @desc: constructor, data processor object
* @param: serverProcessorURL - url used for update
@@ -1134,6 +1417,8 @@ dataProcessor.prototype={
keys.push(key);
}
stack.push("ids="+this.escape(keys.join(",")));
+ if (dhtmlx.security_key)
+ stack.push("dhx_security="+dhtmlx.security_key);
return stack.join("&");
}
},
@@ -1153,7 +1438,7 @@ dataProcessor.prototype={
if (rowId)
this._in_progress[rowId]=(new Date()).valueOf();
var a2=new dtmlXMLLoaderObject(this.afterUpdate,this,true);
-
+
var a3 = this.serverProcessor+(this._user?(getUrlSymbol(this.serverProcessor)+["dhx_user="+this._user,"dhx_version="+this.obj.getUserData(0,"version")].join("&")):"");
if (this._tMode!="POST")
@@ -1497,171 +1782,6 @@ dataProcessor.prototype={
};
//(c)dhtmlx ltd. www.dhtmlx.com
-dataProcessor.prototype._o_init = dataProcessor.prototype.init;
-dataProcessor.prototype.init=function(obj){
- this._console=this._console||this._createConsole();
- this.attachEvent("onValidatationError",function(rowId){
- this._log("Validation error for ID="+(rowId||"[multiple]"));
- return true;
- });
- return this._o_init(obj);
-}
-
-dataProcessor.prototype._createConsole=function(){
- var c=document.createElement("DIV");
- c.style.cssText='width:450px; height:420px; overflow:auto; position:absolute; z-index:99999; background-color:white; top:0px; right:0px; border:1px dashed black; font-family:Tahoma; Font-size:10pt;';
- c.innerHTML="
[close] [clear] DataProcessor
Current state
Log:
";
- if (document.body) document.body.insertBefore(c,document.body.firstChild);
- else dhtmlxEvent(window,"load",function(){
- document.body.insertBefore(c,document.body.firstChild);
- })
- dhtmlxEvent(window,"dblclick",function(){
- c.style.display='';
- })
- return c;
-}
-
-dataProcessor.prototype._error=function(data){
- this._log(""+data+"");
-}
-dataProcessor.prototype._log=function(data){
- var div=document.createElement("DIV");
- div.innerHTML = data;
- var parent=this._console.childNodes[2];
- parent.appendChild(div);
- parent.scrollTop=parent.scrollHeight;
-
- if (window.console && window.console.log)
- window.console.log("DataProcessor :: "+data.replace(" "," ").replace("","").replace("",""));
-
-}
-dataProcessor.prototype._updateStat=function(data){
- var data=[" Current state"];
- for(var i=0;i")+"Current mode: "+this.updateMode;
-}
-dataProcessor.prototype.xml_analize=function(xml){
- if (_isFF){
- if (!xml.xmlDoc.responseXML)
- this._error("Not an XML, probably incorrect content type specified ( must be text/xml ), or some text output was started before XML data");
- else if (xml.xmlDoc.responseXML.firstChild.tagName=="parsererror")
- this._error(xml.xmlDoc.responseXML.firstChild.textContent);
- else return true;
- } else if (_isIE){
- if (xml.xmlDoc.responseXML.parseError.errorCode)
- this._error("XML error : "+xml.xmlDoc.responseXML.parseError.reason);
- else if (!xml.xmlDoc.responseXML.documentElement)
- this._error("Not an XML, probably incorrect content type specified ( must be text/xml ), or some text output was started before XML data");
- else return true;
- }
- return false;
-}
-
-dataProcessor.wrap=function(name,before,after){
- var d=dataProcessor.prototype;
- if (!d._wrap) d._wrap={};
- d._wrap[name]=d[name];
- d[name]=function(){
- if (before) before.apply(this,arguments);
- var res=d._wrap[name].apply(this,arguments);
- if (after) after.apply(this,[arguments,res]);
- return res;
- }
-};
-
-dataProcessor.wrap("setUpdated",function(rowId,state,mode){
- this._log(" row "+rowId+" "+(state?"marked":"unmarked")+" ["+(mode||"updated")+","+(this.is_invalid(rowId)||"valid")+"]");
-},function(){
- this._updateStat();
-});
-
-
-
-dataProcessor.wrap("sendData",function(rowId){
- if (rowId){
- this._log(" Initiating data sending for "+rowId+"");
- if (this.obj.mytype=="tree"){
- if (!this.obj._idpull[rowId])
- this._log(" Error! item with such ID not exists "+rowId+"");
- } else {
- if (this.rowsAr && !this.obj.rowsAr[rowId])
- this._log(" Error! row with such ID not exists "+rowId+"");
- }
- }
-},function(){
-
-});
-
-dataProcessor.wrap("sendAllData",function(){
- this._log(" Initiating data sending for all rows ");
-},function(){
-
-});
-dataProcessor.logSingle=function(data,id){
- var tdata = {};
- if (id)
- tdata[id] = data;
- else
- tdata = data;
-
- var url = [];
- for (var key in tdata) {
- url.push("");
- }
- return url.join("");
-}
-dataProcessor.wrap("_sendData",function(data,rowId){
- if (rowId)
- this._log(" Sending in one-by-one mode, current ID = "+rowId);
- else
- this._log(" Sending all data at once");
- this._log(" Server url: "+this.serverProcessor+" parameters");
- var url = [];
- this._log("
"+dataProcessor.logSingle(data,rowId)+"
");
-},function(){
-
-});
-
-
-dataProcessor.wrap("afterUpdate",function(that,b,c,d,xml){
- that._log(" Server response received details
");
- if (!that.xml_analize(xml)) return;
- var atag=xml.doXPath("//data/action");
- if (!atag){
- that._log(" No actions found");
- var atag=xml.getXMLTopNode("data");
- if (!atag) that._log(" XML not valid");
- else that._log(" Incorrect content type - need to be text/xml");
- }
-},function(){
-
-});
-
-dataProcessor.wrap("afterUpdateCallback",function(sid,tid,action){
- if (this.obj.mytype=="tree"){
- if (!this.obj._idpull[sid]) this._log("Incorrect SID, item with such ID not exists in grid");
- } else {
- if (this.obj.rowsAr && !this.obj.rowsAr[sid]) this._log("Incorrect SID, row with such ID not exists in grid");
- }
- this._log(" Action: "+action+" SID:"+sid+" TID:"+tid);
-},function(){
-
-});
-
-
-
-
-
-
-
/*
dhx_sort[index]=direction
dhx_filter[index]=mask
@@ -1798,8 +1918,9 @@ dhtmlxError.catchError("LoadXML",function(a,b,c){
}
});
-window.dhtmlXScheduler=window.scheduler={version:3.0};
+window.dhtmlXScheduler = window.scheduler = { version: "3.5.0" };
dhtmlxEventable(scheduler);
+
scheduler.init=function(id,date,mode){
date=date||(new Date());
mode=mode||"week";
@@ -1818,8 +1939,10 @@ scheduler.init=function(id,date,mode){
dhtmlxEvent(window,"resize",function(){
window.clearTimeout(scheduler._resize_timer);
scheduler._resize_timer=window.setTimeout(function(){
- if (scheduler.callEvent("onSchedulerResize",[]))
+ if (scheduler.callEvent("onSchedulerResize",[])) {
scheduler.update_view();
+ scheduler.callEvent("onAfterSchedulerResize", []);
+ }
}, 100);
});
this.set_sizes();
@@ -1837,7 +1960,8 @@ scheduler.xy={
menu_width:25,
margin_top:0,
margin_left:0,
- editor_width:140
+ editor_width:140,
+ lightbox_additional_height:50
};
scheduler.keys={
edit_save:13,
@@ -1873,6 +1997,7 @@ scheduler.get_elements=function(){
var els=this._obj.getElementsByTagName("DIV");
for (var i=0; i < els.length; i++){
var name=els[i].className;
+ if (name) name = name.split(" ")[0];
if (!this._els[name]) this._els[name]=[];
this._els[name].push(els[i]);
@@ -1898,10 +2023,15 @@ scheduler.set_actions=function(){
};
this._obj.ondblclick=function(e){
scheduler._on_dbl_click(e||event);
- }
+ };
+ this._obj.oncontextmenu = function(e) {
+ var ev = e||event;
+ var src = ev.target||ev.srcElement;
+ var returnValue = scheduler.callEvent("onContextMenu", [scheduler._locate_event(src), ev]);
+ return returnValue;
+ };
};
scheduler.select=function(id){
- if (this._table_view || !this.getEvent(id)._timed) return; //temporary block
if (this._select_id==id) return;
this.editStop(false);
this.unselect();
@@ -1922,19 +2052,28 @@ scheduler.getState=function(){
max_date: this._max_date,
editor_id: this._edit_id,
lightbox_id: this._lightbox_id,
- new_event: this._new_event
+ new_event: this._new_event,
+ select_id: this._select_id,
+ expanded: this.expanded,
+ drag_id: this._drag_id,
+ drag_mode: this._drag_mode
};
};
scheduler._click={
dhx_cal_data:function(e){
- //debugger;
var trg = e?e.target:event.srcElement;
var id = scheduler._locate_event(trg);
e = e || event;
- if ((id && !scheduler.callEvent("onClick",[id,e])) ||scheduler.config.readonly) return;
-
- if (id) {
+
+ if (!id) {
+ scheduler.callEvent("onEmptyClick",[scheduler.getActionData(e).date, e]);
+ } else {
+ if ( !scheduler.callEvent("onClick",[id,e]) || scheduler.config.readonly ) return;
+ }
+
+ if (id && scheduler.config.select) {
+
scheduler.select(id);
var mask = trg.className;
if (mask.indexOf("_icon")!=-1)
@@ -1958,13 +2097,30 @@ scheduler._click={
scheduler.setCurrentView(scheduler._date,mode);
},
buttons:{
- "delete":function(id){ var c=scheduler.locale.labels.confirm_deleting; if (!c||confirm(c)) scheduler.deleteEvent(id); },
+ "delete":function(id){
+ var c = scheduler.locale.labels.confirm_deleting;
+ scheduler._dhtmlx_confirm(c, scheduler.locale.labels.title_confirm_deleting, function(){ scheduler.deleteEvent(id) });
+ },
edit:function(id){ scheduler.edit(id); },
save:function(id){ scheduler.editStop(true); },
details:function(id){ scheduler.showLightbox(id); },
cancel:function(id){ scheduler.editStop(false); }
}
};
+scheduler._dhtmlx_confirm = function(message, title, callback) {
+ if (!message)
+ return callback();
+ var opts = { text: message };
+ if (title)
+ opts.title = title;
+ if (callback) {
+ opts.callback = function(result) {
+ if (result)
+ callback();
+ };
+ }
+ dhtmlx.confirm(opts);
+};
scheduler.addEventNow=function(start,end,e){
var base = {};
if (start && start.constructor.toString().match(/object/i) !== null){
@@ -1981,7 +2137,7 @@ scheduler.addEventNow=function(start,end,e){
start_date.setHours(start_hour);
start = start_date.valueOf();
}
- end = start+d;
+ end = start.valueOf()+d;
}
var end_date = new Date(end);
@@ -2012,29 +2168,36 @@ scheduler._on_dbl_click=function(e,src){
case "dhx_scale_holder_now":
case "dhx_month_body":
case "dhx_wa_day_data":
+ case "dhx_marked_timespan":
if (!scheduler.config.dblclick_create) break;
- var pos=this._mouse_coords(e);
- var start=this._min_date.valueOf()+(pos.y*this.config.time_step+(this._table_view?0:pos.x)*24*60)*60000;
- start = this._correct_shift(start);
- this.addEventNow(start,null,e);
+ this.addEventNow(this.getActionData(e).date,null,e);
break;
- case "dhx_body":
+ case "dhx_cal_event":
case "dhx_wa_ev_body":
+ case "dhx_agenda_line":
+ case "dhx_grid_event":
case "dhx_cal_event_line":
case "dhx_cal_event_clear":
var id = this._locate_event(src);
if (!this.callEvent("onDblClick",[id,e])) return;
- if (this.config.details_on_dblclick || this._table_view || !this.getEvent(id)._timed)
+ if (this.config.details_on_dblclick || this._table_view || !this.getEvent(id)._timed || !this.config.select)
this.showLightbox(id);
else
this.edit(id);
break;
- case "":
- if (src.parentNode)
- return scheduler._on_dbl_click(e,src.parentNode);
+ case "dhx_time_block":
+ case "dhx_cal_container":
+ return;
+ break;
default:
var t = this["dblclick_"+name];
- if (t) t.call(this,e);
+ if (t) {
+ t.call(this,e);
+ }
+ else {
+ if (src.parentNode && src != this)
+ return scheduler._on_dbl_click(e,src.parentNode);
+ }
break;
}
};
@@ -2060,25 +2223,31 @@ scheduler._mouse_coords=function(ev){
return handler.call(this,pos);
//transform to date
- if (!this._table_view){
- pos.x=Math.max(0,Math.ceil(pos.x/this._cols[0])-1);
+ if (!this._table_view) {
+ pos.x=Math.min(this._cols.length-1, Math.max(0,Math.ceil(pos.x/this._cols[0])-1));
pos.y=Math.max(0,Math.ceil(pos.y*60/(this.config.time_step*this.config.hour_size_px))-1)+this.config.first_hour*(60/this.config.time_step);
} else {
+ if (!this._cols || !this._colsS) // agenda/map views
+ return pos;
var dy=0;
for (dy=1; dy < this._colsS.heights.length; dy++)
if (this._colsS.heights[dy]>pos.y) break;
- pos.y=(Math.max(0,Math.ceil(pos.x/this._cols[0])-1)+Math.max(0,dy-1)*7)*24*60/this.config.time_step;
+ pos.y=Math.ceil( (Math.max(0, pos.x/this._cols[0])+Math.max(0,dy-1)*7)*24*60/this.config.time_step );
+
+ if (scheduler._drag_mode || this._mode == "month")
+ pos.y=(Math.max(0,Math.ceil(pos.x/this._cols[0])-1)+Math.max(0,dy-1)*7)*24*60/this.config.time_step;
+
pos.x=0;
}
return pos;
-}
+};
scheduler._close_not_saved=function(){
if (new Date().valueOf()-(scheduler._new_event||0) > 500 && scheduler._edit_id){
var c=scheduler.locale.labels.confirm_closing;
- if (!c || confirm(c))
- scheduler.editStop(scheduler.config.positive_closing);
+
+ scheduler._dhtmlx_confirm(c, scheduler.locale.labels.title_confirm_closing, function() { scheduler.editStop(scheduler.config.positive_closing); });
}
};
scheduler._correct_shift=function(start, back){
@@ -2088,7 +2257,7 @@ scheduler._on_mouse_move=function(e){
if (this._drag_mode){
var pos=this._mouse_coords(e);
if (!this._drag_pos || pos.custom || this._drag_pos.x!=pos.x || this._drag_pos.y!=pos.y){
-
+ var start, end;
if (this._edit_id!=this._drag_id)
this._close_not_saved();
@@ -2098,14 +2267,16 @@ scheduler._on_mouse_move=function(e){
this._close_not_saved();
this._loading=true; //will be ignored by dataprocessor
- var start=this._min_date.valueOf()+(pos.y*this.config.time_step+(this._table_view?0:pos.x)*24*60)*60000;
- //if (this._mode != "week" && this._mode != "day")
- start = this._correct_shift(start);
-
+ start = this._get_date_from_pos(pos).valueOf();
+
+ var res = this.callEvent("onBeforeEventCreated", [e]);
+ if (!res)
+ return;
+
if (!this._drag_start){
this._drag_start=start; return;
}
- var end = start;
+ end = start;
if (end==this._drag_start) return;
this._drag_id=this.uid();
@@ -2118,26 +2289,31 @@ scheduler._on_mouse_move=function(e){
}
var ev=this.getEvent(this._drag_id);
- var start,end;
+
if (this._drag_mode=="move"){
start = this._min_date.valueOf()+(pos.y*this.config.time_step+pos.x*24*60)*60000;
if (!pos.custom && this._table_view) start+=this.date.time_part(ev.start_date)*1000;
start = this._correct_shift(start);
end = ev.end_date.valueOf()-(ev.start_date.valueOf()-start);
- } else {
+ } else { // resize
start = ev.start_date.valueOf();
+ end = ev.end_date.valueOf();
if (this._table_view) {
- end = this._min_date.valueOf()+pos.y*this.config.time_step*60000 + (pos.custom?0:24*60*60000);
+ var resize_date = this._min_date.valueOf()+pos.y*this.config.time_step*60000 + (pos.custom?0:24*60*60000);
if (this._mode == "month")
- end = this._correct_shift(end, false);
- }
- else{
+ resize_date = this._correct_shift(resize_date, false);
+
+ if (pos.resize_from_start)
+ start = resize_date;
+ else
+ end = resize_date;
+ } else {
end = this.date.date_part(new Date(ev.end_date)).valueOf()+pos.y*this.config.time_step*60000;
this._els["dhx_cal_data"][0].style.cursor="s-resize";
if (this._mode == "week" || this._mode == "day")
end = this._correct_shift(end);
}
- if (this._drag_mode == "new-size"){
+ if (this._drag_mode == "new-size") {
if (end <= this._drag_start){
var shift = pos.shift||((this._table_view && !pos.custom)?24*60*60000:0);
start = end-(pos.shift?0:shift);
@@ -2145,25 +2321,30 @@ scheduler._on_mouse_move=function(e){
} else {
start = this._drag_start;
}
-
- } else if (end<=start)
- end=start+this.config.time_step*60000;
+ } else {
+ if (end<=start)
+ end=start+this.config.time_step*60000;
+ }
}
var new_end = new Date(end-1);
var new_start = new Date(start);
//prevent out-of-borders situation for day|week view
- if ( this._table_view || (new_end.getDate()==new_start.getDate() && new_end.getHours() this._min_date && now.getHours() >= this.config.first_hour && now.getHours()";
for (var j=0; j<7; j++){
@@ -2468,6 +2657,7 @@ scheduler._reset_month_scale=function(b,dd,sd){
cls='dhx_now';
html+=" class='"+cls+" "+this.templates.month_date_class(sd,cd)+"' ";
html+=">
"+this.templates.month_day(sd)+"
";
+ rendered_dates.push(sd);
sd=this.date.add(sd,1,"day");
}
html+="";
@@ -2477,7 +2667,20 @@ scheduler._reset_month_scale=function(b,dd,sd){
html+="";
this._max_date=sd;
- b.innerHTML=html;
+ b.innerHTML=html;
+
+ this._scales = {};
+ var divs = b.getElementsByTagName('div');
+ for (var i=0; i=0; i--)
- if (this._rendered[i].getAttribute("event_id")==id)
- method(this._rendered[i],i);
+scheduler.for_rendered = function(id, method) {
+ for (var i = this._rendered.length - 1; i >= 0; i--)
+ if (this._rendered[i].getAttribute("event_id") == id)
+ method(this._rendered[i], i);
};
-scheduler.changeEventId=function(id,new_id){
+scheduler.changeEventId = function(id, new_id) {
if (id == new_id) return;
- var ev=this._events[id];
- if (ev){
- ev.id=new_id;
- this._events[new_id]=ev;
+ var ev = this._events[id];
+ if (ev) {
+ ev.id = new_id;
+ this._events[new_id] = ev;
delete this._events[id];
}
- this.for_rendered(id,function(r){
- r.setAttribute("event_id",new_id);
+ this.for_rendered(id, function(r) {
+ r.setAttribute("event_id", new_id);
});
- if (this._select_id==id) this._select_id=new_id;
- if (this._edit_id==id) this._edit_id=new_id;
- //if (this._drag_id==id) this._drag_id=new_id;
- this.callEvent("onEventIdChange",[id,new_id]);
+ if (this._select_id == id) this._select_id = new_id;
+ if (this._edit_id == id) this._edit_id = new_id;
+ //if (this._drag_id==id) this._drag_id=new_id;
+ this.callEvent("onEventIdChange", [id, new_id]);
};
-(function(){
- var attrs=["text","Text","start_date","StartDate","end_date","EndDate"];
- var create_getter=function(name){
- return function(id){ return (scheduler.getEvent(id))[name]; };
+(function() {
+ var attrs = ["text", "Text", "start_date", "StartDate", "end_date", "EndDate"];
+ var create_getter = function(name) {
+ return function(id) { return (scheduler.getEvent(id))[name]; };
};
- var create_setter=function(name){
- return function(id,value){
- var ev=scheduler.getEvent(id); ev[name]=value;
- ev._changed=true;
- ev._timed=this.is_one_day_event(ev);
- scheduler.event_updated(ev,true);
+ var create_setter = function(name) {
+ return function(id, value) {
+ var ev = scheduler.getEvent(id);
+ ev[name] = value;
+ ev._changed = true;
+ ev._timed = this.is_one_day_event(ev);
+ scheduler.event_updated(ev, true);
};
};
- for (var i=0; i this._colsS.height-22){ // 22 - height of cell's header
+ if ((h[i]) * hb > this._colsS.height - 22) { // 22 - height of cell's header
//we have overflow, update heights
var cells = evl.rows[i].cells;
- for (var j=0; j < cells.length; j++) {
- cells[j].childNodes[1].style.height = h[i]*hb+"px";
+ for (var j = 0; j < cells.length; j++) {
+ cells[j].childNodes[1].style.height = h[i] * hb + "px";
}
- h[i]=(h[i-1]||0)+cells[0].offsetHeight;
+ h[i] = (h[i - 1] || 0) + cells[0].offsetHeight;
}
- h[i]=(h[i-1]||0)+evl.rows[i].cells[0].offsetHeight;
+ h[i] = (h[i - 1] || 0) + evl.rows[i].cells[0].offsetHeight;
}
h.unshift(0);
- if (evl.parentNode.offsetHeightb.id?1:-1;
- return a.start_date>b.start_date?1:-1;
- });
- var days=[]; //events by weeks
- var evs_originals = [];
- for (var i=0; i < evs.length; i++) {
- var ev=evs[i];
-
- //check scale overflow
- var sh = ev.start_date.getHours();
- var eh = ev.end_date.getHours();
-
- ev._sday=this._get_event_sday(ev);
- if (!days[ev._sday]) days[ev._sday]=[];
-
- if (!hold){
- ev._inner=false;
-
- var stack=days[ev._sday];
- while (stack.length && stack[stack.length-1].end_date<=ev.start_date)
- stack.splice(stack.length-1,1);
-
- var sorderSet = false;
- for(var j=0; j _max_sorder)
- _max_sorder = stack[j]._sorder;
- ev._sorder = _max_sorder + 1;
- ev._inner = false;
- }
-
- }
- else
- ev._sorder = 0;
- }
-
- stack.push(ev);
-
- if (stack.length>(stack.max_count||0)) {
- stack.max_count=stack.length;
- ev._count=stack.length;
- }
- else {
- ev._count=(ev._count)?ev._count:1;
- }
+scheduler._get_event_mapped_end_date = function(ev) {
+ var end_date = ev.end_date;
+ if (this.config.separate_short_events) {
+ var ev_duration = (ev.end_date - ev.start_date) / 60000; // minutes
+ if (ev_duration < this._min_mapped_duration) {
+ end_date = this.date.add(end_date, this._min_mapped_duration - ev_duration, "minute");
}
-
- if (sh < this.config.first_hour || eh >= this.config.last_hour){
+ }
+ return end_date;
+};
+scheduler._pre_render_events_line = function(evs, hold) {
+ evs.sort(function(a, b) {
+ if (a.start_date.valueOf() == b.start_date.valueOf())
+ return a.id > b.id ? 1 : -1;
+ return a.start_date > b.start_date ? 1 : -1;
+ });
+ var days = []; //events by weeks
+ var evs_originals = [];
+
+ this._min_mapped_duration = Math.ceil(this.xy.min_event_height * 60 / this.config.hour_size_px); // values could change along the way
+
+ for (var i = 0; i < evs.length; i++) {
+ var ev = evs[i];
+
+ //check date overflow
+ var sd = ev.start_date;
+ var ed = ev.end_date;
+ //check scale overflow
+ var sh = sd.getHours();
+ var eh = ed.getHours();
+
+ ev._sday = this._get_event_sday(ev); // sday based on event start_date
+ if (!days[ev._sday]) days[ev._sday] = [];
+
+ if (!hold) {
+ ev._inner = false;
+
+ var stack = days[ev._sday];
+
+ while (stack.length) {
+ var t_ev = stack[stack.length - 1];
+ var t_end_date = this._get_event_mapped_end_date(t_ev);
+ if (t_end_date.valueOf() <= ev.start_date.valueOf()) {
+ stack.splice(stack.length - 1, 1);
+ } else {
+ break;
+ }
+ }
+
+ var sorderSet = false;
+ for (var j = 0; j < stack.length; j++) {
+ var t_ev = stack[j];
+ var t_end_date = this._get_event_mapped_end_date(t_ev);
+ if (t_end_date.valueOf() <= ev.start_date.valueOf()) {
+ sorderSet = true;
+ ev._sorder = t_ev._sorder;
+ stack.splice(j, 1);
+ ev._inner = true;
+ break;
+ }
+ }
+
+ if (stack.length)
+ stack[stack.length - 1]._inner = true;
+
+ if (!sorderSet) {
+ if (stack.length) {
+ if (stack.length <= stack[stack.length - 1]._sorder) {
+ if (!stack[stack.length - 1]._sorder)
+ ev._sorder = 0;
+ else
+ for (j = 0; j < stack.length; j++) {
+ var _is_sorder = false;
+ for (var k = 0; k < stack.length; k++) {
+ if (stack[k]._sorder == j) {
+ _is_sorder = true;
+ break;
+ }
+ }
+ if (!_is_sorder) {
+ ev._sorder = j;
+ break;
+ }
+ }
+ ev._inner = true;
+ } else {
+ var _max_sorder = stack[0]._sorder;
+ for (j = 1; j < stack.length; j++) {
+ if (stack[j]._sorder > _max_sorder)
+ _max_sorder = stack[j]._sorder;
+ }
+ ev._sorder = _max_sorder + 1;
+ ev._inner = false;
+ }
+
+ } else
+ ev._sorder = 0;
+ }
+
+ stack.push(ev);
+
+ if (stack.length > (stack.max_count || 0)) {
+ stack.max_count = stack.length;
+ ev._count = stack.length;
+ } else {
+ ev._count = (ev._count) ? ev._count : 1;
+ }
+ }
+
+ if (sh < this.config.first_hour || eh >= this.config.last_hour) {
+ // Need to create copy of event as we will be changing it's start/end date
+ // e.g. first_hour = 11 and event.start_date hours = 9. Need to preserve that info
evs_originals.push(ev);
- evs[i]=ev=this._copy_event(ev);
- if (sh < this.config.first_hour){
+ evs[i] = ev = this._copy_event(ev);
+
+ if (sh < this.config.first_hour) {
ev.start_date.setHours(this.config.first_hour);
ev.start_date.setMinutes(0);
}
- if (eh >= this.config.last_hour){
+ if (eh >= this.config.last_hour) {
ev.end_date.setMinutes(0);
ev.end_date.setHours(this.config.last_hour);
}
- if (ev.start_date>ev.end_date || sh==this.config.last_hour) {
- evs.splice(i,1); i--; continue;
+
+ if (ev.start_date > ev.end_date || sh == this.config.last_hour) {
+ evs.splice(i, 1);
+ i--;
+ continue;
}
}
}
- if (!hold){
- for (var i=0; i < evs.length; i++) {
- evs[i]._count = days[evs[i]._sday].max_count;
- }
- for (var i=0; i < evs_originals.length; i++)
- evs_originals[i]._count=days[evs_originals[i]._sday].max_count;
+ if (!hold) {
+ for (var i = 0; i < evs.length; i++) {
+ evs[i]._count = days[evs[i]._sday].max_count;
+ }
+ for (var i = 0; i < evs_originals.length; i++)
+ evs_originals[i]._count = days[evs_originals[i]._sday].max_count;
}
-
+
return evs;
};
-scheduler._time_order=function(evs){
- evs.sort(function(a,b){
- if (a.start_date.valueOf()==b.start_date.valueOf()){
+scheduler._time_order = function(evs) {
+ evs.sort(function(a, b) {
+ if (a.start_date.valueOf() == b.start_date.valueOf()) {
if (a._timed && !b._timed) return 1;
if (!a._timed && b._timed) return -1;
- return a.id>b.id?1:-1;
+ return a.id > b.id ? 1 : -1;
}
- return a.start_date>b.start_date?1:-1;
+ return a.start_date > b.start_date ? 1 : -1;
});
};
-scheduler._pre_render_events_table=function(evs,hold){ // max - max height of week slot
+scheduler._pre_render_events_table = function(evs, hold) { // max - max height of week slot
this._time_order(evs);
-
- var out=[];
- var weeks=[[],[],[],[],[],[],[]]; //events by weeks
+ var out = [];
+ var weeks = [
+ [],
+ [],
+ [],
+ [],
+ [],
+ [],
+ []
+ ]; //events by weeks
var max = this._colsS.heights;
var start_date;
var cols = this._cols.length;
-
- for (var i=0; i < evs.length; i++) {
- var ev=evs[i];
- var sd = (start_date||ev.start_date);
+ var chunks_info = {};
+
+ for (var i = 0; i < evs.length; i++) {
+ var ev = evs[i];
+ var id = ev.id;
+ if (!chunks_info[id]) {
+ chunks_info[id] = {
+ first_chunk: true,
+ last_chunk: true
+ };
+ }
+ var chunk_info = chunks_info[id];
+ var sd = (start_date || ev.start_date);
var ed = ev.end_date;
//trim events which are crossing through current view
- if (sdthis._max_date) ed=this._max_date;
-
- var locate_s = this.locate_holder_day(sd,false,ev);
- ev._sday=locate_s%cols;
- var locate_e = this.locate_holder_day(ed,true,ev)||cols;
- ev._eday=(locate_e%cols)||cols; //cols used to fill full week, when event end on monday
- ev._length=locate_e-locate_s;
-
+ if (sd < this._min_date) {
+ chunk_info.first_chunk = false;
+ sd = this._min_date;
+ }
+ if (ed > this._max_date) {
+ chunk_info.last_chunk = false;
+ ed = this._max_date;
+ }
+
+ var locate_s = this.locate_holder_day(sd, false, ev);
+ ev._sday = locate_s % cols;
+ var locate_e = this.locate_holder_day(ed, true, ev) || cols;
+ ev._eday = (locate_e % cols) || cols; //cols used to fill full week, when event end on monday
+ ev._length = locate_e - locate_s;
+
//3600000 - compensate 1 hour during winter|summer time shift
- ev._sweek=Math.floor((this._correct_shift(sd.valueOf(),1)-this._min_date.valueOf())/(60*60*1000*24*cols));
-
+ ev._sweek = Math.floor((this._correct_shift(sd.valueOf(), 1) - this._min_date.valueOf()) / (60 * 60 * 1000 * 24 * cols));
+
//current slot
- var stack=weeks[ev._sweek];
+ var stack = weeks[ev._sweek];
//check order position
var stack_line;
-
- for (stack_line=0; stack_line";
- if (this._quirks7) d2.firstChild.style.height=height-12+"px"; //IEFIX
- this._editor=d2.firstChild;
- this._editor.onkeypress=function(e){
- if ((e||event).shiftKey) return true;
- var code=(e||event).keyCode;
- if (code==scheduler.keys.edit_save) scheduler.editStop(true);
- if (code==scheduler.keys.edit_cancel) scheduler.editStop(false);
+
+ d2.innerHTML = "";
+ if (this._quirks7) d2.firstChild.style.height = height - 12 + "px"; //IEFIX
+ this._editor = d2.firstChild;
+ this._editor.onkeydown = function(e) {
+ if ((e || event).shiftKey) return true;
+ var code = (e || event).keyCode;
+ if (code == scheduler.keys.edit_save) scheduler.editStop(true);
+ if (code == scheduler.keys.edit_cancel) scheduler.editStop(false);
+ };
+ this._editor.onselectstart = function (e) {
+ return (e || event).cancelBubble = true;
};
- this._editor.onselectstart=function(e){ return (e||event).cancelBubble=true; };
d2.firstChild.focus();
//IE and opera can add x-scroll during focusing
- this._els["dhx_cal_data"][0].scrollLeft=0;
+ this._els["dhx_cal_data"][0].scrollLeft = 0;
d2.firstChild.select();
-
+
}
- if (this._select_id==ev.id){
- if(this.config.cascade_event_display && this._drag_mode)
- d.style.zIndex = 1; //fix overlapping issue for cascade view in case of dnd of selected event
- var icons=this.config["icons_"+((this._edit_id==ev.id)?"edit":"select")];
- var icons_str="";
- var bg_color = (ev.color?("background-color:"+ev.color+";"):"");
- var color = (ev.textColor?("color:"+ev.textColor+";"):"");
- for (var i=0; i
";
- var obj = this._render_v_bar(ev.id,left-menu+1,top,menu,icons.length*20+26,"","",icons_str,true);
- obj.style.left=left-menu+1;
+ if (this.xy.menu_width !== 0 && this._select_id == ev.id) {
+ if (this.config.cascade_event_display && this._drag_mode)
+ d.style.zIndex = 1; //fix overlapping issue for cascade view in case of dnd of selected event
+ var icons = this.config["icons_" + ((this._edit_id == ev.id) ? "edit" : "select")];
+ var icons_str = "";
+ var bg_color = (ev.color ? ("background-color: " + ev.color + ";") : "");
+ var color = (ev.textColor ? ("color: " + ev.textColor + ";") : "");
+ for (var i = 0; i < icons.length; i++)
+ icons_str += "";
+ var obj = this._render_v_bar(ev.id, left - menu + 1, top, menu, icons.length * 20 + 26 - 2, "", "", icons_str, true);
+ obj.style.left = left - menu + 1;
this._els["dhx_cal_data"][0].appendChild(obj);
this._rendered.push(obj);
}
};
-scheduler._render_v_bar=function(id,x,y,w,h,style,contentA,contentB,bottom){
- var d=document.createElement("DIV");
+scheduler._render_v_bar = function (id, x, y, w, h, style, contentA, contentB, bottom) {
+ var d = document.createElement("DIV");
var ev = this.getEvent(id);
- var cs = "dhx_cal_event";
- var cse = scheduler.templates.event_class(ev.start_date,ev.end_date,ev);
- if (cse) cs=cs+" "+cse;
- var bg_color = (ev.color?("background-color:"+ev.color+";"):"");
- var color = (ev.textColor?("color:"+ev.textColor+";"):"");
-
- var html='
';
- html+='
';
- html+='
'+contentA+'
';
- html+='
'+contentB+'
';
- html+='
';
-
- d.innerHTML=html;
- return d.firstChild;
+ var cs = (bottom) ? "dhx_cal_event dhx_cal_select_menu" : "dhx_cal_event";
+
+ var cse = scheduler.templates.event_class(ev.start_date, ev.end_date, ev);
+ if (cse) cs = cs + " " + cse;
+
+ var bg_color = (ev.color ? ("background:" + ev.color + ";") : "");
+ var color = (ev.textColor ? ("color:" + ev.textColor + ";") : "");
+
+ var html = '';
+ d.innerHTML = html;
+
+ var container = d.cloneNode(true).firstChild;
+
+ if (scheduler.renderEvent && !bottom && scheduler.renderEvent(container, ev)) {
+ return container;
+ } else {
+ container = d.firstChild;
+
+ var inner_html = '
';
+ inner_html += '
' + contentA + '
';
+ inner_html += '
' + contentB + '
'; // +2 css specific, moved from render_event
+
+ var footer_class = "dhx_event_resize dhx_footer";
+ if (bottom)
+ footer_class = "dhx_resize_denied " + footer_class;
+
+ inner_html += '';
+
+ container.innerHTML = inner_html;
+ }
+
+ return container;
};
-scheduler.locate_holder=function(day){
- if (this._mode=="day") return this._els["dhx_cal_data"][0].firstChild; //dirty
+scheduler.locate_holder = function(day) {
+ if (this._mode == "day") return this._els["dhx_cal_data"][0].firstChild; //dirty
return this._els["dhx_cal_data"][0].childNodes[day];
};
-scheduler.locate_holder_day=function(date,past){
- var day = Math.floor((this._correct_shift(date,1)-this._min_date)/(60*60*24*1000));
+scheduler.locate_holder_day = function(date, past) {
+ var day = Math.floor((this._correct_shift(date, 1) - this._min_date) / (60 * 60 * 24 * 1000));
//when locating end data of event , we need to use next day if time part was defined
if (past && this.date.time_part(date)) day++;
return day;
};
-scheduler.render_event_bar=function(ev){
- var parent=this._rendered_location;
+scheduler.render_event_bar = function (ev) {
+ var parent = this._rendered_location;
- var x=this._colsS[ev._sday];
- var x2=this._colsS[ev._eday];
- if (x2==x) x2=this._colsS[ev._eday+1];
+ var x = this._colsS[ev._sday];
+ var x2 = this._colsS[ev._eday];
+ if (x2 == x) x2 = this._colsS[ev._eday + 1];
var hb = this.xy.bar_height;
-
- var y=this._colsS.heights[ev._sweek]+(this._colsS.height?(this.xy.month_scale_height+2):2)+(ev._sorder*hb);
-
- var d=document.createElement("DIV");
- var cs = ev._timed?"dhx_cal_event_clear":"dhx_cal_event_line";
- var cse = scheduler.templates.event_class(ev.start_date,ev.end_date,ev);
- if (cse) cs=cs+" "+cse;
- var bg_color = (ev.color?("background-color:"+ev.color+";"):"");
- var color = (ev.textColor?("color:"+ev.textColor+";"):"");
-
- var title_line = scheduler.templates.event_bar_text(ev.start_date,ev.end_date,ev);
-
- var html='
';
-
+ var y = this._colsS.heights[ev._sweek] + (this._colsS.height ? (this.xy.month_scale_height + 2) : 2 ) + (ev._sorder * hb);
+
+ var d = document.createElement("DIV");
+ var cs = "dhx_cal_event_clear";
+ if (!ev._timed) {
+ cs = "dhx_cal_event_line";
+ if (ev.hasOwnProperty("_first_chunk") && ev._first_chunk)
+ cs += " dhx_cal_event_line_start";
+ if (ev.hasOwnProperty("_last_chunk") && ev._last_chunk)
+ cs += " dhx_cal_event_line_end";
+ }
+
+ var cse = scheduler.templates.event_class(ev.start_date, ev.end_date, ev);
+ if (cse) cs = cs + " " + cse;
+
+ var bg_color = (ev.color ? ("background:" + ev.color + ";") : "");
+ var color = (ev.textColor ? ("color:" + ev.textColor + ";") : "");
+
+ var html = '
';
+
+ ev = scheduler.getEvent(ev.id); // ev at this point could be a part of a larged event
if (ev._timed)
- html+=scheduler.templates.event_bar_date(ev.start_date,ev.end_date,ev);
- html+=scheduler.templates.event_bar_text(ev.start_date,ev.end_date,ev)+'
';
- html+='
';
-
- d.innerHTML=html;
-
+ html += scheduler.templates.event_bar_date(ev.start_date, ev.end_date, ev);
+ html += scheduler.templates.event_bar_text(ev.start_date, ev.end_date, ev) + '';
+ html += '';
+
+ d.innerHTML = html;
+
this._rendered.push(d.firstChild);
parent.appendChild(d.firstChild);
};
-scheduler._locate_event=function(node){
- var id=null;
- while (node && !id && node.getAttribute){
- id=node.getAttribute("event_id");
- node=node.parentNode;
+scheduler._locate_event = function(node) {
+ var id = null;
+ while (node && !id && node.getAttribute) {
+ id = node.getAttribute("event_id");
+ node = node.parentNode;
}
return id;
};
-
-scheduler.edit=function(id){
- if (this._edit_id==id) return;
- this.editStop(false,id);
- this._edit_id=id;
+scheduler.edit = function(id) {
+ if (this._edit_id == id) return;
+ this.editStop(false, id);
+ this._edit_id = id;
this.updateEvent(id);
};
-scheduler.editStop=function(mode,id){
- if (id && this._edit_id==id) return;
- var ev=this.getEvent(this._edit_id);
- if (ev){
- if (mode) ev.text=this._editor.value;
- this._edit_id=null;
- this._editor=null;
+scheduler.editStop = function(mode, id) {
+ if (id && this._edit_id == id) return;
+ var ev = this.getEvent(this._edit_id);
+ if (ev) {
+ if (mode) ev.text = this._editor.value;
+ this._edit_id = null;
+ this._editor = null;
this.updateEvent(ev.id);
- this._edit_stop_event(ev,mode);
+ this._edit_stop_event(ev, mode);
}
};
-scheduler._edit_stop_event=function(ev,mode){
- if (this._new_event){
- if (!mode) this.deleteEvent(ev.id,true);
- else this.callEvent("onEventAdded",[ev.id,ev]);
- this._new_event=null;
- } else
- if (mode) this.callEvent("onEventChanged",[ev.id,ev]);
+scheduler._edit_stop_event = function(ev, mode) {
+ if (this._new_event) {
+ if (!mode) {
+ if (ev) // in case of custom lightbox user can already delete event
+ this.deleteEvent(ev.id, true);
+ } else {
+ this.callEvent("onEventAdded", [ev.id, ev]);
+ }
+ this._new_event = null;
+ } else {
+ if (mode)
+ this.callEvent("onEventChanged", [ev.id, ev]);
+ }
};
-scheduler.getEvents = function(from,to){
+scheduler.getEvents = function(from, to) {
var result = [];
- for (var a in this._events){
+ for (var a in this._events) {
var ev = this._events[a];
- if (ev && ev.start_datefrom)
+ if (ev && ( (!from && !to) || (ev.start_date < to && ev.end_date > from) ))
result.push(ev);
}
return result;
};
-
+scheduler.getRenderedEvent = function(id) {
+ if (!id)
+ return;
+ var rendered_events = scheduler._rendered;
+ for (var i=0; i";
- },
- set_value:function(node,value,ev,config){
- node.innerHTML = value||"";
- },
- get_value:function(node,ev,config){
- return node.innerHTML||"";
- },
- focus: function(node){
- }
- },
+ template:{
+ render: function(sns){
+ var height=(sns.height||"30")+"px";
+ return "";
+ },
+ set_value:function(node,value,ev,config){
+ node.innerHTML = value||"";
+ },
+ get_value:function(node,ev,config){
+ return node.innerHTML||"";
+ },
+ focus: function(node){
+ }
+ },
textarea:{
render:function(sns){
var height=(sns.height||"130")+"px";
@@ -3791,10 +4269,15 @@ scheduler.form_blocks={
html+="";
return html;
},
- set_value:function(node,value,ev){
+ set_value:function(node,value,ev,sns){
+ var select = node.firstChild;
+ if (!select._dhx_onchange && sns.onchange) {
+ select.onchange = sns.onchange;
+ select._dhx_onchange = true;
+ }
if (typeof value == "undefined")
- value = (node.firstChild.options[0]||{}).value;
- node.firstChild.value=value||"";
+ value = (select.options[0]||{}).value;
+ select.value=value||"";
},
get_value:function(node,ev){
return node.firstChild.value;
@@ -3802,9 +4285,9 @@ scheduler.form_blocks={
focus:function(node){
var a=node.firstChild; if (a.select) a.select(); a.focus();
}
- },
+ },
time:{
- render:function(){
+ render:function(sns){
//hours
var cfg = scheduler.config;
var dt = this.date.date_part(new Date());
@@ -3814,46 +4297,46 @@ scheduler.form_blocks={
first = 60*cfg.first_hour;
dt.setHours(cfg.first_hour);
}
-
+
var html=" ";
-
+
return "
"+html+" – "+html+"
";
},
- set_value:function(node,value,ev){
-
-
+ set_value:function(node,value,ev,config){
+ var cfg = scheduler.config;
var s=node.getElementsByTagName("select");
- if(scheduler.config.full_day) {
+ if(cfg.full_day) {
if (!node._full_day){
var html = "";
if (!scheduler.config.wide_form)
@@ -3862,46 +4345,63 @@ scheduler.form_blocks={
node._full_day=true;
}
var input=node.previousSibling.getElementsByTagName("input")[0];
- var isFulldayEvent = (scheduler.date.time_part(ev.start_date)===0 && scheduler.date.time_part(ev.end_date)===0 && ev.end_date.valueOf()-ev.start_date.valueOf() < 2*24*60*60*1000);
- input.checked = isFulldayEvent;
-
- for(var k in s)
- s[k].disabled=input.checked;
+ input.checked = (scheduler.date.time_part(ev.start_date)===0 && scheduler.date.time_part(ev.end_date)===0);
+
+ s[0].disabled=input.checked;
+ s[ s.length/2 ].disabled=input.checked;
input.onclick = function(){
if(input.checked) {
- var start_date = new Date(ev.start_date);
- var end_date = new Date(ev.end_date);
-
- scheduler.date.date_part(start_date);
- end_date = scheduler.date.add(start_date, 1, "day");
- }
- for(var i in s)
- s[i].disabled=input.checked;
+ var obj = {};
+ scheduler.form_blocks.time.get_value(node,obj);
+
+ var start_date = scheduler.date.date_part(obj.start_date);
+ var end_date = scheduler.date.date_part(obj.end_date);
+
+ if (+end_date == +start_date || (+end_date >= +start_date && (ev.end_date.getHours() != 0 || ev.end_date.getMinutes() != 0)))
+ end_date = scheduler.date.add(end_date, 1, "day");
+ }
+
+ s[0].disabled=input.checked;
+ s[ s.length/2 ].disabled=input.checked;
_fill_lightbox_select(s,0,start_date||ev.start_date);
_fill_lightbox_select(s,4,end_date||ev.end_date);
};
}
- if(scheduler.config.auto_end_date && scheduler.config.event_duration) {
+ if(cfg.auto_end_date && cfg.event_duration) {
function _update_lightbox_select() {
- ev.start_date=new Date(s[3].value,s[2].value,s[1].value,0,s[0].value);
- ev.end_date.setTime(ev.start_date.getTime() + (scheduler.config.event_duration * 60 * 1000));
- _fill_lightbox_select(s,4,ev.end_date);
+ var start_date = new Date(s[3].value,s[2].value,s[1].value,0,s[0].value);
+ var end_date = new Date(start_date.getTime() + (scheduler.config.event_duration * 60 * 1000));
+ _fill_lightbox_select(s, 4, end_date);
}
for(var i=0; i<4; i++) {
s[i].onchange = _update_lightbox_select;
}
}
- function _fill_lightbox_select(s,i,d){
- s[i+0].value=Math.round((d.getHours()*60+d.getMinutes())/scheduler.config.time_step)*scheduler.config.time_step;
+ function _fill_lightbox_select(s,i,d) {
+ var time_values = config._time_values;
+ var direct_value = d.getHours()*60+d.getMinutes();
+ var fixed_value = direct_value;
+ var value_found = false;
+ for (var k=0; k
"+scheduler.locale.labels[buttons[i]]+"
";
+ html+="
"+scheduler.locale.labels[buttons[i]]+"
";
+
buttons = this.config.buttons_right;
for (var i = 0; i < buttons.length; i++)
- html+="
"+block.render.call(this,sns[i]);
html+=""
}
-
- //localization
+
var ds=d.getElementsByTagName("div");
- //sections
- ds[1].innerHTML=html;
+ for (var i=0; i=0; i--)
- if (this._rendered[i].getAttribute("event_id")==id)
- method(this._rendered[i],i);
-};
-scheduler.changeEventId=function(id,new_id){
- if (id == new_id) return;
- var ev=this._events[id];
- if (ev){
- ev.id=new_id;
- this._events[new_id]=ev;
- delete this._events[id];
- }
- this.for_rendered(id,function(r){
- r.setAttribute("event_id",new_id);
- });
- if (this._select_id==id) this._select_id=new_id;
- if (this._edit_id==id) this._edit_id=new_id;
- //if (this._drag_id==id) this._drag_id=new_id;
- this.callEvent("onEventIdChange",[id,new_id]);
-};
-
-(function(){
- var attrs=["text","Text","start_date","StartDate","end_date","EndDate"];
- var create_getter=function(name){
- return function(id){ return (scheduler.getEvent(id))[name]; };
- };
- var create_setter=function(name){
- return function(id,value){
- var ev=scheduler.getEvent(id); ev[name]=value;
- ev._changed=true;
- ev._timed=this.is_one_day_event(ev);
- scheduler.event_updated(ev,true);
- };
- };
- for (var i=0; i this._colsS.height-22){ // 22 - height of cell's header
- //we have overflow, update heights
- var cells = evl.rows[i].cells;
- for (var j=0; j < cells.length; j++) {
- cells[j].childNodes[1].style.height = h[i]*hb+"px";
- }
- h[i]=(h[i-1]||0)+cells[0].offsetHeight;
- }
- h[i]=(h[i-1]||0)+evl.rows[i].cells[0].offsetHeight;
- }
- h.unshift(0);
- if (evl.parentNode.offsetHeightb.id?1:-1;
- return a.start_date>b.start_date?1:-1;
- });
- var days=[]; //events by weeks
- var evs_originals = [];
- for (var i=0; i < evs.length; i++) {
- var ev=evs[i];
-
- //check scale overflow
- var sh = ev.start_date.getHours();
- var eh = ev.end_date.getHours();
-
- ev._sday=this._get_event_sday(ev);
- if (!days[ev._sday]) days[ev._sday]=[];
-
- if (!hold){
- ev._inner=false;
-
- var stack=days[ev._sday];
- while (stack.length && stack[stack.length-1].end_date<=ev.start_date)
- stack.splice(stack.length-1,1);
-
- var sorderSet = false;
- for(var j=0; j _max_sorder)
- _max_sorder = stack[j]._sorder;
- ev._sorder = _max_sorder + 1;
- ev._inner = false;
- }
-
- }
- else
- ev._sorder = 0;
- }
-
- stack.push(ev);
-
- if (stack.length>(stack.max_count||0)) {
- stack.max_count=stack.length;
- ev._count=stack.length;
- }
- else {
- ev._count=(ev._count)?ev._count:1;
- }
- }
-
- if (sh < this.config.first_hour || eh >= this.config.last_hour){
- evs_originals.push(ev);
- evs[i]=ev=this._copy_event(ev);
- if (sh < this.config.first_hour){
- ev.start_date.setHours(this.config.first_hour);
- ev.start_date.setMinutes(0);
- }
- if (eh >= this.config.last_hour){
- ev.end_date.setMinutes(0);
- ev.end_date.setHours(this.config.last_hour);
- }
- if (ev.start_date>ev.end_date || sh==this.config.last_hour) {
- evs.splice(i,1); i--; continue;
- }
- }
- }
- if (!hold){
- for (var i=0; i < evs.length; i++) {
- evs[i]._count = days[evs[i]._sday].max_count;
- }
- for (var i=0; i < evs_originals.length; i++)
- evs_originals[i]._count=days[evs_originals[i]._sday].max_count;
- }
-
- return evs;
-};
-scheduler._time_order=function(evs){
- evs.sort(function(a,b){
- if (a.start_date.valueOf()==b.start_date.valueOf()){
- if (a._timed && !b._timed) return 1;
- if (!a._timed && b._timed) return -1;
- return a.id>b.id?1:-1;
- }
- return a.start_date>b.start_date?1:-1;
- });
-};
-scheduler._pre_render_events_table=function(evs,hold){ // max - max height of week slot
- this._time_order(evs);
-
- var out=[];
- var weeks=[[],[],[],[],[],[],[]]; //events by weeks
- var max = this._colsS.heights;
- var start_date;
- var cols = this._cols.length;
-
- for (var i=0; i < evs.length; i++) {
- var ev=evs[i];
- var sd = (start_date||ev.start_date);
- var ed = ev.end_date;
- //trim events which are crossing through current view
- if (sdthis._max_date) ed=this._max_date;
-
- var locate_s = this.locate_holder_day(sd,false,ev);
- ev._sday=locate_s%cols;
- var locate_e = this.locate_holder_day(ed,true,ev)||cols;
- ev._eday=(locate_e%cols)||cols; //cols used to fill full week, when event end on monday
- ev._length=locate_e-locate_s;
-
- //3600000 - compensate 1 hour during winter|summer time shift
- ev._sweek=Math.floor((this._correct_shift(sd.valueOf(),1)-this._min_date.valueOf())/(60*60*1000*24*cols));
-
- //current slot
- var stack=weeks[ev._sweek];
- //check order position
- var stack_line;
-
- for (stack_line=0; stack_line";
- if (this._quirks7) d2.firstChild.style.height=height-12+"px"; //IEFIX
- this._editor=d2.firstChild;
- this._editor.onkeypress=function(e){
- if ((e||event).shiftKey) return true;
- var code=(e||event).keyCode;
- if (code==scheduler.keys.edit_save) scheduler.editStop(true);
- if (code==scheduler.keys.edit_cancel) scheduler.editStop(false);
- };
- this._editor.onselectstart=function(e){ return (e||event).cancelBubble=true; };
- d2.firstChild.focus();
- //IE and opera can add x-scroll during focusing
- this._els["dhx_cal_data"][0].scrollLeft=0;
- d2.firstChild.select();
-
- }
- if (this._select_id==ev.id){
- if(this.config.cascade_event_display && this._drag_mode)
- d.style.zIndex = 1; //fix overlapping issue for cascade view in case of dnd of selected event
- var icons=this.config["icons_"+((this._edit_id==ev.id)?"edit":"select")];
- var icons_str="";
- var bg_color = (ev.color?("background-color:"+ev.color+";"):"");
- var color = (ev.textColor?("color:"+ev.textColor+";"):"");
- for (var i=0; i";
- var obj = this._render_v_bar(ev.id,left-menu+1,top,menu,icons.length*20+26,"","",icons_str,true);
- obj.style.left=left-menu+1;
- this._els["dhx_cal_data"][0].appendChild(obj);
- this._rendered.push(obj);
- }
-};
-scheduler._render_v_bar=function(id,x,y,w,h,style,contentA,contentB,bottom){
- var d=document.createElement("DIV");
- var ev = this.getEvent(id);
- var cs = "dhx_cal_event";
- var cse = scheduler.templates.event_class(ev.start_date,ev.end_date,ev);
- if (cse) cs=cs+" "+cse;
-
- var bg_color = (ev.color?("background-color:"+ev.color+";"):"");
- var color = (ev.textColor?("color:"+ev.textColor+";"):"");
-
- var html='
';
- html+='
';
- html+='
'+contentA+'
';
- html+='
'+contentB+'
';
- html+='
';
-
- d.innerHTML=html;
- return d.firstChild;
-};
-scheduler.locate_holder=function(day){
- if (this._mode=="day") return this._els["dhx_cal_data"][0].firstChild; //dirty
- return this._els["dhx_cal_data"][0].childNodes[day];
-};
-scheduler.locate_holder_day=function(date,past){
- var day = Math.floor((this._correct_shift(date,1)-this._min_date)/(60*60*24*1000));
- //when locating end data of event , we need to use next day if time part was defined
- if (past && this.date.time_part(date)) day++;
- return day;
-};
-scheduler.render_event_bar=function(ev){
- var parent=this._rendered_location;
-
- var x=this._colsS[ev._sday];
- var x2=this._colsS[ev._eday];
- if (x2==x) x2=this._colsS[ev._eday+1];
- var hb = this.xy.bar_height;
-
- var y=this._colsS.heights[ev._sweek]+(this._colsS.height?(this.xy.month_scale_height+2):2)+(ev._sorder*hb);
-
- var d=document.createElement("DIV");
- var cs = ev._timed?"dhx_cal_event_clear":"dhx_cal_event_line";
- var cse = scheduler.templates.event_class(ev.start_date,ev.end_date,ev);
- if (cse) cs=cs+" "+cse;
-
- var bg_color = (ev.color?("background-color:"+ev.color+";"):"");
- var color = (ev.textColor?("color:"+ev.textColor+";"):"");
-
- var html='
';
-
- if (ev._timed)
- html+=scheduler.templates.event_bar_date(ev.start_date,ev.end_date,ev);
- html+=scheduler.templates.event_bar_text(ev.start_date,ev.end_date,ev)+'
";
+ var bg_color = (ev.color?("background:"+ev.color+";"):"");
+ var color = (ev.textColor?("color:"+ev.textColor+";"):"");
+ var ev_class = scheduler.templates.event_class(ev.start_date, ev.end_date, ev);
+ html+="
";
}
@@ -88,9 +90,14 @@ scheduler.attachEvent("onTemplatesReady",function(){
//render html
scheduler._els["dhx_cal_data"][0].innerHTML = html;
scheduler._els["dhx_cal_data"][0].childNodes[0].scrollTop = scheduler._agendaScrollTop||0;
+
+ // setting up dhx_v_border size
+ var agenda_area = scheduler._els["dhx_cal_data"][0].childNodes[0];
+ var v_border = agenda_area.childNodes[agenda_area.childNodes.length-1];
+ v_border.style.height = (agenda_area.offsetHeight < scheduler._els["dhx_cal_data"][0].offsetHeight) ? "100%" : (agenda_area.offsetHeight+"px");
var t=scheduler._els["dhx_cal_data"][0].firstChild.childNodes;
- scheduler._els["dhx_cal_date"][0].innerHTML="";
+ scheduler._els["dhx_cal_date"][0].innerHTML=scheduler.templates.agenda_date(scheduler._min_date, scheduler._max_date, scheduler._mode);
scheduler._rendered=[];
for (var i=0; i < t.length-1; i++)
@@ -99,8 +106,8 @@ scheduler.attachEvent("onTemplatesReady",function(){
}
scheduler.agenda_view=function(mode){
- scheduler._min_date = scheduler.config.agenda_start||(new Date());
- scheduler._max_date = scheduler.config.agenda_end||(new Date(9999,1,1));
+ scheduler._min_date = scheduler.config.agenda_start||scheduler.date.agenda_start(scheduler._date);
+ scheduler._max_date = scheduler.config.agenda_end||scheduler.date.add_agenda(scheduler._min_date, 1);
scheduler._table_view = true;
set_full_view(mode);
if (mode){
@@ -110,4 +117,4 @@ scheduler.attachEvent("onTemplatesReady",function(){
//agenda tab de-activated
}
}
-})
+});
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_all_timed.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_all_timed.js
new file mode 100644
index 00000000000..30d1d7066ef
--- /dev/null
+++ b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_all_timed.js
@@ -0,0 +1,133 @@
+/*
+This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
+*/
+(function(){
+
+ scheduler.config.all_timed = "short";
+ scheduler.config.update_render = true;
+
+ var is_event_short = function (ev) {
+ return !((ev.end_date - ev.start_date)/(1000*60*60) >= 24);
+ };
+
+ var old_prerender_events_line = scheduler._pre_render_events_line;
+ scheduler._pre_render_events_line = function(evs, hold){
+ if (!this.config.all_timed)
+ return old_prerender_events_line.call(this, evs, hold);
+
+ for (var i=0; i < evs.length; i++) {
+ var ev=evs[i];
+
+ if (!ev._timed) {
+
+ if (this.config.all_timed == "short") {
+ if (!is_event_short(ev)) {
+ evs.splice(i--,1);
+ continue;
+ }
+ }
+
+ var ce = this._lame_copy({}, ev); // current event (event for one specific day) is copy of original with modified dates
+
+ ce.start_date = new Date(ce.start_date); // as lame copy doesn't copy date objects
+
+ var next_day = scheduler.date.add(ev.start_date, 1, "day");
+ next_day = scheduler.date.date_part(next_day);
+
+ if (ev.end_date < next_day) {
+ ce.end_date = new Date(ev.end_date);
+ }
+ else {
+ ce.end_date = next_day;
+ if (this.config.last_hour != 24) { // if specific last_hour was set (e.g. 20)
+ ce.end_date = scheduler.date.date_part(new Date(ce.start_date));
+ ce.end_date.setHours(this.config.last_hour);
+ }
+ }
+
+ var event_changed = false;
+ if (ce.start_date < this._max_date && ce.end_date > this._min_date && ce.start_date < ce.end_date) {
+ evs[i] = ce; // adding another event in collection
+ event_changed = true;
+ }
+ if (ce.start_date > ce.end_date) {
+ evs.splice(i--,1);
+ }
+
+ var re = this._lame_copy({}, ev); // remaining event, copy of original with modified start_date (making range more narrow)
+ re.end_date = new Date(re.end_date);
+ if (re.start_date < this._min_date)
+ re.start_date = new Date(this._min_date);
+ else
+ re.start_date = this.date.add(ev.start_date, 1, "day");
+
+ re.start_date.setHours(this.config.first_hour);
+ re.start_date.setMinutes(0); // as we are starting only with whole hours
+ if (re.start_date < this._max_date && re.start_date < re.end_date) {
+ if (event_changed)
+ evs.splice(i+1,0,re);
+ else {
+ evs[i--] = re;
+ continue;
+ }
+ }
+ }
+ }
+ // in case of all_timed pre_render is not applied to the original event
+ // so we need to force redraw in case of dnd
+ var redraw = (this._drag_mode == 'move')?false:hold;
+ return old_prerender_events_line.call(this, evs, redraw);
+ };
+ var old_get_visible_events = scheduler.get_visible_events;
+ scheduler.get_visible_events = function(only_timed){
+ if (!this.config.all_timed)
+ return old_get_visible_events.call(this, only_timed);
+ return old_get_visible_events.call(this, false); // only timed = false
+ };
+ scheduler.attachEvent("onBeforeViewChange", function (old_mode, old_date, mode, date) {
+ scheduler._allow_dnd = (mode == "day" || mode == "week");
+ return true;
+ });
+
+ scheduler.render_view_data=function(evs, hold){
+ if(!evs){
+ if (this._not_render) {
+ this._render_wait=true;
+ return;
+ }
+ this._render_wait=false;
+
+ this.clear_view();
+ evs=this.get_visible_events( !(this._table_view || this.config.multi_day) );
+ }
+
+ if (this.config.multi_day && !this._table_view){
+
+ var tvs = [];
+ var tvd = [];
+ for (var i=0; i < evs.length; i++){
+ if (evs[i]._timed || this.config.all_timed === true || (this.config.all_timed == "short" && is_event_short(evs[i])) )
+ tvs.push(evs[i]);
+ else
+ tvd.push(evs[i]);
+ }
+
+ // normal events
+ this._rendered_location = this._els['dhx_cal_data'][0];
+ this._table_view=false;
+ this.render_data(tvs, hold);
+
+ // multiday events
+ this._rendered_location = this._els['dhx_multi_day'][0];
+ this._table_view = true;
+ this.render_data(tvd, hold);
+ this._table_view=false;
+
+ } else {
+ this._rendered_location = this._els['dhx_cal_data'][0];
+ this.render_data(evs, hold);
+ }
+ };
+
+})();
\ No newline at end of file
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_collision.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_collision.js
similarity index 71%
rename from addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_collision.js
rename to addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_collision.js
index e1e5d0fb52f..700b8de19ed 100644
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_collision.js
+++ b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_collision.js
@@ -1,6 +1,6 @@
/*
This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
*/
(function(){
@@ -40,23 +40,25 @@ scheduler.attachEvent("onEventChanged",function(id){
ev.start_date = before[0];
ev.end_date = before[1];
ev._timed=this.is_one_day_event(ev);
- };
+ }
return true;
});
scheduler.attachEvent("onBeforeEventChanged",function(ev,e,is_new){
return collision_check(ev);
});
-scheduler.attachEvent("onEventSave",function(id, edited_ev){
+scheduler.attachEvent("onEventSave",function(id, edited_ev, is_new){
+ edited_ev = scheduler._lame_clone(edited_ev);
+ edited_ev.id = id;
+
if(edited_ev.rec_type){
- scheduler._roll_back_dates(edited_ev);
- return collision_check(edited_ev);
+ scheduler._roll_back_dates(data_copy);
}
- return true;
- //return collision_check(edited_ev);
+ return collision_check(edited_ev); // in case user creates event on one date but then edited it another
});
function collision_check(ev){
var evs = [];
+ var collision_limit = scheduler.config.collision_limit;
if (ev.rec_type) {
var evs_dates = scheduler.getRecDates(ev);
for(var k=0; k= scheduler.config.collision_limit) {
- ev[map_to] = temp_section; // from _setTempSection for custom views
+ if (count >= collision_limit) {
+
single = false;
}
}
else {
- if (evs.length > scheduler.config.collision_limit)
+ if ( evs.length >= collision_limit )
single = false;
}
- if (!single) return !scheduler.callEvent("onEventCollision",[ev,evs]);
+ if (!single) {
+ var res = !scheduler.callEvent("onEventCollision",[ev,evs]);
+ if (!res) {
+ ev[map_to] = temp_section||ev[map_to]; // from _setTempSection for custom views
+ }
+ return res;
+ }
return single;
}
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_cookie.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_cookie.js
similarity index 76%
rename from addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_cookie.js
rename to addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_cookie.js
index 71f1d5e6794..f989ee8ddc5 100644
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_cookie.js
+++ b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_cookie.js
@@ -1,6 +1,6 @@
/*
This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
*/
(function(){
function setCookie(name,cookie_param,value) {
@@ -27,13 +27,15 @@ to use it in not GPL project. Please contact sales@dhtmlx.com for details
first = false;
var data=getCookie("scheduler_settings");
if (data){
- data = data.split("@");
+ data = unescape(data).split("@");
data[0] = this.templates.xml_date(data[0]);
- this.setCurrentView(data[0],data[1]);
+ window.setTimeout(function(){
+ scheduler.setCurrentView(data[0],data[1]);
+ },1);
return false;
}
}
- var text = this.templates.xml_format(d||od)+"@"+(m||om);
+ var text = escape(this.templates.xml_format(d||od)+"@"+(m||om));
setCookie("scheduler_settings","expires=Sun, 31 Jan 9999 22:00:00 GMT",text);
return true;
});
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_dhx_terrace.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_dhx_terrace.js
new file mode 100644
index 00000000000..613741bac43
--- /dev/null
+++ b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_dhx_terrace.js
@@ -0,0 +1,90 @@
+/*
+This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
+*/
+(function(){
+
+ scheduler.config.fix_tab_position = true;
+ scheduler.config.use_select_menu_space = true;
+ scheduler.config.hour_size_px = 44;
+ scheduler.xy.nav_height = 59;
+ scheduler.xy.bar_height = 24;
+ scheduler.config.wide_form = true;
+ scheduler.xy.lightbox_additional_height = 90;
+
+ scheduler.config.displayed_event_color = "#ff4a4a";
+ scheduler.config.displayed_event_text_color = "#ffef80";
+
+ scheduler.templates.event_bar_date = function(start,end,ev) {
+ return "• "+scheduler.templates.event_date(start)+" ";
+ };
+
+ scheduler.attachEvent("onLightbox", function(){
+ var lightbox = scheduler.getLightbox();
+ var divs = lightbox.getElementsByTagName('div');
+ for (var i=0; i
";
+ res += "";
return res;
},
set_value:function(node,value,ev,config){
@@ -13,8 +15,11 @@ scheduler.form_blocks['combo']={
node._combo.destructor();
}
window.dhx_globalImgPath = config.image_path||'/';
- node._combo = new dhtmlXCombo(node, config.name, node.offsetWidth-8);
- node._combo.enableFilteringMode(!!config.filtering, config.script_path||null, !!config.cache);
+ node._combo = new dhtmlXCombo(node, config.name, node.offsetWidth-8);
+ if (config.options_height)
+ node._combo.setOptionHeight(config.options_height);
+ var combo = node._combo;
+ combo.enableFilteringMode(!!config.filtering, config.script_path||null, !!config.cache);
if (!config.script_path) { // script-side filtration is used
var all_options = [];
@@ -24,17 +29,40 @@ scheduler.form_blocks['combo']={
single_option.push(config.options[i].label);
all_options.push(single_option);
}
- node._combo.addOption(all_options);
+ combo.addOption(all_options);
if (ev[config.map_to]) {
- var index = node._combo.getIndexByValue(ev[config.map_to]);
- node._combo.selectOption(index);
+ var index = combo.getIndexByValue(ev[config.map_to]);
+ combo.selectOption(index);
}
} else { // server-side filtration is used
- node._combo.setComboValue(ev[config.map_to]||null);
+ var selected_id = ev[config.map_to];
+ if (selected_id) {
+ if (config.cached_options[selected_id]) {
+ combo.addOption(selected_id, config.cached_options[selected_id]);
+ combo.disable(1);
+ combo.selectOption(0);
+ combo.disable(0);
+ } else {
+ dhtmlxAjax.get(config.script_path+"?id="+selected_id+"&uid="+scheduler.uid(), function(result){
+ var option = result.doXPath("//option")[0];
+ var label = option.childNodes[0].nodeValue;
+ config.cached_options[selected_id] = label;
+ combo.addOption(selected_id, label);
+ combo.disable(1);
+ combo.selectOption(0);
+ combo.disable(0);
+ });
+ }
+ } else {
+ combo.setComboValue(null);
+ }
}
},
- get_value:function(node,ev,config){
+ get_value:function(node,ev,config) {
var selected_id = node._combo.getSelectedValue(); // value = key
+ if (config.script_path) {
+ config.cached_options[selected_id] = node._combo.getSelectedText();
+ }
return selected_id;
},
focus:function(node){
@@ -59,7 +87,8 @@ scheduler.form_blocks['radio']={
var radiobuttons = node.getElementsByTagName('input');
for (var i = 0; i < radiobuttons.length; i++) {
radiobuttons[i].checked = false;
- if (radiobuttons[i].value == ev[config.map_to]) {
+ var checked_value = ev[config.map_to]||value;
+ if (radiobuttons[i].value == checked_value) {
radiobuttons[i].checked = true;
}
}
@@ -84,12 +113,9 @@ scheduler.form_blocks['checkbox']={
return '';
},
set_value:function(node,value,ev,config){
- node=document.getElementById(config.id);
+ node=document.getElementById(config.id);
var id = scheduler.uid();
- var isChecked = false;
- if (typeof config.checked_value != 'undefined' && ev[config.map_to] == config.checked_value) {
- isChecked = true;
- }
+ var isChecked = (typeof config.checked_value != "undefined") ? ev[config.map_to] == config.checked_value : !!value;
node.className += " dhx_cal_checkbox";
var check_html = "";
var label_html = "";
@@ -98,9 +124,14 @@ scheduler.form_blocks['checkbox']={
node.nextSibling.innerHTML=check_html;
} else
node.innerHTML=check_html+label_html;
+
+ if (config.handler) {
+ var checkbox = node.getElementsByTagName('input')[0];
+ checkbox.onclick = config.handler;
+ }
},
get_value:function(node,ev,config){
- node=document.getElementById(config.id);
+ node=document.getElementById(config.id);
var checkbox = node.getElementsByTagName('input')[0]; // moved to the header
if (!checkbox)
checkbox = node.nextSibling.getElementsByTagName('input')[0];
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_expand.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_expand.js
similarity index 94%
rename from addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_expand.js
rename to addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_expand.js
index 5e916128cf9..1f00aa4e5ab 100644
--- a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/ext_expand.js
+++ b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_expand.js
@@ -1,6 +1,6 @@
/*
This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
-to use it in not GPL project. Please contact sales@dhtmlx.com for details
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
*/
scheduler.expand = function(){
var t = scheduler._obj;
diff --git a/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_grid_view.js b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_grid_view.js
new file mode 100644
index 00000000000..a25199a7c4f
--- /dev/null
+++ b/addons/web_calendar/static/lib/dhtmlxScheduler/sources/ext/dhtmlxscheduler_grid_view.js
@@ -0,0 +1,470 @@
+/*
+This software is allowed to use under GPL or you need to obtain Commercial or Enterise License
+to use it in non-GPL project. Please contact sales@dhtmlx.com for details
+*/
+(function(){
+ scheduler.grid = {
+ sort_rules:{
+ "int":function(a,b, getVal){ return getVal(a)*1 < getVal(b)*1?1:-1},
+ "str":function(a,b, getVal){ return getVal(a) < getVal(b)?1:-1},
+ "date":function(a,b, getVal){ return new Date(getVal(a))< new Date(getVal(b))?1:-1}
+ },
+ _getObjName:function(name){
+ return "grid_"+name;
+ },
+ _getViewName:function(objName){
+ return objName.replace(/^grid_/,'');
+ }
+ };
+}
+)();
+/*
+obj={
+ name:'grid_name'
+ fields:[
+ { id:"id", label:"Id", width:80, sort:"int/date/str", template:function(start_date, end_date, ev){ return ""}, align:"right/left/center" },
+ { id:"text", label:"Text", width:'*', css:"class_name", sort:function(a,b){ return 1 or -1}, valign:'top/bottom/middle' }
+ ...
+ ],
+ from:new Date(0),
+ to:Date:new Date(9999,1,1),
+ rowHeight:int,
+ paging:true/false,
+ select:true/false
+}
+*/
+
+
+scheduler.createGridView=function(obj){
+
+ var name = obj.name || 'grid';
+ var objName = scheduler.grid._getObjName(name);
+
+ scheduler.config[name + '_start'] = obj.from ||(new Date(0));
+ scheduler.config[name + '_end'] = obj.to || (new Date(9999,1,1));
+
+ scheduler[objName] = obj;
+ scheduler[objName].defPadding = 8;
+ scheduler[objName].columns = scheduler[objName].fields;
+ delete scheduler[objName].fields;
+ function isValidSize(size){
+ return !(size !== undefined && (size*1 != size || size < 0));
+ }
+
+ var cols = scheduler[objName].columns;
+ for(var i=0; i < cols.length; i++){
+ if(isValidSize(cols[i].width))
+ cols[i].initialWidth = cols[i].width;
+ if(!isValidSize(cols[i].paddingLeft))
+ delete cols[i].paddingLeft;
+ if(!isValidSize(cols[i].paddingRight))
+ delete cols[i].paddingRight;
+ }
+
+ scheduler[objName].select = obj.select === undefined ? true : obj.select;
+ if(scheduler.locale.labels[name +'_tab'] === undefined)
+ scheduler.locale.labels[name +'_tab'] = scheduler[objName].label || scheduler.locale.labels.grid_tab;
+
+ scheduler[objName]._selected_divs = [];
+
+ scheduler.date[name+'_start']=function(d){ return d; };
+ scheduler.date['add_' + name] = function(date, inc){
+ var ndate = new Date(date);
+ ndate.setMonth(ndate.getMonth()+inc);
+ return ndate;
+ };
+
+ scheduler.templates[name+"_date"] = function(start, end){
+ return scheduler.templates.day_date(start)+" - "+scheduler.templates.day_date(end)
+ }
+
+ scheduler.attachEvent("onTemplatesReady",function(){
+
+ scheduler.templates[name + '_full_date'] = function(start,end,ev){
+ if (ev._timed)
+ return this.day_date(ev.start_date, ev.end_date, ev)+" "+this.event_date(start);
+ else
+ return scheduler.templates.day_date(start)+" – "+scheduler.templates.day_date(end);
+ };
+ scheduler.templates[name + '_single_date'] = function(date){
+ return scheduler.templates.day_date(date)+" "+this.event_date(date);
+ }
+
+
+ scheduler.attachEvent("onDblClick",function(event_id, native_event_object){
+ if(this._mode == name){
+ scheduler._click.buttons['details'](event_id)
+ return false;
+ }
+ return true;
+ });
+
+ scheduler.attachEvent("onClick",function(event_id, native_event_object){
+ if(this._mode == name && scheduler[objName].select ){
+ scheduler.grid.unselectEvent('', name);
+ scheduler.grid.selectEvent(event_id, name, native_event_object);
+ return false;
+ }
+ return true;
+ });
+
+
+ scheduler.templates[name + '_field'] = function(field_name, event){
+ return event[field_name];
+ };
+
+ scheduler.attachEvent("onSchedulerResize", function() {
+ if (this._mode == name) {
+ this[name + '_view'](true);
+ // timeout used to run code after all onSchedulerResize handlers are finished
+ window.setTimeout(function(){
+ // we need to call event manually because handler return false, and blocks default logic
+ scheduler.callEvent("onAfterSchedulerResize", []);
+ },1);
+ return false;
+ }
+ return true;
+ });
+
+
+ var old = scheduler.render_data;
+ scheduler.render_data=function(evs){
+ if (this._mode == name)
+ scheduler.grid._fill_grid_tab(objName);
+ else
+ return old.apply(this,arguments);
+ };
+
+ var old_render_view_data = scheduler.render_view_data;
+ scheduler.render_view_data=function(){
+ if(this._mode == name) {
+ scheduler.grid._gridScrollTop = scheduler._els["dhx_cal_data"][0].childNodes[0].scrollTop;
+ scheduler._els["dhx_cal_data"][0].childNodes[0].scrollTop = 0;
+ scheduler._els["dhx_cal_data"][0].style.overflowY = 'auto';
+ }
+ else {
+ scheduler._els["dhx_cal_data"][0].style.overflowY = 'auto';
+ }
+ return old_render_view_data.apply(this,arguments);
+ }
+});
+
+
+ scheduler[name+'_view']=function(mode){
+ if (mode){
+ scheduler._min_date = scheduler[objName].paging ? scheduler.date[name+'_start'](new Date(scheduler._date)) : scheduler.config[name + '_start'];
+ scheduler._max_date = scheduler[objName].paging ? scheduler.date.add(scheduler._min_date, 1, name) : scheduler.config[name + '_end'];
+
+ scheduler.grid.set_full_view(objName);
+ if(scheduler._min_date > new Date(0) && scheduler._max_date < (new Date(9999,1,1)))
+ scheduler._els["dhx_cal_date"][0].innerHTML=scheduler.templates[name+"_date"](scheduler._min_date,scheduler._max_date);
+ else
+ scheduler._els["dhx_cal_date"][0].innerHTML="";
+
+ //grid tab activated
+ scheduler.grid._fill_grid_tab(objName);
+ scheduler._gridView = objName;
+ } else {
+ scheduler.grid._sort_marker = null;
+ delete scheduler._gridView;
+ scheduler._rendered=[];
+ scheduler[objName]._selected_divs = [];
+ //grid tab de-activated
+ }
+ };
+
+
+}
+
+
+scheduler.dblclick_dhx_grid_area=function(){
+ if (!this.config.readonly && this.config.dblclick_create)
+ this.addEventNow();
+};
+
+if(scheduler._click.dhx_cal_header){
+ scheduler._old_header_click = scheduler._click.dhx_cal_header;
+}
+scheduler._click.dhx_cal_header=function(e){
+ if(scheduler._gridView){
+ var event = e||window.event;
+ var params = scheduler.grid.get_sort_params(event, scheduler._gridView);
+
+ scheduler.grid.draw_sort_marker(event.originalTarget || event.srcElement, params.dir);
+
+ scheduler.clear_view();
+ scheduler.grid._fill_grid_tab(scheduler._gridView, params);
+ }
+ else if(scheduler._old_header_click)
+ return scheduler._old_header_click.apply(this,arguments);
+};
+
+scheduler.grid.selectEvent = function(id, view_name, native_event_object){
+ if(scheduler.callEvent("onBeforeRowSelect",[id,native_event_object])){
+ var objName = scheduler.grid._getObjName(view_name);
+
+ scheduler.for_rendered(id, function(event_div){
+ event_div.className += " dhx_grid_event_selected";
+ scheduler[objName]._selected_divs.push(event_div);
+ });
+ scheduler._select_id = id;
+ }
+};
+
+scheduler.grid._unselectDiv= function(div){
+ div.className = div.className.replace(/ dhx_grid_event_selected/,'');
+}
+scheduler.grid.unselectEvent = function(id, view_name){
+ var objName = scheduler.grid._getObjName(view_name);
+ if(!objName || !scheduler[objName]._selected_divs)
+ return;
+
+ if(!id){
+ for(var i=0; i ";
+ node.innerHTML += html;
+
+};
+
+scheduler.grid.sort_grid=function(sort){
+
+ var sort = sort || {dir:'desc', value:function(ev){return ev.start_date;}, rule:scheduler.grid.sort_rules['date']};
+
+ var events = scheduler.get_visible_events();
+
+ if(sort.dir == 'desc')
+ events.sort(function(a,b){return sort.rule(a,b,sort.value)});
+ else
+ events.sort(function(a,b){return -sort.rule(a,b, sort.value)});
+ return events;
+};
+
+
+
+scheduler.grid.set_full_view = function(mode){
+ if (mode){
+ var l = scheduler.locale.labels;
+ var html =scheduler.grid._print_grid_header(mode);
+
+ scheduler._els["dhx_cal_header"][0].innerHTML= html;
+ scheduler._table_view=true;
+ scheduler.set_sizes();
+ }
+};
+scheduler.grid._calcPadding = function(column, parent){
+ var padding = (column.paddingLeft !== undefined ? 1*column.paddingLeft : scheduler[parent].defPadding)
+ + (column.paddingRight !== undefined ? 1*column.paddingRight : scheduler[parent].defPadding);
+ return padding;
+};
+
+scheduler.grid._getStyles = function(column, items){
+ var cell_style = [], style = "";
+ for(var i=0; items[i]; i++ ){
+ style = items[i] + ":";
+ switch (items[i]){
+ case "text-align":
+ if(column.align)
+ cell_style.push(style+column.align);
+ break;
+ case "vertical-align":
+ if(column.valign)
+ cell_style.push(style+column.valign);
+ break;
+ case "padding-left":
+ if(column.paddingLeft != undefined)
+ cell_style.push(style+(column.paddingLeft||'0') + "px");
+ break;
+ case "padding-left":
+ if(column.paddingRight != undefined)
+ cell_style.push(style+(column.paddingRight||'0') + "px");
+ break;
+ }
+ }
+ return cell_style;
+};
+
+scheduler.grid._fill_grid_tab = function(objName, sort){
+ //get current date
+ var date = scheduler._date;
+ //select events for which data need to be printed
+ var events = scheduler.grid.sort_grid(sort)
+
+ //generate html for the view
+ var columns = scheduler[objName].columns;
+
+ var html = "
";
+ var left = -2;//column borders at the same pos as header borders...
+ for(var i=0; i < columns.length; i++){
+ var padding = scheduler.grid._calcPadding(columns[i], objName);
+ left +=columns[i].width + padding ;//
+ if(i < columns.length - 1)
+ html += "";
+ }
+ html += "
"
+ html +="
";
+
+ for (var i=0; i";
+ //render html
+ scheduler._els["dhx_cal_data"][0].innerHTML = html;
+ scheduler._els["dhx_cal_data"][0].scrollTop = scheduler.grid._gridScrollTop||0;
+
+ var t=scheduler._els["dhx_cal_data"][0].getElementsByTagName("tr");
+
+ scheduler._rendered=[];
+ for (var i=0; i < t.length; i++){
+ scheduler._rendered[i]=t[i]
+ }
+
+};
+scheduler.grid._print_event_row = function(ev, objName){
+
+ var styles = [];
+ if(ev.color)
+ styles.push("background:"+ev.color);
+ if(ev.textColor)
+ styles.push("color:"+ev.textColor);
+ if(ev._text_style)
+ styles.push(ev._text_style);
+ if(scheduler[objName]['rowHeight'])
+ styles.push('height:'+scheduler[objName]['rowHeight'] + 'px');
+
+ var style = "";
+ if(styles.length){
+ style = "style='"+styles.join(";")+"'";
+ }
+
+ var columns = scheduler[objName].columns;
+ var ev_class = scheduler.templates.event_class(ev.start_date, ev.end_date, ev);
+
+ var html ="
";
+
+ var name = scheduler.grid._getViewName(objName);
+ var availStyles = ["text-align", "vertical-align", "padding-left","padding-right"];
+ for(var i =0; i < columns.length; i++){
+ var value;
+ if(columns[i].template){
+ value = columns[i].template(ev.start_date, ev.end_date, ev);
+ }else if(columns[i].id == 'date') {
+ value = scheduler.templates[name + '_full_date'](ev.start_date, ev.end_date, ev);
+ }else if(columns[i].id == 'start_date' || columns[i].id == 'end_date' ){
+ value = scheduler.templates[name + '_single_date'](ev[columns[i].id]);
+ }else{
+ value = scheduler.templates[name + '_field'](columns[i].id, ev);
+ }
+
+ var cell_style = scheduler.grid._getStyles(columns[i], availStyles);
+
+ var className = columns[i].css ? (" class=\""+columns[i].css+"\"") : "";
+
+ html+= "
"+value+"
";
+
+ }
+ html+="
";
+
+ return html;
+};
+
+scheduler.grid._print_grid_header = function(objName){
+ var head = "
";
+
+ var columns = scheduler[objName].columns;
+ var widths = [];
+
+ var unsized_columns = columns.length;
+ var avail_width = scheduler._obj.clientWidth - 2*columns.length -20;//-20 for possible scrollbar, -length for borders
+ for(var ind=0; ind < columns.length; ind++){
+
+ var val = columns[ind].initialWidth*1;
+ if(!isNaN(val) && columns[ind].initialWidth != '' && columns[ind].initialWidth != null && typeof columns[ind].initialWidth != 'boolean'){
+
+ unsized_columns--;
+ avail_width -= val;
+ widths[ind] = val;
+ }else {
+ widths[ind] = null;
+ }
+ }
+
+ var unsized_width = Math.floor(avail_width / unsized_columns);
+ var availStyles = ["text-align", "padding-left","padding-right"];
+ for(var i=0; i < columns.length; i++){
+ var column_width = !widths[i] ? unsized_width : widths[i];
+ columns[i].width = column_width - scheduler.grid._calcPadding(columns[i], objName);
+ var cell_style = scheduler.grid._getStyles(columns[i], availStyles);
+ head += "