# HG changeset patch # User ymh # Date 1299685697 -3600 # Node ID 491513b6e144b2101570f1f2abdff45cee0a2712 # Parent 0533a05b7113301b8886949bc14fa91160a74413# Parent 7fe7db7a5b419bc65ffcd8ad3bda618f0cbb1018 Merge with 7fe7db7a5b419bc65ffcd8ad3bda618f0cbb1018 diff -r 0533a05b7113 -r 491513b6e144 .pydevproject --- a/.pydevproject Wed Mar 09 16:36:20 2011 +0100 +++ b/.pydevproject Wed Mar 09 16:48:17 2011 +0100 @@ -1,11 +1,11 @@ - - - - -python_platform -python 2.6 - -/platform/src/ldt -/platform/web - - + + + + +python_platform +python 2.6 + +/platform/src/ldt +/platform/web + + diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/init_ldt.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/init_ldt.html Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/init_ldt.html Wed Mar 09 16:48:17 2011 +0100 @@ -6,7 +6,6 @@ Ligne de Temps - IRI - +{% include "ldt/ldt_utils/partial/ldt_div.html" %} diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/init_ldt_full.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/init_ldt_full.html Wed Mar 09 16:48:17 2011 +0100 @@ -0,0 +1,26 @@ +{% extends "ldt/ldt_utils/workspace_base.html" %} +{% load i18n %} + +{% block js_import %} + {{block.super}} + +{% endblock %} + + +{% block content %} + {% include "ldt/ldt_utils/partial/ldt_div.html" %} +{% endblock %} + diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/ldt_div.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/ldt_div.html Wed Mar 09 16:48:17 2011 +0100 @@ -0,0 +1,38 @@ +{% comment %} +Yes we include swfobject.js in the middle of the page... +{% endcomment %} + +
 
+ + diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Wed Mar 09 16:48:17 2011 +0100 @@ -9,7 +9,11 @@ {% for project in projects %} {% url ldt.ldt_utils.views.project_json_id project.ldt_id as json_url_id %} -
{% trans 'open ldt' %}
+ {% if is_gecko %} +
{% trans 'open ldt' %}
+ {% else %} +
{% trans 'open ldt' %}
+ {% endif %}
{% trans 'copy project' %}
{% trans 'link json by id' %}
diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/workspace_base.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/workspace_base.html Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/workspace_base.html Wed Mar 09 16:48:17 2011 +0100 @@ -3,7 +3,7 @@ {% block js_import %} {{block.super}} - + {% endblock %} @@ -20,21 +20,20 @@ function init_events(base_node) { init_events_all(base_node, "{% url ldt.ldt_utils.views.popup_embed %}", content_filter_url, project_filter_url, publish_project_url, unpublish_project_url); - + } -$(document).ready(function(){ - +$(document).ready(function(){ + input_list_init = [ {'input_selector':"#searchcontentsinput", 'container_selector':"#contentslistcontainer", 'url':content_filter_url}, {'input_selector':"#searchprojectsinput", 'container_selector':"#projectslistcontainer", 'url':project_filter_url} ]; - + searchFieldInit(input_list_init); - + init_events(document); - }); diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/ldt_utils/urls.py --- a/src/ldt/ldt/ldt_utils/urls.py Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/urls.py Wed Mar 09 16:48:17 2011 +0100 @@ -40,6 +40,7 @@ url(r'^space/content/update/(?P[\w-]+)$', 'views.write_content'), url(r'^space/ldt/$', 'views.list_ldt'), url(r'^space/ldt/indexproject/(?P.*)$', 'views.indexProject'), + url(r'^space/ldt/indexprojectfull/(?P.*)$', 'views.indexProjectFull'), url(r'^space/ldt/init/(?P.*)/(?P.+)$', 'views.init', name='space_ldt_init'), url(r'^space/ldt/project/(?P.*)$', 'views.ldtProject'), url(r'^space/ldt/create/$', 'views.create_ldt_view'), diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/ldt_utils/views.py --- a/src/ldt/ldt/ldt_utils/views.py Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/ldt_utils/views.py Wed Mar 09 16:48:17 2011 +0100 @@ -51,10 +51,13 @@ # get list of projects project_list = Project.objects.all() - + + is_gecko = ((request.META['HTTP_USER_AGENT'].lower().find("firefox")) > -1); + # render list return render_to_response("ldt/ldt_utils/workspace.html", - {'contents': content_list, 'projects': project_list}, + {'contents': content_list, 'projects': project_list, + 'is_gecko': is_gecko}, context_instance=RequestContext(request)) @@ -301,6 +304,20 @@ return render_to_response('ldt/ldt_utils/init_ldt.html', {'LDT_MEDIA_PREFIX': settings.LDT_MEDIA_PREFIX, 'colorurl': settings.LDT_MEDIA_PREFIX + 'swf/ldt/pkg/color.xml', 'i18nurl': settings.LDT_MEDIA_PREFIX + 'swf/ldt/pkg/i18n', 'language': language_code, 'baseurl': settings.LDT_MEDIA_PREFIX + 'swf/ldt/', 'url': urlStr, 'posturl': posturl, 'id': id, 'readonly': readonly}, context_instance=RequestContext(request)) +def indexProjectFull(request, id): + + urlStr = settings.WEB_URL + reverse("space_ldt_init", args=['ldtProject', id]) + posturl = settings.WEB_URL + reverse("ldt.ldt_utils.views.save_ldtProject") + language_code = request.LANGUAGE_CODE[:2] + + ldt = get_object_or_404(Project, ldt_id=id) + if ldt.state == 2: #published + readonly = 'true' + else: + readonly = 'false' + + return render_to_response('ldt/ldt_utils/init_ldt_full.html', {'LDT_MEDIA_PREFIX': settings.LDT_MEDIA_PREFIX, 'colorurl': settings.LDT_MEDIA_PREFIX + 'swf/ldt/pkg/color.xml', 'i18nurl': settings.LDT_MEDIA_PREFIX + 'swf/ldt/pkg/i18n', 'language': language_code, 'baseurl': settings.LDT_MEDIA_PREFIX + 'swf/ldt/', 'url': urlStr, 'posturl': posturl, 'id': id, 'readonly': readonly}, context_instance=RequestContext(request)) + def init(request, method, url): ldtgen = LdtUtils() diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/locale/en/LC_MESSAGES/django.mo Binary file src/ldt/ldt/locale/en/LC_MESSAGES/django.mo has changed diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/locale/en/LC_MESSAGES/django.po --- a/src/ldt/ldt/locale/en/LC_MESSAGES/django.po Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/locale/en/LC_MESSAGES/django.po Wed Mar 09 16:48:17 2011 +0100 @@ -7,199 +7,203 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-12-27 15:49+0100\n" +"POT-Creation-Date: 2011-03-03 15:12+0100\n" "PO-Revision-Date: 2010-02-17 03:53+0100\n" "Last-Translator: Yves-Marie Haussonne \n" "Language-Team: LANGUAGE \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" -#: forms/widgets.py:17 +#: .\forms\widgets.py:17 msgid "Date" msgstr "Date" -#: forms/widgets.py:17 +#: .\forms\widgets.py:17 msgid "Time" msgstr "Time" -#: ldt_utils/forms.py:43 ldt_utils/models.py:82 +#: .\ldt_utils\forms.py:43 .\ldt_utils\models.py:100 msgid "content.content_creation_date" msgstr "content creation date" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "content.media_input_type" msgstr "Media source type" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "file_upload" msgstr "file upload" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "url" msgstr "url" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "existing_media" msgstr "existing media" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "create_media" msgstr "create media" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "none_media" msgstr "no media" -#: ldt_utils/models.py:25 +#: .\ldt_utils\models.py:27 msgid "media.external_id" msgstr "external id" -#: ldt_utils/models.py:26 +#: .\ldt_utils\models.py:28 msgid "media.external_permalink" msgstr "media permalink" -#: ldt_utils/models.py:27 +#: .\ldt_utils\models.py:29 msgid "media.external_publication_url" msgstr "media publication url" -#: ldt_utils/models.py:28 +#: .\ldt_utils\models.py:30 msgid "media.external_src_url" msgstr "media external source url" -#: ldt_utils/models.py:29 +#: .\ldt_utils\models.py:31 msgid "media.creation_date" msgstr "media object creation date" -#: ldt_utils/models.py:30 +#: .\ldt_utils\models.py:32 msgid "media.media_creation_date" msgstr "media creation date" -#: ldt_utils/models.py:31 +#: .\ldt_utils\models.py:33 msgid "media.update_date" msgstr "update date" -#: ldt_utils/models.py:32 +#: .\ldt_utils\models.py:34 msgid "media.videopath" msgstr "videopath" -#: ldt_utils/models.py:33 +#: .\ldt_utils\models.py:35 msgid "media.duration" msgstr "duration (ms)" -#: ldt_utils/models.py:34 +#: .\ldt_utils\models.py:36 msgid "media.creator" msgstr "media creator" -#: ldt_utils/models.py:35 +#: .\ldt_utils\models.py:37 msgid "description" msgstr "description" -#: ldt_utils/models.py:36 -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:69 +#: .\ldt_utils\models.py:38 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:69 msgid "title" msgstr "Title" -#: ldt_utils/models.py:37 +#: .\ldt_utils\models.py:39 msgid "media.src" msgstr "media source" -#: ldt_utils/models.py:74 +#: .\ldt_utils\models.py:40 +msgid "media.mimetype" +msgstr "mimetype" + +#: .\ldt_utils\models.py:92 msgid "content.iri_id" msgstr "iri id" -#: ldt_utils/models.py:75 +#: .\ldt_utils\models.py:93 msgid "content.iriurl" msgstr "iri url" -#: ldt_utils/models.py:76 +#: .\ldt_utils\models.py:94 msgid "content.creation_date" msgstr "content creation date" -#: ldt_utils/models.py:77 +#: .\ldt_utils\models.py:95 msgid "content.update_date" msgstr "content update date" -#: ldt_utils/models.py:78 +#: .\ldt_utils\models.py:96 msgid "content.title" msgstr "title" -#: ldt_utils/models.py:79 +#: .\ldt_utils\models.py:97 msgid "content.description" msgstr "description" -#: ldt_utils/models.py:80 +#: .\ldt_utils\models.py:98 msgid "content.authors" msgstr "authors" -#: ldt_utils/models.py:81 +#: .\ldt_utils\models.py:99 msgid "content.duration" msgstr "duration (ms)" -#: ldt_utils/models.py:260 +#: .\ldt_utils\models.py:288 msgid "created by" msgstr "created by" -#: ldt_utils/models.py:261 +#: .\ldt_utils\models.py:289 msgid "changed by" msgstr "changed by" -#: ldt_utils/views.py:72 ldt_utils/views.py:332 ldt_utils/views.py:378 +#: .\ldt_utils\views.py:81 .\ldt_utils\views.py:358 .\ldt_utils\views.py:404 msgid "You can not access this project" msgstr "You can not access this project" -#: ldt_utils/views.py:536 +#: .\ldt_utils\views.py:562 #, python-format msgid "the project %(title)s is published. please unpublish before deleting." msgstr "the project %(title)s is published. please unpublish before deleting." -#: ldt_utils/views.py:537 +#: .\ldt_utils\views.py:563 msgid "can not delete the project. Please correct the following error" msgstr "can not delete the project. Please correct the following error" -#: ldt_utils/views.py:538 +#: .\ldt_utils\views.py:564 msgid "title error deleting project" msgstr "Error when deleting project" -#: ldt_utils/views.py:540 +#: .\ldt_utils\views.py:566 #, python-format msgid "please confirm deleting project %(title)s" msgstr "Please confirm deleting project %(title)s" -#: ldt_utils/views.py:541 +#: .\ldt_utils\views.py:567 msgid "confirm deletion" msgstr "Confirm deletion" -#: ldt_utils/views.py:695 +#: .\ldt_utils\views.py:721 msgid "Problem when downloading file from url : " msgstr "Problem when downloading file from url: " -#: ldt_utils/views.py:698 +#: .\ldt_utils\views.py:724 msgid "Problem when uploading file : " msgstr "Problem when uploading file: " -#: ldt_utils/views.py:768 +#: .\ldt_utils\views.py:792 #, python-format msgid "There is %(count)d error when deleting content" msgid_plural "There are %(count)d errors when deleting content" msgstr[0] "There is %(count)d error when deleting content" msgstr[1] "There are %(count)d errors when deleting content" -#: ldt_utils/views.py:769 +#: .\ldt_utils\views.py:793 msgid "title error deleting content" msgstr "Error when deleting content" -#: ldt_utils/views.py:771 +#: .\ldt_utils\views.py:795 #, python-format msgid "Confirm delete content %(titles)s" msgstr "Confirm delete content %(titles)s" -#: ldt_utils/views.py:772 +#: .\ldt_utils\views.py:796 msgid "confirm delete content" msgstr "Confirm delete content" -#: ldt_utils/views.py:803 +#: .\ldt_utils\views.py:827 #, python-format msgid "" "Content '%(title)s' is referenced by this project : %(project_titles)s. " @@ -214,58 +218,59 @@ "Content '%(title)s' is referenced by %(count)d projects: %(project_titles)s. " "Please delete them beforehand." -#: ldt_utils/templates/admin/ldt_utils/app_action.html:4 -#: templates/admin/cms_change_list.html:7 -#: templates/admin/page_app_index.html:8 -#: templates/admin/page_change_form.html:17 -#: templates/admin/page_change_list.html:25 -#: user/templates/registration/logged_out.html:4 +#: .\ldt_utils\templates\admin\ldt_utils\app_action.html.py:4 +#: .\templates\admin\cms_change_list.html.py:7 +#: .\templates\admin\page_app_index.html.py:8 +#: .\templates\admin\page_change_form.html.py:17 +#: .\templates\admin\page_change_list.html.py:25 +#: .\user\templates\registration\logged_out.html.py:4 msgid "Home" msgstr "Home" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:55 -#: templates/admin/page_base.html:19 -#: user/templates/ldt/user/login_form.html:33 -#: user/templates/ldt/user/space.html:6 user/templates/ldt/user/space.html:9 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:55 +#: .\templates\admin\page_base.html.py:19 +#: .\user\templates\ldt\user\login_form.html.py:33 +#: .\user\templates\ldt\user\space.html.py:6 +#: .\user\templates\ldt\user\space.html.py:9 msgid "Space" msgstr "Space" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:56 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:56 msgid "Ldt Project" msgstr "Ldt Project" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:59 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:59 msgid "Contents" msgstr "Contents" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:63 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:63 msgid "Create new content" msgstr "Create new content" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:66 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:66 msgid "Content" msgstr "Content" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:70 -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:77 -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:11 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:70 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:77 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:11 msgid "create project" msgstr "Create new project" -#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:11 +#: .\ldt_utils\templates\ldt\ldt_utils\copy_ldt.html.py:12 msgid "Copy your project" msgstr "Copy your project" -#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:14 -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:38 +#: .\ldt_utils\templates\ldt\ldt_utils\copy_ldt.html.py:16 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:38 msgid "Title" msgstr "Title" -#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:16 +#: .\ldt_utils\templates\ldt\ldt_utils\copy_ldt.html.py:20 msgid "Copy" msgstr "Copy" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:47 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:47 msgid "" "The operation could not be performed because one or more error(s) occurred." "
Please resubmit the content form after making the following changes:" @@ -273,7 +278,7 @@ "The operation could not be performed because one or more error(s) occurred." "
Please resubmit the content form after making the following changes:" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:58 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:58 msgid "" "The operation could not be performed because one or more error(s) occurred." "
Please resubmit the media form after making the following changes:" @@ -281,213 +286,220 @@ "The operation could not be performed because one or more error(s) occurred." "
Please resubmit the media form after making the following changes:" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:68 -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:21 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:68 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:21 msgid "Create content" msgstr "Create content" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:105 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:105 msgid "media file is being processed please wait." msgstr "media file is being processed please wait." -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:109 -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:59 -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:49 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:109 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:59 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:49 msgid "close_cancel" msgstr "Close" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:110 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:110 msgid "delete" msgstr "Approve delete" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:111 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:111 msgid "write" msgstr "write" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:34 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:34 msgid "Update your project" msgstr "Create your project" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:34 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:34 msgid "Create your project" msgstr "Create your project" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:40 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:40 msgid "List of contents" msgstr "List of contents" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:42 -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:3 -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:3 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:42 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:3 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:3 msgid "name" msgstr "name" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:61 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:61 msgid "delete_project" msgstr "delete project" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:62 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:62 msgid "update_project" msgstr "update project" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:64 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:64 msgid "create_project" msgstr "Create new project" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:60 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:60 msgid "project id" msgstr "project id" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:61 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:61 msgid "copy to clipboard" msgstr "copy to clipboard" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_player" msgstr "player" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_seo_body" msgstr "seo" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_seo_meta" msgstr "meta" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_links" msgstr "links" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:84 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:84 msgid "clik here to see the project content" msgstr "clik here to see the project content" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:30 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:30 msgid "error" msgstr "Error" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:30 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:30 msgid "confirm" msgstr "Confirm deletion" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:45 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:45 msgid "close_error" msgstr "Close" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:50 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:50 msgid "do_delete" msgstr "Approve delete" -#: ldt_utils/templates/ldt/ldt_utils/ldt_list.html:77 -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:63 +#: .\ldt_utils\templates\ldt\ldt_utils\init_ldt_full.html.py:17 +msgid "" +"Your current work is modified. Click Cancel and save it one last time before " +"leaving. Click OK to leave without saving." +msgstr "Your current work is modified. Click Cancel and save it one last time before leaving. Click OK to leave without saving." + +#: .\ldt_utils\templates\ldt\ldt_utils\ldt_list.html.py:77 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:63 msgid "project list" msgstr "Projects" -#: ldt_utils/templates/ldt/ldt_utils/ldt_list.html:79 -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:54 -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:65 +#: .\ldt_utils\templates\ldt\ldt_utils\ldt_list.html.py:79 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:54 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:65 msgid "search" msgstr "search" -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:52 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:52 msgid "content list" msgstr "contents" -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:12 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:12 msgid "preview media" msgstr "preview media" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:12 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:12 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:28 msgid "open ldt" msgstr "open ldt" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:13 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:13 msgid "copy project" msgstr "Copy your project" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:14 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:14 msgid "link json by id" msgstr "link json by id" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:17 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:17 msgid "Project published, click to unpublish" msgstr "Project published, click to unpublish" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:19 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:19 msgid "Project not published, click to publish" msgstr "Project not published, click to publish" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:36 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:37 msgid "Create project" msgstr "Create new project" -#: templates/admin/cms_change_form.html:30 +#: .\templates\admin\cms_change_form.html.py:30 msgid "Approve page deletion" msgstr "Approve page deletion" -#: templates/admin/cms_change_form.html:36 +#: .\templates\admin\cms_change_form.html.py:36 #, python-format msgid "(requires approvement at %(moderation_level)s level)" msgstr "(requires approvement at %(moderation_level)s level)" -#: templates/admin/cms_change_form.html:37 +#: .\templates\admin\cms_change_form.html.py:37 msgid "(you can perform actions on this page directly)" msgstr "(you can perform actions on this page directly)" -#: templates/admin/cms_change_form.html:50 +#: .\templates\admin\cms_change_form.html.py:50 msgid "Remove delete request" msgstr "Remove delete request" -#: templates/admin/cms_change_form.html:52 +#: .\templates\admin\cms_change_form.html.py:52 msgid "Approve delete" msgstr "Approve delete" -#: templates/admin/cms_change_form.html:52 +#: .\templates\admin\cms_change_form.html.py:52 msgid "Approve" msgstr "Approve" -#: templates/admin/cms_change_form.html:52 -#: templates/admin/cms_change_form.html:53 +#: .\templates\admin\cms_change_form.html.py:52 +#: .\templates\admin\cms_change_form.html.py:53 msgid "draft" msgstr "draft" -#: templates/admin/cms_change_form.html:53 +#: .\templates\admin\cms_change_form.html.py:53 msgid "Preview" msgstr "Preview" -#: templates/admin/cms_change_form.html:56 -#: templates/admin/page_change_form.html:27 +#: .\templates\admin\cms_change_form.html.py:56 +#: .\templates\admin\page_change_form.html.py:27 msgid "History" msgstr "History" -#: templates/admin/cms_change_form.html:57 -#: templates/admin/page_change_form.html:28 +#: .\templates\admin\cms_change_form.html.py:57 +#: .\templates\admin\page_change_form.html.py:28 msgid "View on site" msgstr "View on site" -#: templates/admin/cms_change_form.html:87 -#: templates/admin/page_change_form.html:38 -#: templates/admin/page_change_list.html:54 -#: templates/cms/admin/cms/page/change_form.html:24 +#: .\templates\admin\cms_change_form.html.py:87 +#: .\templates\admin\page_change_form.html.py:38 +#: .\templates\admin\page_change_list.html.py:54 +#: .\templates\cms\admin\cms\page\change_form.html.py:24 msgid "Please correct the error below." msgid_plural "Please correct the errors below." msgstr[0] "Please correct the error below." msgstr[1] "Please correct the errors below." -#: templates/admin/cms_change_form.html:107 +#: .\templates\admin\cms_change_form.html.py:107 msgid "All permissions" msgstr "All permissions" -#: templates/admin/cms_change_form.html:108 -#: templates/admin/cms_change_form.html:120 +#: .\templates\admin\cms_change_form.html.py:108 +#: .\templates\admin\cms_change_form.html.py:120 msgid "Loading..." msgstr "Loading..." -#: templates/admin/cms_change_form.html:119 +#: .\templates\admin\cms_change_form.html.py:119 msgid "Page states" msgstr "Page states" -#: templates/admin/cms_change_form.html:142 +#: .\templates\admin\cms_change_form.html.py:142 #, python-format msgid "" "This page must be moderated at level %(moderation_level)s, post a message " @@ -496,228 +508,277 @@ "This page must be moderated at level %(moderation_level)s, post a message " "for moderator." -#: templates/admin/cms_change_form.html:144 +#: .\templates\admin\cms_change_form.html.py:144 msgid "Request approvemet" msgstr "Request approvemet" -#: templates/admin/cms_change_form.html:234 -#: user/templates/registration/registration_form.html:16 +#: .\templates\admin\cms_change_form.html.py:234 +#: .\user\templates\registration\registration_form.html.py:16 msgid "Save" msgstr "Save" -#: templates/admin/cms_change_form.html:235 +#: .\templates\admin\cms_change_form.html.py:235 msgid "Save and continue editing" msgstr "Save and continue editing" -#: templates/admin/cms_change_list.html:51 +#: .\templates\admin\cms_change_list.html.py:51 msgid "Successfully moved" msgstr "Successfully moved" -#: templates/admin/cms_change_list.html:76 +#: .\templates\admin\cms_change_list.html.py:76 #, python-format msgid "Recover deleted %(name)s" msgstr "Recover deleted %(name)s" -#: templates/admin/cms_change_list.html:79 -#: templates/admin/page_change_list.html:46 +#: .\templates\admin\cms_change_list.html.py:79 +#: .\templates\admin\page_change_list.html.py:46 #, python-format msgid "Add %(name)s" msgstr "Add %(name)s" -#: templates/admin/cms_change_list.html:91 +#: .\templates\admin\cms_change_list.html.py:91 msgid "Pages on:" msgstr "Pages on:" -#: templates/admin/cms_change_list.html:108 +#: .\templates\admin\cms_change_list.html.py:108 msgid "on" msgstr "on" -#: templates/admin/cms_change_list.html:108 +#: .\templates\admin\cms_change_list.html.py:108 msgid "off" msgstr "off" -#: templates/admin/cms_change_list.html:110 -#: templates/admin/page_change_list.html:65 +#: .\templates\admin\cms_change_list.html.py:110 +#: .\templates\admin\page_change_list.html.py:65 msgid "Filter" msgstr "Filter" -#: templates/admin/index.html:18 templates/admin/page_index.html:18 +#: .\templates\admin\index.html.py:18 .\templates\admin\page_index.html.py:18 #, python-format msgid "Models available in the %(name)s application." msgstr "Models available in the %(name)s application." -#: templates/admin/index.html:19 templates/admin/page_app_index.html:10 -#: templates/admin/page_index.html:19 +#: .\templates\admin\index.html.py:19 +#: .\templates\admin\page_app_index.html.py:10 +#: .\templates\admin\page_index.html.py:19 #, python-format msgid "%(name)s" msgstr "%(name)s" -#: templates/admin/index.html:29 templates/admin/page_change_form.html:20 -#: templates/admin/page_index.html:29 +#: .\templates\admin\index.html.py:29 +#: .\templates\admin\page_change_form.html.py:20 +#: .\templates\admin\page_index.html.py:29 msgid "Add" msgstr "Add" -#: templates/admin/index.html:35 templates/admin/page_index.html:35 +#: .\templates\admin\index.html.py:35 .\templates\admin\page_index.html.py:35 msgid "Change" msgstr "changed by" -#: templates/admin/index.html:64 templates/admin/page_index.html:45 +#: .\templates\admin\index.html.py:64 .\templates\admin\page_index.html.py:45 msgid "You don't have permission to edit anything." msgstr "You don't have permission to edit anything." -#: templates/admin/index.html:72 templates/admin/page_index.html:53 +#: .\templates\admin\index.html.py:72 .\templates\admin\page_index.html.py:53 msgid "Recent Actions" msgstr "Recent Actions" -#: templates/admin/index.html:73 templates/admin/page_index.html:54 +#: .\templates\admin\index.html.py:73 .\templates\admin\page_index.html.py:54 msgid "My Actions" msgstr "My Actions" -#: templates/admin/index.html:77 templates/admin/page_index.html:58 +#: .\templates\admin\index.html.py:77 .\templates\admin\page_index.html.py:58 msgid "None available" msgstr "None available" -#: templates/admin/index.html:91 templates/admin/page_index.html:72 +#: .\templates\admin\index.html.py:91 .\templates\admin\page_index.html.py:72 msgid "Unknown content" msgstr "Unknown content" -#: templates/admin/page_base.html:20 templates/admin/page_index.html:11 +#: .\templates\admin\page_base.html.py:20 +#: .\templates\admin\page_index.html.py:11 msgid "Pages" msgstr "Pages" -#: templates/admin/page_base_site.html:7 +#: .\templates\admin\page_base_site.html.py:7 msgid "Django administration" msgstr "Django administration" -#: templates/admin/page_login.html:8 +#: .\templates\admin\page_login.html.py:8 msgid "Connexion" msgstr "Login" -#: templates/admin/page_login.html:20 +#: .\templates\admin\page_login.html.py:20 msgid "Username:" msgstr "Username:" -#: templates/admin/page_login.html:24 +#: .\templates\admin\page_login.html.py:24 msgid "Password:" msgstr "Password:" -#: templates/admin/page_login.html:29 -#: user/templates/registration/login.html:39 +#: .\templates\admin\page_login.html.py:29 +#: .\user\templates\registration\login.html.py:39 msgid "Create an account" msgstr "Create an account" -#: templates/admin/page_login.html:30 -#: user/templates/registration/login.html:40 +#: .\templates\admin\page_login.html.py:30 +#: .\user\templates\registration\login.html.py:40 msgid "Forget password?" msgstr "Forget password?" -#: templates/admin/page_login.html:32 -#: user/templates/ldt/user/login_form.html:37 -#: user/templates/ldt/user/login_form.html:45 -#: user/templates/registration/login.html:21 -#: user/templates/registration/password_reset_complete.html:14 +#: .\templates\admin\page_login.html.py:32 +#: .\user\templates\ldt\user\login_form.html.py:37 +#: .\user\templates\ldt\user\login_form.html.py:45 +#: .\user\templates\registration\login.html.py:21 +#: .\user\templates\registration\password_reset_complete.html.py:14 msgid "Log in" msgstr "Log in" -#: templates/cms/admin/cms/page/change_form.html:11 +#: .\templates\cms\admin\cms\page\change_form.html.py:11 msgid "Documentation" msgstr "Documentation" -#: templates/cms/admin/cms/page/change_form.html:11 +#: .\templates\cms\admin\cms\page\change_form.html.py:11 msgid "Change password" msgstr "Change password" -#: templates/cms/admin/cms/page/change_form.html:11 -#: templates/ldt/ldt_base.html:54 user/templates/ldt/user/login_form.html:34 +#: .\templates\cms\admin\cms\page\change_form.html.py:11 +#: .\templates\ldt\ldt_base.html.py:121 +#: .\user\templates\ldt\user\login_form.html.py:34 msgid "Log out" msgstr "Log out" -#: templates/cms/admin/cms/page/change_form.html:42 +#: .\templates\cms\admin\cms\page\change_form.html.py:42 msgid "Ordering" msgstr "Ordering" -#: templates/cms/admin/cms/page/change_form.html:45 +#: .\templates\cms\admin\cms\page\change_form.html.py:45 msgid "Order:" msgstr "Order:" -#: templates/ldt/ldt_base.html:26 +#: .\templates\ldt\ldt_base.html.py:95 msgid "header_title" msgstr "Ldt Platform" -#: templates/ldt/ldt_base.html:44 +#: .\templates\ldt\ldt_base.html.py:111 msgid "home" msgstr "home" -#: templates/ldt/ldt_base.html:45 +#: .\templates\ldt\ldt_base.html.py:112 msgid "contents" msgstr "Contents" -#: templates/ldt/ldt_base.html:46 +#: .\templates\ldt\ldt_base.html.py:113 msgid "indexation projects" msgstr "indexation projects" -#: templates/ldt/ldt_base.html:47 +#: .\templates\ldt\ldt_base.html.py:114 msgid "accounts" msgstr "accounts" -#: templates/ldt/ldt_base.html:48 user/templates/ldt/user/change_email.html:6 -#: user/templates/ldt/user/change_email_done.html:6 -#: user/templates/ldt/user/login_form.html:32 -#: user/templates/registration/password_change_done.html:7 -#: user/templates/registration/password_change_form.html:13 +#: .\templates\ldt\ldt_base.html.py:115 +#: .\user\templates\ldt\user\change_email.html.py:6 +#: .\user\templates\ldt\user\change_email_done.html.py:6 +#: .\user\templates\ldt\user\login_form.html.py:32 +#: .\user\templates\registration\password_change_done.html.py:7 +#: .\user\templates\registration\password_change_form.html.py:13 msgid "Profiles" msgstr "Profiles" -#: templates/ldt/ldt_base.html:62 +#: .\templates\ldt\ldt_base.html.py:129 msgid "Langue" msgstr "Langue" -#: templates/ldt/ldt_raw_base.html:13 +#: .\templates\ldt\ldt_raw_base.html.py:13 msgid "page_title" msgstr "Ldt Platform" -#: user/admin.py:15 +#: .\text\models.py:22 +msgid "annotation.external_id" +msgstr "external id" + +#: .\text\models.py:23 +msgid "annotation.uri" +msgstr "uri" + +#: .\text\models.py:24 +msgid "annotation.tags" +msgstr "tags" + +#: .\text\models.py:25 +msgid "annotation.title" +msgstr "title" + +#: .\text\models.py:26 +msgid "annotation.description" +msgstr "description" + +#: .\text\models.py:27 +msgid "annotation.text" +msgstr "text" + +#: .\text\models.py:28 +msgid "annotation.color" +msgstr "color" + +#: .\text\models.py:29 +msgid "creator.title" +msgstr "title" + +#: .\text\models.py:30 +msgid "contributor.title" +msgstr "title" + +#: .\text\models.py:31 +msgid "annotation.creation_date" +msgstr "creation date" + +#: .\text\models.py:32 +msgid "annotation.update_date" +msgstr "update date" + +#: .\user\admin.py:13 msgid "User details" msgstr "User details" -#: user/admin.py:16 +#: .\user\admin.py:14 msgid "Groups" msgstr "Groups" -#: user/admin.py:17 +#: .\user\admin.py:15 msgid "Permissions" msgstr "Permissions" -#: user/admin.py:27 user/templates/ldt/user/login_form.html:61 +#: .\user\admin.py:25 .\user\templates\ldt\user\login_form.html.py:61 msgid "Password" msgstr "Password" -#: user/forms.py:31 +#: .\user\forms.py:31 msgid "New password" msgstr "New password" -#: user/forms.py:33 +#: .\user\forms.py:33 msgid "New password confirmation" msgstr "New password confirmation" -#: user/forms.py:78 user/forms.py:79 +#: .\user\forms.py:78 .\user\forms.py:79 msgid "E-mail" msgstr "E-mail" -#: user/forms.py:90 +#: .\user\forms.py:90 msgid "The two emails didn't match." msgstr "The two emails didn't match." -#: user/views.py:45 user/templates/registration/login.html:24 +#: .\user\views.py:45 .\user\templates\registration\login.html.py:24 msgid "Sorry, that's not a valid username or password." msgstr "Sorry, that's not a valid username or password." -#: user/templates/ldt/user/change_email.html:7 -#: user/templates/ldt/user/change_email.html:10 -msgid "Modification de l'adresse émail" +#: .\user\templates\ldt\user\change_email.html.py:7 +#: .\user\templates\ldt\user\change_email.html.py:10 +msgid "Modification de l'adresse émail" msgstr "E-mail change" -#: user/templates/ldt/user/change_email.html:26 +#: .\user\templates\ldt\user\change_email.html.py:26 msgid "" "Please enter your new e-mail twice so we can verify you typed it in " "correctly." @@ -725,134 +786,134 @@ "Please enter your new e-mail twice so we can verify you typed it in " "correctly." -#: user/templates/ldt/user/change_email.html:32 +#: .\user\templates\ldt\user\change_email.html.py:32 msgid "email" msgstr "email" -#: user/templates/ldt/user/change_email.html:41 -msgid "Confirmation de l'adresse émail" +#: .\user\templates\ldt\user\change_email.html.py:41 +msgid "Confirmation de l'adresse émail" msgstr "E-mail confirmation" -#: user/templates/ldt/user/change_email.html:48 +#: .\user\templates\ldt\user\change_email.html.py:48 msgid "change my e-mail" msgstr "Change my e-mail" -#: user/templates/ldt/user/change_email_done.html:7 -#: user/templates/ldt/user/change_email_done.html:10 +#: .\user\templates\ldt\user\change_email_done.html.py:7 +#: .\user\templates\ldt\user\change_email_done.html.py:10 msgid "email change" msgstr "email change" -#: user/templates/ldt/user/change_email_done.html:12 +#: .\user\templates\ldt\user\change_email_done.html.py:12 msgid "email changed" msgstr "changed by" -#: user/templates/ldt/user/change_email_done.html:13 +#: .\user\templates\ldt\user\change_email_done.html.py:13 msgid "back to profile" msgstr "back to profile" -#: user/templates/ldt/user/home.html:9 +#: .\user\templates\ldt\user\home.html.py:9 msgid "Se connecter" msgstr "Login" -#: user/templates/ldt/user/home.html:10 -msgid "Créer un compte" +#: .\user\templates\ldt\user\home.html.py:10 +msgid "Créer un compte" msgstr "Create an account" -#: user/templates/ldt/user/home.html:11 -msgid "récupérer mot de passe" +#: .\user\templates\ldt\user\home.html.py:11 +msgid "récupérer mot de passe" msgstr "Forget password?" -#: user/templates/ldt/user/login_form.html:50 +#: .\user\templates\ldt\user\login_form.html.py:50 msgid "create account" msgstr "create account" -#: user/templates/ldt/user/login_form.html:54 +#: .\user\templates\ldt\user\login_form.html.py:54 msgid "Pseudo" msgstr "Username" -#: user/templates/ldt/user/login_form.html:57 -#: user/templates/ldt/user/login_form.html:64 +#: .\user\templates\ldt\user\login_form.html.py:57 +#: .\user\templates\ldt\user\login_form.html.py:64 msgid "this field is compulsory" msgstr "this field is compulsory" -#: user/templates/ldt/user/login_form.html:68 +#: .\user\templates\ldt\user\login_form.html.py:68 msgid "reset password" msgstr "reset password" -#: user/templates/ldt/user/login_form.html:71 +#: .\user\templates\ldt\user\login_form.html.py:71 msgid "Connection" msgstr "Login" -#: user/templates/ldt/user/profile.html:6 -#: user/templates/registration/password_change_form.html:14 -#: user/templates/registration/password_change_form.html:17 +#: .\user\templates\ldt\user\profile.html.py:6 +#: .\user\templates\registration\password_change_form.html.py:14 +#: .\user\templates\registration\password_change_form.html.py:17 msgid "Password change" msgstr "Password change" -#: user/templates/ldt/user/profile.html:7 +#: .\user\templates\ldt\user\profile.html.py:7 msgid "Mail change" msgstr "Mail change" -#: user/templates/ldt/user/space.html:13 +#: .\user\templates\ldt\user\space.html.py:13 msgid "Page" msgstr "Pages" -#: user/templates/ldt/user/space.html:16 +#: .\user\templates\ldt\user\space.html.py:16 msgid "Projets Lignes de temps" msgstr "Lignes de temps projects" -#: user/templates/registration/activate.html:6 -#: user/templates/registration/activate.html:9 +#: .\user\templates\registration\activate.html.py:6 +#: .\user\templates\registration\activate.html.py:9 msgid "Activate account" msgstr "Activate account" -#: user/templates/registration/activate.html:12 +#: .\user\templates\registration\activate.html.py:12 msgid "You have activated your account" msgstr "You have activated your account" -#: user/templates/registration/activate.html:13 +#: .\user\templates\registration\activate.html.py:13 msgid "Go back to login page" msgstr "Go back to login page" -#: user/templates/registration/activation_complete.html:4 -#: user/templates/registration/registration_complete.html:8 +#: .\user\templates\registration\activation_complete.html.py:4 +#: .\user\templates\registration\registration_complete.html.py:8 msgid "Sign up successfully" msgstr "Sign up successfully" -#: user/templates/registration/activation_complete.html:6 +#: .\user\templates\registration\activation_complete.html.py:6 msgid "activation completed" msgstr "activation completed" -#: user/templates/registration/logged_out.html:8 +#: .\user\templates\registration\logged_out.html.py:8 msgid "Thanks for spending some quality time with the Web site today." msgstr "Thanks for spending some quality time with the Web site today." -#: user/templates/registration/logged_out.html:10 +#: .\user\templates\registration\logged_out.html.py:10 msgid "Log in again" msgstr "Log in again" -#: user/templates/registration/login.html:46 +#: .\user\templates\registration\login.html.py:46 msgid "login" msgstr "login" -#: user/templates/registration/password_change_done.html:3 -#: user/templates/registration/password_change_done.html:11 +#: .\user\templates\registration\password_change_done.html.py:3 +#: .\user\templates\registration\password_change_done.html.py:11 msgid "password change successful" msgstr "password change successful" -#: user/templates/registration/password_change_done.html:8 +#: .\user\templates\registration\password_change_done.html.py:8 msgid "password change" msgstr "password change" -#: user/templates/registration/password_change_done.html:14 +#: .\user\templates\registration\password_change_done.html.py:14 msgid "Your password has been changed." msgstr "Your password has been changed." -#: user/templates/registration/password_change_done.html:15 +#: .\user\templates\registration\password_change_done.html.py:15 msgid "Go back to profiles" msgstr "Go back to profiles" -#: user/templates/registration/password_change_form.html:20 +#: .\user\templates\registration\password_change_form.html.py:20 msgid "" "Please enter your old password, for security's sake, and then enter your new " "password twice so we can verify you typed it in correctly." @@ -860,44 +921,44 @@ "Please enter your old password, for security's sake, and then enter your new " "password twice so we can verify you typed it in correctly." -#: user/templates/registration/password_change_form.html:26 +#: .\user\templates\registration\password_change_form.html.py:26 msgid "Old password:" msgstr "Old password:" -#: user/templates/registration/password_change_form.html:32 -#: user/templates/registration/password_reset_confirm.html:19 +#: .\user\templates\registration\password_change_form.html.py:32 +#: .\user\templates\registration\password_reset_confirm.html.py:19 msgid "New password:" msgstr "New password:" -#: user/templates/registration/password_change_form.html:38 -#: user/templates/registration/password_reset_confirm.html:21 +#: .\user\templates\registration\password_change_form.html.py:38 +#: .\user\templates\registration\password_reset_confirm.html.py:21 msgid "Confirm password:" msgstr "Confirm password:" -#: user/templates/registration/password_change_form.html:44 -#: user/templates/registration/password_reset_confirm.html:22 +#: .\user\templates\registration\password_change_form.html.py:44 +#: .\user\templates\registration\password_reset_confirm.html.py:22 msgid "Change my password" msgstr "Change my password" -#: user/templates/registration/password_reset_complete.html:6 -#: user/templates/registration/password_reset_confirm.html:6 -#: user/templates/registration/password_reset_confirm.html:9 -#: user/templates/registration/password_reset_done.html:6 -#: user/templates/registration/password_reset_form.html:13 -#: user/templates/registration/password_reset_form.html:15 -#: user/templates/registration/password_reset_form.html:18 +#: .\user\templates\registration\password_reset_complete.html.py:6 +#: .\user\templates\registration\password_reset_confirm.html.py:6 +#: .\user\templates\registration\password_reset_confirm.html.py:9 +#: .\user\templates\registration\password_reset_done.html.py:6 +#: .\user\templates\registration\password_reset_form.html.py:13 +#: .\user\templates\registration\password_reset_form.html.py:15 +#: .\user\templates\registration\password_reset_form.html.py:18 msgid "Password reset" msgstr "Password reset" -#: user/templates/registration/password_reset_complete.html:9 +#: .\user\templates\registration\password_reset_complete.html.py:9 msgid "Password reset complete" msgstr "Password reset complete" -#: user/templates/registration/password_reset_complete.html:12 +#: .\user\templates\registration\password_reset_complete.html.py:12 msgid "Your password has been set. You may go ahead and log in now." msgstr "Your password has been set. You may go ahead and log in now." -#: user/templates/registration/password_reset_confirm.html:15 +#: .\user\templates\registration\password_reset_confirm.html.py:15 msgid "" "Please enter your new password twice so we can verify you typed it in " "correctly." @@ -905,11 +966,11 @@ "Please enter your new password twice so we can verify you typed it in " "correctly." -#: user/templates/registration/password_reset_confirm.html:27 +#: .\user\templates\registration\password_reset_confirm.html.py:27 msgid "Password reset unsuccessful" msgstr "Password reset unsuccessful" -#: user/templates/registration/password_reset_confirm.html:29 +#: .\user\templates\registration\password_reset_confirm.html.py:29 msgid "" "The password reset link was invalid, possibly because it has already been " "used. Please request a new password reset." @@ -917,11 +978,11 @@ "The password reset link was invalid, possibly because it has already been " "used. Please request a new password reset." -#: user/templates/registration/password_reset_done.html:8 +#: .\user\templates\registration\password_reset_done.html.py:8 msgid "Password reset successful" msgstr "Password reset successful" -#: user/templates/registration/password_reset_done.html:12 +#: .\user\templates\registration\password_reset_done.html.py:12 msgid "" "We've e-mailed you instructions for setting your password to the e-mail " "address you submitted. You should be receiving it shortly." @@ -929,33 +990,33 @@ "We've e-mailed you instructions for setting your password to the e-mail " "address you submitted. You should be receiving it shortly." -#: user/templates/registration/password_reset_email.html:2 +#: .\user\templates\registration\password_reset_email.html.py:2 msgid "You're receiving this e-mail because you requested a password reset" msgstr "You're receiving this e-mail because you requested a password reset" -#: user/templates/registration/password_reset_email.html:3 +#: .\user\templates\registration\password_reset_email.html.py:3 #, python-format msgid "for your user account at %(site_name)s" msgstr "for your user account at %(site_name)s" -#: user/templates/registration/password_reset_email.html:5 +#: .\user\templates\registration\password_reset_email.html.py:5 msgid "Please go to the following page and choose a new password:" msgstr "Please go to the following page and choose a new password:" -#: user/templates/registration/password_reset_email.html:9 +#: .\user\templates\registration\password_reset_email.html.py:9 msgid "Your username, in case you've forgotten:" msgstr "Your username, in case you've forgotten:" -#: user/templates/registration/password_reset_email.html:11 +#: .\user\templates\registration\password_reset_email.html.py:11 msgid "Thanks for using our site!" msgstr "Thanks for using our site!" -#: user/templates/registration/password_reset_email.html:13 +#: .\user\templates\registration\password_reset_email.html.py:13 #, python-format msgid "The %(site_name)s team" msgstr "The %(site_name)s team" -#: user/templates/registration/password_reset_form.html:22 +#: .\user\templates\registration\password_reset_form.html.py:22 msgid "" "Forgotten your password? Enter your e-mail address below, and we'll e-mail " "instructions for setting a new one." @@ -963,37 +1024,35 @@ "Forgotten your password? Enter your e-mail address below, and we'll e-mail " "instructions for setting a new one." -#: user/templates/registration/password_reset_form.html:27 -msgid "Adresse émail" +#: .\user\templates\registration\password_reset_form.html.py:27 +msgid "Adresse émail" msgstr "E-mail" -#: user/templates/registration/password_reset_form.html:32 +#: .\user\templates\registration\password_reset_form.html.py:32 msgid "Reset my password" msgstr "Reset my password" -#: user/templates/registration/registration_active.html:5 -#: user/templates/registration/registration_active.html:7 +#: .\user\templates\registration\registration_active.html.py:5 +#: .\user\templates\registration\registration_active.html.py:7 msgid "Activate the account" msgstr "Activate the account" -#: user/templates/registration/registration_active.html:9 +#: .\user\templates\registration\registration_active.html.py:9 msgid "" -"Vous avez bien activé votre compte, vous pouvez accedez à votre espace " +"Vous avez bien activé votre compte, vous pouvez accedez à votre espace " "personnel." -msgstr "" -"Vous avez bien activé votre compte, vous pouvez accedez à votre espace " -"personnel." +msgstr "Your account is now activated. You can now access your profile." -#: user/templates/registration/registration_active.html:10 -msgid "retourner à la page de connexion" +#: .\user\templates\registration\registration_active.html.py:10 +msgid "retourner à la page de connexion" msgstr "go back to login page" -#: user/templates/registration/registration_complete.html:6 -#: user/templates/registration/registration_form.html:11 +#: .\user\templates\registration\registration_complete.html.py:6 +#: .\user\templates\registration\registration_form.html.py:11 msgid "Sign up" msgstr "Sign up" -#: user/templates/registration/registration_complete.html:10 +#: .\user\templates\registration\registration_complete.html.py:10 msgid "" "We've e-mailed you instructions for activate your account to the e-mail " "address you submitted. You should be receiving it shortly." diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/locale/fr/LC_MESSAGES/django.mo Binary file src/ldt/ldt/locale/fr/LC_MESSAGES/django.mo has changed diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/locale/fr/LC_MESSAGES/django.po --- a/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Wed Mar 09 16:48:17 2011 +0100 @@ -7,200 +7,203 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-12-27 15:49+0100\n" +"POT-Creation-Date: 2011-03-03 15:12+0100\n" "PO-Revision-Date: 2010-03-09 15:52+0100\n" "Last-Translator: Yves-Marie Haussonne \n" "Language-Team: LANGUAGE \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Language: \n" -#: forms/widgets.py:17 +#: .\forms\widgets.py:17 msgid "Date" msgstr "Date" -#: forms/widgets.py:17 +#: .\forms\widgets.py:17 msgid "Time" msgstr "Time" -#: ldt_utils/forms.py:43 ldt_utils/models.py:82 +#: .\ldt_utils\forms.py:43 .\ldt_utils\models.py:100 msgid "content.content_creation_date" msgstr "Date de creation du contenu" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "content.media_input_type" msgstr "Source du média" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "file_upload" msgstr "upload fichier" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "url" msgstr "url" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "existing_media" msgstr "média existant" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "create_media" msgstr "source serveur de stream" -#: ldt_utils/forms.py:44 +#: .\ldt_utils\forms.py:44 msgid "none_media" msgstr "Aucun" -#: ldt_utils/models.py:25 +#: .\ldt_utils\models.py:27 msgid "media.external_id" msgstr "id externe" -#: ldt_utils/models.py:26 +#: .\ldt_utils\models.py:28 msgid "media.external_permalink" msgstr "permalien externe" -#: ldt_utils/models.py:27 +#: .\ldt_utils\models.py:29 msgid "media.external_publication_url" msgstr "url de publication externe" -#: ldt_utils/models.py:28 +#: .\ldt_utils\models.py:30 msgid "media.external_src_url" msgstr "url source" -#: ldt_utils/models.py:29 +#: .\ldt_utils\models.py:31 msgid "media.creation_date" msgstr "Date de création" -#: ldt_utils/models.py:30 +#: .\ldt_utils\models.py:32 msgid "media.media_creation_date" msgstr "Date de création du média" -#: ldt_utils/models.py:31 +#: .\ldt_utils\models.py:33 msgid "media.update_date" msgstr "Date de maj" -#: ldt_utils/models.py:32 +#: .\ldt_utils\models.py:34 msgid "media.videopath" msgstr "videopath" -#: ldt_utils/models.py:33 +#: .\ldt_utils\models.py:35 msgid "media.duration" msgstr "Durée du contenu (ms)" -#: ldt_utils/models.py:34 +#: .\ldt_utils\models.py:36 msgid "media.creator" msgstr "Créateur" -#: ldt_utils/models.py:35 +#: .\ldt_utils\models.py:37 msgid "description" msgstr "description" -#: ldt_utils/models.py:36 -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:69 +#: .\ldt_utils\models.py:38 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:69 msgid "title" msgstr "Titre" -#: ldt_utils/models.py:37 +#: .\ldt_utils\models.py:39 msgid "media.src" msgstr "Sources" -#: ldt_utils/models.py:74 +#: .\ldt_utils\models.py:40 +msgid "media.mimetype" +msgstr "mimetype" + +#: .\ldt_utils\models.py:92 msgid "content.iri_id" msgstr "iri id" -#: ldt_utils/models.py:75 +#: .\ldt_utils\models.py:93 msgid "content.iriurl" msgstr "iri url" -#: ldt_utils/models.py:76 +#: .\ldt_utils\models.py:94 msgid "content.creation_date" msgstr "date de création" -#: ldt_utils/models.py:77 +#: .\ldt_utils\models.py:95 msgid "content.update_date" msgstr "Date de maj" -#: ldt_utils/models.py:78 +#: .\ldt_utils\models.py:96 msgid "content.title" msgstr "titre" -#: ldt_utils/models.py:79 +#: .\ldt_utils\models.py:97 msgid "content.description" msgstr "Description" -#: ldt_utils/models.py:80 +#: .\ldt_utils\models.py:98 msgid "content.authors" msgstr "Autheurs" -#: ldt_utils/models.py:81 +#: .\ldt_utils\models.py:99 msgid "content.duration" msgstr "Durée (ms)" -#: ldt_utils/models.py:260 +#: .\ldt_utils\models.py:288 msgid "created by" msgstr "créé par" -#: ldt_utils/models.py:261 +#: .\ldt_utils\models.py:289 msgid "changed by" msgstr "modifié par" -#: ldt_utils/views.py:72 ldt_utils/views.py:332 ldt_utils/views.py:378 +#: .\ldt_utils\views.py:81 .\ldt_utils\views.py:358 .\ldt_utils\views.py:404 msgid "You can not access this project" msgstr "vous n'avez pas l'autorisation d'accéder à ce projet" -#: ldt_utils/views.py:536 +#: .\ldt_utils\views.py:562 #, python-format msgid "the project %(title)s is published. please unpublish before deleting." msgstr "Le projet %(title)s est publié. Déplublier le avant de l'effacer." -#: ldt_utils/views.py:537 +#: .\ldt_utils\views.py:563 msgid "can not delete the project. Please correct the following error" -msgstr "" -"Le projet ne peut pas être effacé. Veuillez corriger les erreurs suivantes." +msgstr "Le projet ne peut pas être effacé. Veuillez corriger les erreurs suivantes." -#: ldt_utils/views.py:538 +#: .\ldt_utils\views.py:564 msgid "title error deleting project" msgstr "Erreur lors de l'effacement du projet" -#: ldt_utils/views.py:540 +#: .\ldt_utils\views.py:566 #, python-format msgid "please confirm deleting project %(title)s" msgstr "Confirmer l'efaccement du projet intitulé %(title)s" -#: ldt_utils/views.py:541 +#: .\ldt_utils\views.py:567 msgid "confirm deletion" msgstr "Confirmation d'effacement" -#: ldt_utils/views.py:695 +#: .\ldt_utils\views.py:721 msgid "Problem when downloading file from url : " msgstr "Problème lors du téléchargement du fichier : " -#: ldt_utils/views.py:698 +#: .\ldt_utils\views.py:724 msgid "Problem when uploading file : " msgstr "Problème lors de l'upload du fichier : " -#: ldt_utils/views.py:768 +#: .\ldt_utils\views.py:792 #, python-format msgid "There is %(count)d error when deleting content" msgid_plural "There are %(count)d errors when deleting content" msgstr[0] "Il y a %(count)d erreur lors de l'effacement du contenu" msgstr[1] "Il y a %(count)d erreurs lors de l'effacement du contenu" -#: ldt_utils/views.py:769 +#: .\ldt_utils\views.py:793 msgid "title error deleting content" msgstr "Erreur lors de l'effacement du contenu" -#: ldt_utils/views.py:771 +#: .\ldt_utils\views.py:795 #, python-format msgid "Confirm delete content %(titles)s" msgstr "Veuillez confirmer l'effacement du contenu %(titles)s" -#: ldt_utils/views.py:772 +#: .\ldt_utils\views.py:796 msgid "confirm delete content" msgstr "Confirmation effacement contenu" -#: ldt_utils/views.py:803 +#: .\ldt_utils\views.py:827 #, python-format msgid "" "Content '%(title)s' is referenced by this project : %(project_titles)s. " @@ -212,797 +215,839 @@ "Le contenu '%(title)s' est référencé par le projet '%(project_titles)s'." "Veuillez l'effacer préalablement." msgstr[1] "" -"Le contenu '%(title)s' est référencé par les projets suivants : " -"'%(project_titles)s'.Veuillez les effacer préalablement." +"Le contenu '%(title)s' est référencé par les projets suivants : '%" +"(project_titles)s'.Veuillez les effacer préalablement." -#: ldt_utils/templates/admin/ldt_utils/app_action.html:4 -#: templates/admin/cms_change_list.html:7 -#: templates/admin/page_app_index.html:8 -#: templates/admin/page_change_form.html:17 -#: templates/admin/page_change_list.html:25 -#: user/templates/registration/logged_out.html:4 +#: .\ldt_utils\templates\admin\ldt_utils\app_action.html.py:4 +#: .\templates\admin\cms_change_list.html.py:7 +#: .\templates\admin\page_app_index.html.py:8 +#: .\templates\admin\page_change_form.html.py:17 +#: .\templates\admin\page_change_list.html.py:25 +#: .\user\templates\registration\logged_out.html.py:4 msgid "Home" msgstr "Accueil" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:55 -#: templates/admin/page_base.html:19 -#: user/templates/ldt/user/login_form.html:33 -#: user/templates/ldt/user/space.html:6 user/templates/ldt/user/space.html:9 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:55 +#: .\templates\admin\page_base.html.py:19 +#: .\user\templates\ldt\user\login_form.html.py:33 +#: .\user\templates\ldt\user\space.html.py:6 +#: .\user\templates\ldt\user\space.html.py:9 msgid "Space" msgstr "Esp. perso" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:56 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:56 msgid "Ldt Project" msgstr "Projet lignes de temps" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:59 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:59 msgid "Contents" msgstr "Liste des contenus" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:63 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:63 msgid "Create new content" msgstr "Créer un nouveau contenu" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:66 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:66 msgid "Content" msgstr "Contenu" -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:70 -#: ldt_utils/templates/ldt/ldt_utils/content_list.html:77 -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:11 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:70 +#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:77 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:11 msgid "create project" msgstr "Créer un nouveau projet d'indexation" -#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:11 +#: .\ldt_utils\templates\ldt\ldt_utils\copy_ldt.html.py:12 msgid "Copy your project" msgstr "Copier votre projet" -#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:14 -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:38 +#: .\ldt_utils\templates\ldt\ldt_utils\copy_ldt.html.py:16 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:38 msgid "Title" msgstr "Titre" -#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:16 +#: .\ldt_utils\templates\ldt\ldt_utils\copy_ldt.html.py:20 msgid "Copy" msgstr "Copier" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:47 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:47 msgid "" "The operation could not be performed because one or more error(s) occurred." "
Please resubmit the content form after making the following changes:" -msgstr "" -"Opération impossible à cause d'une ou plusieurs erreurs.
Veuillez " +msgstr "Opération impossible à cause d'une ou plusieurs erreurs.
Veuillez " "resoumettre le formulaire contenu après avoir fait les changements suivants:" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:58 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:58 msgid "" "The operation could not be performed because one or more error(s) occurred." "
Please resubmit the media form after making the following changes:" -msgstr "" -"opération impossible à cause d'une ou plusieurs erreurs.
Veuillez " +msgstr "opération impossible à cause d'une ou plusieurs erreurs.
Veuillez " "resoumettre le formulaire media après avoir fait les changements suivants:" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:68 -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:21 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:68 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:21 msgid "Create content" msgstr "Créer un contenu" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:105 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:105 msgid "media file is being processed please wait." msgstr "Le fichier média est en cours de traitement. Veullez patienter." -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:109 -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:59 -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:49 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:109 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:59 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:49 msgid "close_cancel" msgstr "Fermer" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:110 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:110 msgid "delete" msgstr "Effacer" -#: ldt_utils/templates/ldt/ldt_utils/create_content.html:111 +#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:111 msgid "write" msgstr "Enregistrer" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:34 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:34 msgid "Update your project" msgstr "Mettre à jour votre projet Lignes de Temps" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:34 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:34 msgid "Create your project" msgstr "Créer votre projet Lignes de Temps" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:40 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:40 msgid "List of contents" msgstr "Liste de contenus" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:42 -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:3 -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:3 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:42 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:3 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:3 msgid "name" msgstr "nom" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:61 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:61 msgid "delete_project" msgstr "Effacer" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:62 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:62 msgid "update_project" msgstr "Mettre à jour" -#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:64 +#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:64 msgid "create_project" msgstr "Créer un nouveau projet Ligne de Temps" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:60 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:60 msgid "project id" msgstr "Identifiant du projet " -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:61 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:61 msgid "copy to clipboard" msgstr "Copier l'id dans le presse-papiers" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_player" msgstr "Code Lecteur métadata" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_seo_body" msgstr "Code SEO" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_seo_meta" msgstr "Code balise meta en-tête" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:70 msgid "popup_links" msgstr "Liste de liens" -#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:84 +#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:84 msgid "clik here to see the project content" msgstr "cliquer ici pour voir le contenu du projet" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:30 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:30 msgid "error" msgstr "Erreur" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:30 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:30 msgid "confirm" msgstr "Confirmation d'effacement" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:45 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:45 msgid "close_error" msgstr "Fermer" -#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:50 +#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:50 msgid "do_delete" msgstr "Effacer" -#: ldt_utils/templates/ldt/ldt_utils/ldt_list.html:77 -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:63 +#: .\ldt_utils\templates\ldt\ldt_utils\init_ldt_full.html.py:17 +msgid "" +"Your current work is modified. Click Cancel and save it one last time before " +"leaving. Click OK to leave without saving." +msgstr "Vous avez un travail en cours. Cliquez sur Annuler et sauvegardez votre travail une dernière fois. Cliquez sur OK pour quitter sans sauvegarder." + +#: .\ldt_utils\templates\ldt\ldt_utils\ldt_list.html.py:77 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:63 msgid "project list" msgstr "Liste des projets" -#: ldt_utils/templates/ldt/ldt_utils/ldt_list.html:79 -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:54 -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:65 +#: .\ldt_utils\templates\ldt\ldt_utils\ldt_list.html.py:79 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:54 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:65 msgid "search" msgstr "Recherche" -#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:52 +#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:52 msgid "content list" msgstr "Liste des contenus" -#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:12 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\contentslist.html.py:12 msgid "preview media" msgstr "aperçu" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:12 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:12 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:28 msgid "open ldt" msgstr "Ouvrir sous Lignes de Temps" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:13 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:13 msgid "copy project" msgstr "Copier votre projet" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:14 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:14 msgid "link json by id" msgstr "Ouvrir le lecteur de métadata" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:17 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:17 msgid "Project published, click to unpublish" msgstr "Projet publié, cliquer pour de-publier" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:19 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:19 msgid "Project not published, click to publish" msgstr "Projet non publié, cliquer pour publier" -#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:36 +#: .\ldt_utils\templates\ldt\ldt_utils\partial\projectslist.html.py:37 msgid "Create project" msgstr "Créer un nouveau projet d'indexation" -#: templates/admin/cms_change_form.html:30 +#: .\templates\admin\cms_change_form.html.py:30 msgid "Approve page deletion" msgstr "Accepter l'effacement de la page" -#: templates/admin/cms_change_form.html:36 +#: .\templates\admin\cms_change_form.html.py:36 #, python-format msgid "(requires approvement at %(moderation_level)s level)" msgstr "(Demande l'approbation au niveau %(moderation_level)s)" -#: templates/admin/cms_change_form.html:37 +#: .\templates\admin\cms_change_form.html.py:37 msgid "(you can perform actions on this page directly)" msgstr "(Vous pouvez agir sur cette page directement)" -#: templates/admin/cms_change_form.html:50 +#: .\templates\admin\cms_change_form.html.py:50 msgid "Remove delete request" msgstr "Effacer la requête d'affacement" -#: templates/admin/cms_change_form.html:52 +#: .\templates\admin\cms_change_form.html.py:52 msgid "Approve delete" msgstr "Accepter l'effacement" -#: templates/admin/cms_change_form.html:52 +#: .\templates\admin\cms_change_form.html.py:52 msgid "Approve" msgstr "Accepter" -#: templates/admin/cms_change_form.html:52 -#: templates/admin/cms_change_form.html:53 +#: .\templates\admin\cms_change_form.html.py:52 +#: .\templates\admin\cms_change_form.html.py:53 msgid "draft" msgstr "brouillon" -#: templates/admin/cms_change_form.html:53 +#: .\templates\admin\cms_change_form.html.py:53 msgid "Preview" msgstr "Aperçu" -#: templates/admin/cms_change_form.html:56 -#: templates/admin/page_change_form.html:27 +#: .\templates\admin\cms_change_form.html.py:56 +#: .\templates\admin\page_change_form.html.py:27 msgid "History" msgstr "Histoire" -#: templates/admin/cms_change_form.html:57 -#: templates/admin/page_change_form.html:28 +#: .\templates\admin\cms_change_form.html.py:57 +#: .\templates\admin\page_change_form.html.py:28 msgid "View on site" msgstr "Voir sur le site" -#: templates/admin/cms_change_form.html:87 -#: templates/admin/page_change_form.html:38 -#: templates/admin/page_change_list.html:54 -#: templates/cms/admin/cms/page/change_form.html:24 +#: .\templates\admin\cms_change_form.html.py:87 +#: .\templates\admin\page_change_form.html.py:38 +#: .\templates\admin\page_change_list.html.py:54 +#: .\templates\cms\admin\cms\page\change_form.html.py:24 msgid "Please correct the error below." msgid_plural "Please correct the errors below." msgstr[0] "Veuillez corriger l'erreur ci-dessous" msgstr[1] "Veuillez corriger les erreurs ci-dessous" -#: templates/admin/cms_change_form.html:107 +#: .\templates\admin\cms_change_form.html.py:107 msgid "All permissions" msgstr "Toutes le parmissions" -#: templates/admin/cms_change_form.html:108 -#: templates/admin/cms_change_form.html:120 +#: .\templates\admin\cms_change_form.html.py:108 +#: .\templates\admin\cms_change_form.html.py:120 msgid "Loading..." msgstr "Chargement..." -#: templates/admin/cms_change_form.html:119 +#: .\templates\admin\cms_change_form.html.py:119 msgid "Page states" msgstr "Etat de la page" -#: templates/admin/cms_change_form.html:142 +#: .\templates\admin\cms_change_form.html.py:142 #, python-format msgid "" "This page must be moderated at level %(moderation_level)s, post a message " "for moderator." -msgstr "" -"Le niveau nécessaire pour modérer cette page est le niveau " -"%(moderation_level)s, laisser un message pour le modérateur" +msgstr "Le niveau nécessaire pour modérer cette page est le niveau %" +"(moderation_level)s, laisser un message pour le modérateur" -#: templates/admin/cms_change_form.html:144 +#: .\templates\admin\cms_change_form.html.py:144 msgid "Request approvemet" msgstr "Demander l'approbation" -#: templates/admin/cms_change_form.html:234 -#: user/templates/registration/registration_form.html:16 +#: .\templates\admin\cms_change_form.html.py:234 +#: .\user\templates\registration\registration_form.html.py:16 msgid "Save" msgstr "Enregistrer" -#: templates/admin/cms_change_form.html:235 +#: .\templates\admin\cms_change_form.html.py:235 msgid "Save and continue editing" msgstr "Sauver et continuer l'édition" -#: templates/admin/cms_change_list.html:51 +#: .\templates\admin\cms_change_list.html.py:51 msgid "Successfully moved" msgstr "Déplacement réussi" -#: templates/admin/cms_change_list.html:76 +#: .\templates\admin\cms_change_list.html.py:76 #, python-format msgid "Recover deleted %(name)s" msgstr "Récupérer %(name)s effacé" -#: templates/admin/cms_change_list.html:79 -#: templates/admin/page_change_list.html:46 +#: .\templates\admin\cms_change_list.html.py:79 +#: .\templates\admin\page_change_list.html.py:46 #, python-format msgid "Add %(name)s" msgstr "Ajouter %(name)s" -#: templates/admin/cms_change_list.html:91 +#: .\templates\admin\cms_change_list.html.py:91 msgid "Pages on:" msgstr "Pages sur:" -#: templates/admin/cms_change_list.html:108 +#: .\templates\admin\cms_change_list.html.py:108 msgid "on" msgstr "on" -#: templates/admin/cms_change_list.html:108 +#: .\templates\admin\cms_change_list.html.py:108 msgid "off" msgstr "off" -#: templates/admin/cms_change_list.html:110 -#: templates/admin/page_change_list.html:65 +#: .\templates\admin\cms_change_list.html.py:110 +#: .\templates\admin\page_change_list.html.py:65 msgid "Filter" msgstr "Filtre" -#: templates/admin/index.html:18 templates/admin/page_index.html:18 +#: .\templates\admin\index.html.py:18 .\templates\admin\page_index.html.py:18 #, python-format msgid "Models available in the %(name)s application." msgstr "Le modèle disponible dans l'application %(name)s." -#: templates/admin/index.html:19 templates/admin/page_app_index.html:10 -#: templates/admin/page_index.html:19 +#: .\templates\admin\index.html.py:19 +#: .\templates\admin\page_app_index.html.py:10 +#: .\templates\admin\page_index.html.py:19 #, python-format msgid "%(name)s" msgstr "%(name)s" -#: templates/admin/index.html:29 templates/admin/page_change_form.html:20 -#: templates/admin/page_index.html:29 +#: .\templates\admin\index.html.py:29 +#: .\templates\admin\page_change_form.html.py:20 +#: .\templates\admin\page_index.html.py:29 msgid "Add" msgstr "Ajouter" -#: templates/admin/index.html:35 templates/admin/page_index.html:35 +#: .\templates\admin\index.html.py:35 .\templates\admin\page_index.html.py:35 msgid "Change" msgstr "modifié par" -#: templates/admin/index.html:64 templates/admin/page_index.html:45 +#: .\templates\admin\index.html.py:64 .\templates\admin\page_index.html.py:45 msgid "You don't have permission to edit anything." msgstr "Vous n'aver pas l'autorisation d'éditer quoi que ce soit." -#: templates/admin/index.html:72 templates/admin/page_index.html:53 +#: .\templates\admin\index.html.py:72 .\templates\admin\page_index.html.py:53 msgid "Recent Actions" msgstr "Actions récentes" -#: templates/admin/index.html:73 templates/admin/page_index.html:54 +#: .\templates\admin\index.html.py:73 .\templates\admin\page_index.html.py:54 msgid "My Actions" msgstr "Mes actions" -#: templates/admin/index.html:77 templates/admin/page_index.html:58 +#: .\templates\admin\index.html.py:77 .\templates\admin\page_index.html.py:58 msgid "None available" msgstr "Aucune disponible" -#: templates/admin/index.html:91 templates/admin/page_index.html:72 +#: .\templates\admin\index.html.py:91 .\templates\admin\page_index.html.py:72 msgid "Unknown content" msgstr "Contenu inconnu" -#: templates/admin/page_base.html:20 templates/admin/page_index.html:11 +#: .\templates\admin\page_base.html.py:20 +#: .\templates\admin\page_index.html.py:11 msgid "Pages" msgstr "Pages" -#: templates/admin/page_base_site.html:7 +#: .\templates\admin\page_base_site.html.py:7 msgid "Django administration" msgstr "Administration de Django" -#: templates/admin/page_login.html:8 +#: .\templates\admin\page_login.html.py:8 msgid "Connexion" msgstr "Connexion" -#: templates/admin/page_login.html:20 +#: .\templates\admin\page_login.html.py:20 msgid "Username:" msgstr "Nom de utilisateur :" -#: templates/admin/page_login.html:24 +#: .\templates\admin\page_login.html.py:24 msgid "Password:" msgstr "Mot de passe :" -#: templates/admin/page_login.html:29 -#: user/templates/registration/login.html:39 +#: .\templates\admin\page_login.html.py:29 +#: .\user\templates\registration\login.html.py:39 msgid "Create an account" msgstr "Créer un compte" -#: templates/admin/page_login.html:30 -#: user/templates/registration/login.html:40 +#: .\templates\admin\page_login.html.py:30 +#: .\user\templates\registration\login.html.py:40 msgid "Forget password?" msgstr "Oubliez le mot de passe?" -#: templates/admin/page_login.html:32 -#: user/templates/ldt/user/login_form.html:37 -#: user/templates/ldt/user/login_form.html:45 -#: user/templates/registration/login.html:21 -#: user/templates/registration/password_reset_complete.html:14 +#: .\templates\admin\page_login.html.py:32 +#: .\user\templates\ldt\user\login_form.html.py:37 +#: .\user\templates\ldt\user\login_form.html.py:45 +#: .\user\templates\registration\login.html.py:21 +#: .\user\templates\registration\password_reset_complete.html.py:14 msgid "Log in" msgstr "Connexion" -#: templates/cms/admin/cms/page/change_form.html:11 +#: .\templates\cms\admin\cms\page\change_form.html.py:11 msgid "Documentation" msgstr "Documentation" -#: templates/cms/admin/cms/page/change_form.html:11 +#: .\templates\cms\admin\cms\page\change_form.html.py:11 msgid "Change password" msgstr "Modifier le mot de passe" -#: templates/cms/admin/cms/page/change_form.html:11 -#: templates/ldt/ldt_base.html:54 user/templates/ldt/user/login_form.html:34 +#: .\templates\cms\admin\cms\page\change_form.html.py:11 +#: .\templates\ldt\ldt_base.html.py:121 +#: .\user\templates\ldt\user\login_form.html.py:34 msgid "Log out" msgstr "Déconnexion" -#: templates/cms/admin/cms/page/change_form.html:42 +#: .\templates\cms\admin\cms\page\change_form.html.py:42 msgid "Ordering" msgstr "Ordre" -#: templates/cms/admin/cms/page/change_form.html:45 +#: .\templates\cms\admin\cms\page\change_form.html.py:45 msgid "Order:" msgstr "Ordre :" -#: templates/ldt/ldt_base.html:26 +#: .\templates\ldt\ldt_base.html.py:95 msgid "header_title" msgstr "Plateforme Ldt" -#: templates/ldt/ldt_base.html:44 +#: .\templates\ldt\ldt_base.html.py:111 msgid "home" msgstr "accueil" -#: templates/ldt/ldt_base.html:45 +#: .\templates\ldt\ldt_base.html.py:112 msgid "contents" msgstr "Liste des contenus" -#: templates/ldt/ldt_base.html:46 +#: .\templates\ldt\ldt_base.html.py:113 msgid "indexation projects" msgstr "Projets d'indexation" -#: templates/ldt/ldt_base.html:47 +#: .\templates\ldt\ldt_base.html.py:114 msgid "accounts" msgstr "Comptes" -#: templates/ldt/ldt_base.html:48 user/templates/ldt/user/change_email.html:6 -#: user/templates/ldt/user/change_email_done.html:6 -#: user/templates/ldt/user/login_form.html:32 -#: user/templates/registration/password_change_done.html:7 -#: user/templates/registration/password_change_form.html:13 +#: .\templates\ldt\ldt_base.html.py:115 +#: .\user\templates\ldt\user\change_email.html.py:6 +#: .\user\templates\ldt\user\change_email_done.html.py:6 +#: .\user\templates\ldt\user\login_form.html.py:32 +#: .\user\templates\registration\password_change_done.html.py:7 +#: .\user\templates\registration\password_change_form.html.py:13 msgid "Profiles" msgstr "Mon profil" -#: templates/ldt/ldt_base.html:62 +#: .\templates\ldt\ldt_base.html.py:129 msgid "Langue" msgstr "Langue" -#: templates/ldt/ldt_raw_base.html:13 +#: .\templates\ldt\ldt_raw_base.html.py:13 msgid "page_title" msgstr "Plateforme Ldt" -#: user/admin.py:15 +#: .\text\models.py:22 +msgid "annotation.external_id" +msgstr "id externe" + +#: .\text\models.py:23 +msgid "annotation.uri" +msgstr "uri" + +#: .\text\models.py:24 +msgid "annotation.tags" +msgstr "tags" + +#: .\text\models.py:25 +msgid "annotation.title" +msgstr "titre" + +#: .\text\models.py:26 +msgid "annotation.description" +msgstr "Description" + +#: .\text\models.py:27 +msgid "annotation.text" +msgstr "texte d'annotation" + +#: .\text\models.py:28 +msgid "annotation.color" +msgstr "couleur d'annotation" + +#: .\text\models.py:29 +msgid "creator.title" +msgstr "titre" + +#: .\text\models.py:30 +msgid "contributor.title" +msgstr "titre" + +#: .\text\models.py:31 +msgid "annotation.creation_date" +msgstr "date de création" + +#: .\text\models.py:32 +msgid "annotation.update_date" +msgstr "Date de maj" + +#: .\user\admin.py:13 msgid "User details" msgstr "Détail utilisateur" -#: user/admin.py:16 +#: .\user\admin.py:14 msgid "Groups" msgstr "Groupes" -#: user/admin.py:17 +#: .\user\admin.py:15 msgid "Permissions" msgstr "Permissions" -#: user/admin.py:27 user/templates/ldt/user/login_form.html:61 +#: .\user\admin.py:25 .\user\templates\ldt\user\login_form.html.py:61 msgid "Password" msgstr "Mot de passe" -#: user/forms.py:31 +#: .\user\forms.py:31 msgid "New password" msgstr "Nouveau mot de passe" -#: user/forms.py:33 +#: .\user\forms.py:33 msgid "New password confirmation" msgstr "Confirmation du nouveau mot de passe" -#: user/forms.py:78 user/forms.py:79 +#: .\user\forms.py:78 .\user\forms.py:79 msgid "E-mail" msgstr "E-mail" -#: user/forms.py:90 +#: .\user\forms.py:90 msgid "The two emails didn't match." msgstr "les deux emails ne correspondent pas" -#: user/views.py:45 user/templates/registration/login.html:24 +#: .\user\views.py:45 .\user\templates\registration\login.html.py:24 msgid "Sorry, that's not a valid username or password." msgstr "Saisissez un nom d'utilisateur et un mot de passe valide." -#: user/templates/ldt/user/change_email.html:7 -#: user/templates/ldt/user/change_email.html:10 -msgid "Modification de l'adresse émail" +#: .\user\templates\ldt\user\change_email.html.py:7 +#: .\user\templates\ldt\user\change_email.html.py:10 +msgid "Modification de l'adresse émail" msgstr "Modification de l'adresse email" -#: user/templates/ldt/user/change_email.html:26 +#: .\user\templates\ldt\user\change_email.html.py:26 msgid "" "Please enter your new e-mail twice so we can verify you typed it in " "correctly." -msgstr "" -"Saisissez deux fois votre nouvelle adresse émail afin de vérifier qu'il est " +msgstr "Saisissez deux fois votre nouvelle adresse émail afin de vérifier qu'il est " "correctment" -#: user/templates/ldt/user/change_email.html:32 +#: .\user\templates\ldt\user\change_email.html.py:32 msgid "email" msgstr "adresse émail" -#: user/templates/ldt/user/change_email.html:41 -msgid "Confirmation de l'adresse émail" +#: .\user\templates\ldt\user\change_email.html.py:41 +msgid "Confirmation de l'adresse émail" msgstr "Confirmation de l'adresse email" -#: user/templates/ldt/user/change_email.html:48 +#: .\user\templates\ldt\user\change_email.html.py:48 msgid "change my e-mail" msgstr "Changer l'adresse émail" -#: user/templates/ldt/user/change_email_done.html:7 -#: user/templates/ldt/user/change_email_done.html:10 +#: .\user\templates\ldt\user\change_email_done.html.py:7 +#: .\user\templates\ldt\user\change_email_done.html.py:10 msgid "email change" msgstr "Modification de l'adresse émail" -#: user/templates/ldt/user/change_email_done.html:12 +#: .\user\templates\ldt\user\change_email_done.html.py:12 msgid "email changed" msgstr "email modifié" -#: user/templates/ldt/user/change_email_done.html:13 +#: .\user\templates\ldt\user\change_email_done.html.py:13 msgid "back to profile" msgstr "Retourner à mon profil" -#: user/templates/ldt/user/home.html:9 +#: .\user\templates\ldt\user\home.html.py:9 msgid "Se connecter" msgstr "Se connecter" -#: user/templates/ldt/user/home.html:10 -msgid "Créer un compte" +#: .\user\templates\ldt\user\home.html.py:10 +msgid "Créer un compte" msgstr "Créer un compte" -#: user/templates/ldt/user/home.html:11 -msgid "récupérer mot de passe" +#: .\user\templates\ldt\user\home.html.py:11 +msgid "récupérer mot de passe" msgstr "Récupérer le mot de passe" -#: user/templates/ldt/user/login_form.html:50 +#: .\user\templates\ldt\user\login_form.html.py:50 msgid "create account" msgstr "Créer un compte" -#: user/templates/ldt/user/login_form.html:54 +#: .\user\templates\ldt\user\login_form.html.py:54 msgid "Pseudo" msgstr "Pseudo" -#: user/templates/ldt/user/login_form.html:57 -#: user/templates/ldt/user/login_form.html:64 +#: .\user\templates\ldt\user\login_form.html.py:57 +#: .\user\templates\ldt\user\login_form.html.py:64 msgid "this field is compulsory" msgstr "Ce champs est obligatoire" -#: user/templates/ldt/user/login_form.html:68 +#: .\user\templates\ldt\user\login_form.html.py:68 msgid "reset password" msgstr "Réinitialiser le mot de passe" -#: user/templates/ldt/user/login_form.html:71 +#: .\user\templates\ldt\user\login_form.html.py:71 msgid "Connection" msgstr "Connexion" -#: user/templates/ldt/user/profile.html:6 -#: user/templates/registration/password_change_form.html:14 -#: user/templates/registration/password_change_form.html:17 +#: .\user\templates\ldt\user\profile.html.py:6 +#: .\user\templates\registration\password_change_form.html.py:14 +#: .\user\templates\registration\password_change_form.html.py:17 msgid "Password change" msgstr "Modification du mot de passe" -#: user/templates/ldt/user/profile.html:7 +#: .\user\templates\ldt\user\profile.html.py:7 msgid "Mail change" msgstr "Modification de l'adresse émail" -#: user/templates/ldt/user/space.html:13 +#: .\user\templates\ldt\user\space.html.py:13 msgid "Page" msgstr "Pages" -#: user/templates/ldt/user/space.html:16 +#: .\user\templates\ldt\user\space.html.py:16 msgid "Projets Lignes de temps" msgstr "Projets Lignes de temps" -#: user/templates/registration/activate.html:6 -#: user/templates/registration/activate.html:9 +#: .\user\templates\registration\activate.html.py:6 +#: .\user\templates\registration\activate.html.py:9 msgid "Activate account" msgstr "Activer le compte" -#: user/templates/registration/activate.html:12 +#: .\user\templates\registration\activate.html.py:12 msgid "You have activated your account" msgstr "Vous avez bien activé votre compte." -#: user/templates/registration/activate.html:13 +#: .\user\templates\registration\activate.html.py:13 msgid "Go back to login page" msgstr "Retourner à la page de connexion" -#: user/templates/registration/activation_complete.html:4 -#: user/templates/registration/registration_complete.html:8 +#: .\user\templates\registration\activation_complete.html.py:4 +#: .\user\templates\registration\registration_complete.html.py:8 msgid "Sign up successfully" msgstr "Création de compte avec succès" -#: user/templates/registration/activation_complete.html:6 +#: .\user\templates\registration\activation_complete.html.py:6 msgid "activation completed" msgstr "Activation terminée" -#: user/templates/registration/logged_out.html:8 +#: .\user\templates\registration\logged_out.html.py:8 msgid "Thanks for spending some quality time with the Web site today." msgstr "Merci de votre visite." -#: user/templates/registration/logged_out.html:10 +#: .\user\templates\registration\logged_out.html.py:10 msgid "Log in again" msgstr "Se reconnecter" -#: user/templates/registration/login.html:46 +#: .\user\templates\registration\login.html.py:46 msgid "login" msgstr "Connexion" -#: user/templates/registration/password_change_done.html:3 -#: user/templates/registration/password_change_done.html:11 +#: .\user\templates\registration\password_change_done.html.py:3 +#: .\user\templates\registration\password_change_done.html.py:11 msgid "password change successful" msgstr "Changement de mot de passe réussi" -#: user/templates/registration/password_change_done.html:8 +#: .\user\templates\registration\password_change_done.html.py:8 msgid "password change" msgstr "Changement de mot de passe" -#: user/templates/registration/password_change_done.html:14 +#: .\user\templates\registration\password_change_done.html.py:14 msgid "Your password has been changed." msgstr "Votre mot de passe a été changeé." -#: user/templates/registration/password_change_done.html:15 +#: .\user\templates\registration\password_change_done.html.py:15 msgid "Go back to profiles" msgstr "Retourner à la page de mon profil" -#: user/templates/registration/password_change_form.html:20 +#: .\user\templates\registration\password_change_form.html.py:20 msgid "" "Please enter your old password, for security's sake, and then enter your new " "password twice so we can verify you typed it in correctly." -msgstr "" -"Par sécurité, veuillez enter votre ancien mot de passe puis le nouveau a " +msgstr "Par sécurité, veuillez enter votre ancien mot de passe puis le nouveau a " "deux reprise afin de savoir si vous l'avez taper correctement " -#: user/templates/registration/password_change_form.html:26 +#: .\user\templates\registration\password_change_form.html.py:26 msgid "Old password:" msgstr "Ancien mot de passe :" -#: user/templates/registration/password_change_form.html:32 -#: user/templates/registration/password_reset_confirm.html:19 +#: .\user\templates\registration\password_change_form.html.py:32 +#: .\user\templates\registration\password_reset_confirm.html.py:19 msgid "New password:" msgstr "Nouveau mot de passe :" -#: user/templates/registration/password_change_form.html:38 -#: user/templates/registration/password_reset_confirm.html:21 +#: .\user\templates\registration\password_change_form.html.py:38 +#: .\user\templates\registration\password_reset_confirm.html.py:21 msgid "Confirm password:" msgstr "Confirmer le mot de passe :" -#: user/templates/registration/password_change_form.html:44 -#: user/templates/registration/password_reset_confirm.html:22 +#: .\user\templates\registration\password_change_form.html.py:44 +#: .\user\templates\registration\password_reset_confirm.html.py:22 msgid "Change my password" msgstr "Modifier mon mot de passe" -#: user/templates/registration/password_reset_complete.html:6 -#: user/templates/registration/password_reset_confirm.html:6 -#: user/templates/registration/password_reset_confirm.html:9 -#: user/templates/registration/password_reset_done.html:6 -#: user/templates/registration/password_reset_form.html:13 -#: user/templates/registration/password_reset_form.html:15 -#: user/templates/registration/password_reset_form.html:18 +#: .\user\templates\registration\password_reset_complete.html.py:6 +#: .\user\templates\registration\password_reset_confirm.html.py:6 +#: .\user\templates\registration\password_reset_confirm.html.py:9 +#: .\user\templates\registration\password_reset_done.html.py:6 +#: .\user\templates\registration\password_reset_form.html.py:13 +#: .\user\templates\registration\password_reset_form.html.py:15 +#: .\user\templates\registration\password_reset_form.html.py:18 msgid "Password reset" msgstr "réinitialiser e mot de passe" -#: user/templates/registration/password_reset_complete.html:9 +#: .\user\templates\registration\password_reset_complete.html.py:9 msgid "Password reset complete" msgstr "Réinitialisation du mot de passe terminée" -#: user/templates/registration/password_reset_complete.html:12 +#: .\user\templates\registration\password_reset_complete.html.py:12 msgid "Your password has been set. You may go ahead and log in now." msgstr "Votre mot de passe a été fixé. vous pouvez vous connecter maintenant." -#: user/templates/registration/password_reset_confirm.html:15 +#: .\user\templates\registration\password_reset_confirm.html.py:15 msgid "" "Please enter your new password twice so we can verify you typed it in " "correctly." -msgstr "" -"veuillez enter votre nouveau mot de pass deux fois afin de le vérifier." +msgstr "veuillez enter votre nouveau mot de pass deux fois afin de le vérifier." -#: user/templates/registration/password_reset_confirm.html:27 +#: .\user\templates\registration\password_reset_confirm.html.py:27 msgid "Password reset unsuccessful" msgstr "Reinitialisation du mot de pass a échoué" -#: user/templates/registration/password_reset_confirm.html:29 +#: .\user\templates\registration\password_reset_confirm.html.py:29 msgid "" "The password reset link was invalid, possibly because it has already been " "used. Please request a new password reset." -msgstr "" -"Le lien de réinitialisation du mot de passe n'est pas valide, certainement " +msgstr "Le lien de réinitialisation du mot de passe n'est pas valide, certainement " "car il a déjà été utilisé. veuiller demander une nouvelle réinitialisation." -#: user/templates/registration/password_reset_done.html:8 +#: .\user\templates\registration\password_reset_done.html.py:8 msgid "Password reset successful" msgstr "Réinitialisation du mot de passe réussie" -#: user/templates/registration/password_reset_done.html:12 +#: .\user\templates\registration\password_reset_done.html.py:12 msgid "" "We've e-mailed you instructions for setting your password to the e-mail " "address you submitted. You should be receiving it shortly." -msgstr "" -"Nous vous avons envoyer les instructions de reinitialisation de votre mot de " +msgstr "Nous vous avons envoyer les instructions de reinitialisation de votre mot de " "passe à l'adresse email que vous nous avez fournie. vous devriez les " "recevoir bientôt." -#: user/templates/registration/password_reset_email.html:2 +#: .\user\templates\registration\password_reset_email.html.py:2 msgid "You're receiving this e-mail because you requested a password reset" -msgstr "" -"Vous recevez ce mail car vous avez damender la réinitialisation du mot de " -"passe" +msgstr "Vous recevez ce mail car vous avez damender la réinitialisation du mot de passe" -#: user/templates/registration/password_reset_email.html:3 +#: .\user\templates\registration\password_reset_email.html.py:3 #, python-format msgid "for your user account at %(site_name)s" msgstr "Pour votre compte sur le site %(site_name)s" -#: user/templates/registration/password_reset_email.html:5 +#: .\user\templates\registration\password_reset_email.html.py:5 msgid "Please go to the following page and choose a new password:" -msgstr "" -"veuillez aller à la page suivante et choisissez un nouveau mot de passe :" +msgstr "veuillez aller à la page suivante et choisissez un nouveau mot de passe :" -#: user/templates/registration/password_reset_email.html:9 +#: .\user\templates\registration\password_reset_email.html.py:9 msgid "Your username, in case you've forgotten:" msgstr "Pour rappel votre nom d'autilisateur :" -#: user/templates/registration/password_reset_email.html:11 +#: .\user\templates\registration\password_reset_email.html.py:11 msgid "Thanks for using our site!" msgstr "Merci de votre visite." -#: user/templates/registration/password_reset_email.html:13 +#: .\user\templates\registration\password_reset_email.html.py:13 #, python-format msgid "The %(site_name)s team" msgstr "L'équipe du site %(site_name)s" -#: user/templates/registration/password_reset_form.html:22 +#: .\user\templates\registration\password_reset_form.html.py:22 msgid "" "Forgotten your password? Enter your e-mail address below, and we'll e-mail " "instructions for setting a new one." -msgstr "" -"Mot de passe oublié ? Entrez votre adresse email ci-dessous pour recevoir " +msgstr "Mot de passe oublié ? Entrez votre adresse email ci-dessous pour recevoir " "les instructions pour en entrer un nouveau." -#: user/templates/registration/password_reset_form.html:27 -msgid "Adresse émail" +#: .\user\templates\registration\password_reset_form.html.py:27 +msgid "Adresse émail" msgstr "Adresse email" -#: user/templates/registration/password_reset_form.html:32 +#: .\user\templates\registration\password_reset_form.html.py:32 msgid "Reset my password" msgstr "Reinitialiser mon mot de passe" -#: user/templates/registration/registration_active.html:5 -#: user/templates/registration/registration_active.html:7 +#: .\user\templates\registration\registration_active.html.py:5 +#: .\user\templates\registration\registration_active.html.py:7 msgid "Activate the account" msgstr "Activer le compte" -#: user/templates/registration/registration_active.html:9 +#: .\user\templates\registration\registration_active.html.py:9 msgid "" -"Vous avez bien activé votre compte, vous pouvez accedez à votre espace " +"Vous avez bien activé votre compte, vous pouvez accedez à votre espace " "personnel." -msgstr "" -"Vous avez bien activé votre compte, vous pouvez accedez à votre espace " -"personnel." +msgstr "Vous avez bien activé votre compte, vous pouvez accedez à votre espace personnel." -#: user/templates/registration/registration_active.html:10 -msgid "retourner à la page de connexion" +#: .\user\templates\registration\registration_active.html.py:10 +msgid "retourner à la page de connexion" msgstr "retourner à la page de connexion" -#: user/templates/registration/registration_complete.html:6 -#: user/templates/registration/registration_form.html:11 +#: .\user\templates\registration\registration_complete.html.py:6 +#: .\user\templates\registration\registration_form.html.py:11 msgid "Sign up" msgstr "Création d'un compte" -#: user/templates/registration/registration_complete.html:10 +#: .\user\templates\registration\registration_complete.html.py:10 msgid "" "We've e-mailed you instructions for activate your account to the e-mail " "address you submitted. You should be receiving it shortly." -msgstr "" -"Nous vous avons envoyé par courriel les instructions pour activer le compte " +msgstr "Nous vous avons envoyé par courriel les instructions pour activer le compte " "à l'adresse que vous avez indiquée. Vous devriez le recevoir rapidement." #~ msgid "Create" diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/media/js/jquery.nyroModal.min.js --- a/src/ldt/ldt/media/js/jquery.nyroModal.min.js Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/media/js/jquery.nyroModal.min.js Wed Mar 09 16:48:17 2011 +0100 @@ -9,6 +9,7 @@ * - filters.gallery * - filters.link * - filters.dom + * - filters.data * - filters.image * - filters.swf * - filters.form @@ -17,16 +18,17 @@ * - filters.iframeForm * - filters.embedly */ - jQuery(function($,undefined){var $w=$(window),$d=$(document),$b=$('body'),baseHref=$('base').attr('href'),_nmObj={filters:[],callbacks:{},loadFilter:undefined,modal:false,closeOnEscape:true,closeOnClick:true,useKeyHandler:false,showCloseButton:true,closeButton:'Close',stack:false,header:undefined,footer:undefined,galleryLoop:true,galleryCounts:true,ltr:true,imageRegex:'[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$',selIndicator:'nyroModalSel',swf:{allowFullScreen:'true',allowscriptaccess:'always',wmode:'transparent'},store:{},errorMsg:'An error occured',elts:{all:undefined,bg:undefined,load:undefined,cont:undefined,hidden:undefined},sizes:{initW:undefined,initH:undefined,w:undefined,h:undefined,minW:undefined,minH:undefined,wMargin:undefined,hMargin:undefined},anim:{def:undefined,showBg:undefined,hideBg:undefined,showLoad:undefined,hideLoad:undefined,showCont:undefined,hideCont:undefined,showTrans:undefined,hideTrans:undefined,resize:undefined},_open:false,_bgReady:false,_opened:false,_loading:false,_animated:false,_transition:false,_nmOpener:undefined,_nbContentLoading:0,_scripts:'',_scriptsShown:'',saveObj:function(){this.opener.data('nmObj',this);},open:function(){this.getInternal()._pushStack(this.opener);this._opened=false;this._bgReady=false;this._open=true;this._initElts();this._load();this._nbContentLoading=0;this._callAnim('showBg',$.proxy(function(){this._bgReady=true;if(this._nmOpener){this._nmOpener._close();this._nmOpener._bgReady=false;this._nmOpener._loading=false;this._nmOpener._animated=false;this._nmOpener._opened=false;this._nmOpener._open=false;this._nmOpener.elts.cont=this._nmOpener.elts.hidden=this._nmOpener.elts.load=this._nmOpener.elts.bg=this._nmOpener.elts.all=undefined;this._nmOpener.saveObj();this._nmOpener=undefined;}this._contentLoading();},this));},resize:function(){this.sizes.w=this.sizes.initW;this.sizes.h=this.sizes.initH;this._unreposition();this.size();this._callAnim('resize',$.proxy(function(){this._reposition();},this));},size:function(){var maxHeight=this.getInternal().fullSize.viewH-this.sizes.hMargin,maxWidth=this.getInternal().fullSize.viewW-this.sizes.wMargin;if(this.sizes.minW&&this.sizes.minW>this.sizes.w)this.sizes.w=this.sizes.minW;if(this.sizes.minH&&this.sizes.minH>this.sizes.h)this.sizes.h=this.sizes.minH;if(this.sizes.h>maxHeight||this.sizes.w>maxWidth){this.sizes.h=Math.min(this.sizes.h,maxHeight);this.sizes.w=Math.min(this.sizes.w,maxWidth);}this._callFilters('size');},getForNewLinks:function(){var ret;if(this.stack){ret=$.extend(true,{},this);ret._nmOpener=undefined;ret.elts.all=undefined;}else{ret=$.extend({},this);ret._nmOpener=this;}ret.filters=[];ret.opener=undefined;ret._open=false;return ret;},keyHandle:function(e){this.keyEvent=e;this._callFilters('keyHandle');this.keyEvent=undefined;delete(this.keyEvent);},getInternal:function(){return _internal;},_close:function(){this.getInternal()._removeStack(this.opener);this._opened=false;this._open=false;this._callFilters('close');},close:function(){this._close();this._callFilters('beforeClose');var self=this;this._unreposition();self._callAnim('hideCont',function(){self._callAnim('hideLoad',function(){self._callAnim('hideBg',function(){self._callFilters('afterClose');self.elts.cont.remove();self.elts.hidden.remove();self.elts.load.remove();self.elts.bg.remove();self.elts.all.remove();self.elts.cont=self.elts.hidden=self.elts.load=self.elts.bg=self.elts.all=undefined;});});});},_initElts:function(){if(!this.stack&&this.getInternal().stack.length>1)this.elts=$(_internal.stack[_internal.stack.length-2]).data('nmObj').elts;if(!this.elts.all||this.elts.all.closest('body').length==0)this.elts.all=this.elts.bg=this.elts.cont=this.elts.hidden=this.elts.load=undefined;if(!this.elts.all)this.elts.all=$('
').appendTo(this.getInternal()._container);if(!this.elts.bg)this.elts.bg=$('
').hide().appendTo(this.elts.all);if(!this.elts.cont)this.elts.cont=$('
').hide().appendTo(this.elts.all);if(!this.elts.hidden)this.elts.hidden=$('
').hide().appendTo(this.elts.all);this.elts.hidden.empty();if(!this.elts.load)this.elts.load=$('
').hide().appendTo(this.elts.all);this._callFilters('initElts');},_error:function(){this._callFilters('error');},_setCont:function(html,selector){if(selector){var tmp=[],i=0;html=html .replace(/\r\n/gi,'nyroModalLN').replace(//gi,function(x){tmp[i]=x;return '
';});var cur=$('
'+html+'
').find(selector);if(cur.length){html=cur.html().replace(/
<\/pre>/gi,function(x,y,z){return tmp[y];}).replace(/nyroModalLN/gi,"\r\n");}else{this._error();return;}}this.elts.hidden .append(this._filterScripts(html)).prepend(this.header).append(this.footer).wrapInner('
');this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();var outer=this.getInternal()._getOuter(this.elts.cont);this.sizes.hMargin=outer.h.total;this.sizes.wMargin=outer.w.total;this.size();this.loading=false;this._callFilters('filledContent');this._contentLoading();},_filterScripts:function(data){if(typeof data!='string')return data;this._scripts=[];this._scriptsShown=[];var start=0,stStart='',endLn=stEnd.length,pos,pos2,tmp;while((pos=data.indexOf(stStart,start))>-1){pos2=data.indexOf(stEnd)+endLn;tmp=$(data.substring(pos,pos2));if(!tmp.attr('src')||tmp.attr('rel')=='forceLoad'){if(tmp.attr('rev')=='shown')this._scriptsShown.push(tmp.get(0));else this._scripts.push(tmp.get(0));}data=data.substring(0,pos)+data.substr(pos2);start=pos;}return data;},_hasFilter:function(filter){var ret=false;$.each(this.filters,function(i,f){ret=ret||f==filter;});return ret;},_delFilter:function(filter){this.filters=$.map(this.filters,function(v){if(v!=filter)return v;});},_callFilters:function(fct){this.getInternal()._debug(fct);var ret=[],self=this;$.each(this.filters,function(i,f){ret[f]=self._callFilter(f,fct);});if(this.callbacks[fct]&&$.isFunction(this.callbacks[fct]))this.callbacks[fct](this);return ret;},_callFilter:function(f,fct){if(_filters[f]&&_filters[f][fct]&&$.isFunction(_filters[f][fct]))return _filters[f][fct](this);return undefined;},_callAnim:function(fct,clb){this.getInternal()._debug(fct);this._callFilters('before'+ucfirst(fct));if(!this._animated){this._animated=true;if(!$.isFunction(clb))clb=$.noop;var set=this.anim[fct]||this.anim.def||'basic';if(!_animations[set]||!_animations[set][fct]||!$.isFunction(_animations[set][fct]))set='basic';_animations[set][fct](this,$.proxy(function(){this._animated=false;this._callFilters('after'+ucfirst(fct));clb();},this));}},_load:function(){this.getInternal()._debug('_load');if(!this.loading&&this.loadFilter){this.loading=true;this._callFilter(this.loadFilter,'load');}},_contentLoading:function(){if(!this._animated&&this._bgReady){if(!this._transition&&this.elts.cont.html().length>0)this._transition=true;this._nbContentLoading++;if(!this.loading){if(!this._opened){this._opened=true;if(this._transition){var fct=$.proxy(function(){this._writeContent();this._callFilters('beforeShowCont');this._callAnim('hideTrans',$.proxy(function(){this._transition=false;this.elts.cont.append(this._scriptsShown);this._reposition();this._callFilters('afterShowCont');},this));},this);if(this._nbContentLoading==1){this._unreposition();this._callAnim('showTrans',fct);}else{fct();}}else{this._callAnim('hideLoad',$.proxy(function(){this._writeContent();this._callAnim('showCont',$.proxy(function(){this.elts.cont.append(this._scriptsShown);this._reposition();},this));},this));}}}else if(this._nbContentLoading==1){var outer=this.getInternal()._getOuter(this.elts.load);this.elts.load .css({position:'fixed',top:(this.getInternal().fullSize.viewH-this.elts.load.height()-outer.h.margin)/2,left:(this.getInternal().fullSize.viewW-this.elts.load.width()-outer.w.margin)/2});if(this._transition){this._unreposition();this._callAnim('showTrans',$.proxy(function(){this._contentLoading();},this));}else{this._callAnim('showLoad',$.proxy(function(){this._contentLoading();},this));}}}},_writeContent:function(){this.elts.cont .empty().append(this.elts.hidden.contents()).append(this._scripts).append(this.showCloseButton?this.closeButton:'').css({position:'fixed',width:this.sizes.w,height:this.sizes.h,top:(this.getInternal().fullSize.viewH-this.sizes.h-this.sizes.hMargin)/2,left:(this.getInternal().fullSize.viewW-this.sizes.w-this.sizes.wMargin)/2});},_reposition:function(){var elts=this.elts.cont.find('.nmReposition');if(elts.length){var space=this.getInternal()._getSpaceReposition();elts.each(function(){var me=$(this),offset=me.offset();me.css({position:'fixed',top:offset.top-space.top,left:offset.left-space.left});});this.elts.cont.after(elts);}this.elts.cont.css('overflow','auto');},_unreposition:function(){this.elts.cont.css('overflow','');var elts=this.elts.all.find('.nmReposition');if(elts.length)this.elts.cont.append(elts.removeAttr('style'));}},_internal={firstInit:true,stack:[],fullSize:{w:0,h:0,wW:0,wH:0,viewW:0,viewH:0},nyroModal:function(opts,fullObj){if(_internal.firstInit){_internal._container=$('
').appendTo($b);$w.smartresize($.proxy(_internal._resize,_internal));$d.bind('keydown.nyroModal',$.proxy(_internal._keyHandler,_internal));_internal._calculateFullSize();_internal.firstInit=false;}return this.nmInit(opts,fullObj).each(function(){_internal._init($(this).data('nmObj'));});},nmInit:function(opts,fullObj){return this.each(function(){var me=$(this);if(fullObj)me.data('nmObj',$.extend(true,{opener:me},opts));else me.data('nmObj',me.data('nmObj')?$.extend(true,me.data('nmObj'),opts):$.extend(true,{opener:me},_nmObj,opts));});},nmCall:function(){return this.trigger('nyroModal');},nmManual:function(url,opts){$('',{href:url}).nyroModal(opts).trigger('nyroModal');},nmObj:function(opts){$.extend(true,_nmObj,opts);},nmInternal:function(opts){$.extend(true,_internal,opts);},nmAnims:function(opts){$.extend(true,_animations,opts);},nmFilters:function(opts){$.extend(true,_filters,opts);},nmTop:function(){if(_internal.stack.length)return $(_internal.stack[_internal.stack.length-1]).data('nmObj');return undefined;},_debug:function(msg){if(window.console&&window.console.log)window.console.log(msg);},_container:undefined,_init:function(nm){nm.filters=[];$.each(_filters,function(f,obj){if($.isFunction(obj.is)&&obj.is(nm)){nm.filters.push(f);}});nm._callFilters('init');nm.opener .unbind('nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal').bind({'nyroModal.nyroModal':function(e){nm.open();return false;},'nmClose.nyroModal':function(){nm.close();return false;},'nmResize.nyroModal':function(){nm.resize();return false;}});},_scrollWidth:(function(){var scrollbarWidth;if($.browser.msie){var $textarea1=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b),$textarea2=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b);scrollbarWidth=$textarea1.width()-$textarea2.width();$textarea1.add($textarea2).remove();}else{var $div=$('
').css({width:100,height:100,overflow:'auto',position:'absolute',top:-1000,left:-1000}).prependTo($b).append('
').find('div').css({width:'100%',height:200});scrollbarWidth=100-$div.width();$div.parent().remove();}return scrollbarWidth;})(),_selNyroModal:function(obj){return $(obj).data('nmObj')?true:false;},_selNyroModalOpen:function(obj){var me=$(obj);return me.data('nmObj')?me.data('nmObj')._open:false;},_keyHandler:function(e){var nmTop=$.nmTop();if(nmTop&&nmTop.useKeyHandler){return nmTop.keyHandle(e);}},_pushStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});this.stack.push(obj.get(0));},_removeStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});},_resize:function(){var opens=$(':nmOpen').each(function(){$(this).data('nmObj')._unreposition();});this._calculateFullSize();opens.trigger('nmResize');},_calculateFullSize:function(){this.fullSize={w:$d.width(),h:$d.height(),wW:$w.width(),wH:$w.height()};this.fullSize.viewW=Math.min(this.fullSize.w,this.fullSize.wW);this.fullSize.viewH=Math.min(this.fullSize.h,this.fullSize.wH);},_getCurCSS:function(elm,name){var ret=parseInt($.curCSS(elm,name,true));return isNaN(ret)?0:ret;},_getOuter:function(elm){elm=elm.get(0);var ret={h:{margin:this._getCurCSS(elm,'marginTop')+this._getCurCSS(elm,'marginBottom'),border:this._getCurCSS(elm,'borderTopWidth')+this._getCurCSS(elm,'borderBottomWidth'),padding:this._getCurCSS(elm,'paddingTop')+this._getCurCSS(elm,'paddingBottom')},w:{margin:this._getCurCSS(elm,'marginLeft')+this._getCurCSS(elm,'marginRight'),border:this._getCurCSS(elm,'borderLeftWidth')+this._getCurCSS(elm,'borderRightWidth'),padding:this._getCurCSS(elm,'paddingLeft')+this._getCurCSS(elm,'paddingRight')}};ret.h.outer=ret.h.margin+ret.h.border;ret.w.outer=ret.w.margin+ret.w.border;ret.h.inner=ret.h.padding+ret.h.border;ret.w.inner=ret.w.padding+ret.w.border;ret.h.total=ret.h.outer+ret.h.padding;ret.w.total=ret.w.outer+ret.w.padding;return ret;},_getSpaceReposition:function(){var outer=this._getOuter($b),ie7=$.browser.msie&&$.browser.version<8&&!(screen.height<=$w.height()+23);return{top:$w.scrollTop()-(!ie7?outer.h.border/2:0),left:$w.scrollLeft()-(!ie7?outer.w.border/2:0)};},_getHash:function(url){if(typeof url=='string'){var hashPos=url.indexOf('#');if(hashPos>-1)return url.substring(hashPos);}return '';},_extractUrl:function(url){var ret={url:undefined,sel:undefined};if(url){var hash=this._getHash(url),hashLoc=this._getHash(window.location.href),curLoc=window.location.href.substring(0,window.location.href.length-hashLoc.length),req=url.substring(0,url.length-hash.length);ret.sel=hash;if(req!=curLoc&&req!=baseHref)ret.url=req;}return ret;}},_animations={basic:{showBg:function(nm,clb){nm.elts.bg.css({opacity:0.7}).show();clb();},hideBg:function(nm,clb){nm.elts.bg.hide();clb();},showLoad:function(nm,clb){nm.elts.load.show();clb();},hideLoad:function(nm,clb){nm.elts.load.hide();clb();},showCont:function(nm,clb){nm.elts.cont.show();clb();},hideCont:function(nm,clb){nm.elts.cont.hide();clb();},showTrans:function(nm,clb){nm.elts.cont.hide();nm.elts.load.show();clb();},hideTrans:function(nm,clb){nm.elts.cont.show();nm.elts.load.hide();clb();},resize:function(nm,clb){nm.elts.cont.css({width:nm.sizes.w,height:nm.sizes.h,top:(nm.getInternal().fullSize.viewH-nm.sizes.h-nm.sizes.hMargin)/2,left:(nm.getInternal().fullSize.viewW-nm.sizes.w-nm.sizes.wMargin)/2});clb();}}},_filters={basic:{is:function(nm){return true;},init:function(nm){if(nm.opener.attr('rev')=='modal')nm.modal=true;if(nm.modal)nm.closeOnEscape=nm.closeOnClick=nm.showCloseButton=false;if(nm.closeOnEscape)nm.useKeyHandler=true;},initElts:function(nm){nm.elts.bg.addClass('nyroModalBg');if(nm.closeOnClick)nm.elts.bg.unbind('click.nyroModal').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});nm.elts.cont.addClass('nyroModalCont');nm.elts.hidden.addClass('nyroModalCont nyroModalHidden');nm.elts.load.addClass('nyroModalCont nyroModalLoad');},error:function(nm){nm.elts.hidden.addClass('nyroModalError');nm.elts.cont.addClass('nyroModalError');nm._setCont(nm.errorMsg);},beforeShowCont:function(nm){nm.elts.cont .find('.nyroModal').nyroModal(nm.getForNewLinks(),true).end().find('.nyroModalClose').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});},keyHandle:function(nm){if(nm.keyEvent.keyCode==27&&nm.closeOnEscape){nm.keyEvent.preventDefault();nm.close();}}},custom:{is:function(nm){return true;}}};$.fn.extend({nm:_internal.nyroModal,nyroModal:_internal.nyroModal,nmInit:_internal.nmInit,nmCall:_internal.nmCall});$.extend({nmManual:_internal.nmManual,nmObj:_internal.nmObj,nmInternal:_internal.nmInternal,nmAnims:_internal.nmAnims,nmFilters:_internal.nmFilters,nmTop:_internal.nmTop});$.expr[':'].nyroModal=$.expr[':'].nm=_internal._selNyroModal;$.expr[':'].nmOpen=_internal._selNyroModalOpen;});(function($,sr){var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)func.apply(obj,args);timeout=null;};if(timeout)clearTimeout(timeout);else if(execAsap)func.apply(obj,args);timeout=setTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn){return fn?this.bind('resize',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize');function ucfirst(str){str+='';var f=str.charAt(0).toUpperCase();return f+str.substr(1);}; + jQuery(function($,undefined){var $w=$(window),$d=$(document),$b=$('body'),baseHref=$('base').attr('href'),_nmObj={filters:[],callbacks:{},loadFilter:undefined,modal:false,closeOnEscape:true,closeOnClick:true,useKeyHandler:false,showCloseButton:true,closeButton:'Close',stack:false,header:undefined,footer:undefined,galleryLoop:true,galleryCounts:true,ltr:true,imageRegex:'[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$',selIndicator:'nyroModalSel',swfObjectId:undefined,swf:{allowFullScreen:'true',allowscriptaccess:'always',wmode:'transparent'},store:{},errorMsg:'An error occured',elts:{all:undefined,bg:undefined,load:undefined,cont:undefined,hidden:undefined},sizes:{initW:undefined,initH:undefined,w:undefined,h:undefined,minW:undefined,minH:undefined,wMargin:undefined,hMargin:undefined},anim:{def:undefined,showBg:undefined,hideBg:undefined,showLoad:undefined,hideLoad:undefined,showCont:undefined,hideCont:undefined,showTrans:undefined,hideTrans:undefined,resize:undefined},_open:false,_bgReady:false,_opened:false,_loading:false,_animated:false,_transition:false,_nmOpener:undefined,_nbContentLoading:0,_scripts:'',_scriptsShown:'',saveObj:function(){this.opener.data('nmObj',this);},open:function(){if(this._nmOpener)this._nmOpener._close();this.getInternal()._pushStack(this.opener);this._opened=false;this._bgReady=false;this._open=true;this._initElts();this._load();this._nbContentLoading=0;this._callAnim('showBg',$.proxy(function(){this._bgReady=true;if(this._nmOpener){this._nmOpener._bgReady=false;this._nmOpener._loading=false;this._nmOpener._animated=false;this._nmOpener._opened=false;this._nmOpener._open=false;this._nmOpener.elts.cont=this._nmOpener.elts.hidden=this._nmOpener.elts.load=this._nmOpener.elts.bg=this._nmOpener.elts.all=undefined;this._nmOpener.saveObj();this._nmOpener=undefined;}this._contentLoading();},this));},resize:function(recalc){if(recalc){this.elts.hidden.append(this.elts.cont.children().first().clone());this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();this.elts.hidden.empty();}else{this.sizes.w=this.sizes.initW;this.sizes.h=this.sizes.initH;}this._unreposition();this.size();this._callAnim('resize',$.proxy(function(){this._reposition();},this));},size:function(){var maxHeight=this.getInternal().fullSize.viewH-this.sizes.hMargin,maxWidth=this.getInternal().fullSize.viewW-this.sizes.wMargin;if(this.sizes.minW&&this.sizes.minW>this.sizes.w)this.sizes.w=this.sizes.minW;if(this.sizes.minH&&this.sizes.minH>this.sizes.h)this.sizes.h=this.sizes.minH;if(this.sizes.h>maxHeight||this.sizes.w>maxWidth){this.sizes.h=Math.min(this.sizes.h,maxHeight);this.sizes.w=Math.min(this.sizes.w,maxWidth);}this._callFilters('size');},getForNewLinks:function(){var ret;if(this.stack){ret=$.extend(true,{},this);ret._nmOpener=undefined;ret.elts.all=undefined;}else{ret=$.extend({},this);ret._nmOpener=this;}ret.filters=[];ret.opener=undefined;ret._open=false;return ret;},keyHandle:function(e){this.keyEvent=e;this._callFilters('keyHandle');this.keyEvent=undefined;delete(this.keyEvent);},getInternal:function(){return _internal;},_close:function(){this.getInternal()._removeStack(this.opener);this._opened=false;this._open=false;this._callFilters('close');},close:function(){this._close();this._callFilters('beforeClose');var self=this;this._unreposition();self._callAnim('hideCont',function(){self._callAnim('hideLoad',function(){self._callAnim('hideBg',function(){self._callFilters('afterClose');self.elts.cont.remove();self.elts.hidden.remove();self.elts.load.remove();self.elts.bg.remove();self.elts.all.remove();self.elts.cont=self.elts.hidden=self.elts.load=self.elts.bg=self.elts.all=undefined;});});});},_initElts:function(){if(!this.stack&&this.getInternal().stack.length>1)this.elts=$(_internal.stack[_internal.stack.length-2]).data('nmObj').elts;if(!this.elts.all||this.elts.all.closest('body').length==0)this.elts.all=this.elts.bg=this.elts.cont=this.elts.hidden=this.elts.load=undefined;if(!this.elts.all)this.elts.all=$('
').appendTo(this.getInternal()._container);if(!this.elts.bg)this.elts.bg=$('
').hide().appendTo(this.elts.all);if(!this.elts.cont)this.elts.cont=$('
').hide().appendTo(this.elts.all);if(!this.elts.hidden)this.elts.hidden=$('
').hide().appendTo(this.elts.all);this.elts.hidden.empty();if(!this.elts.load)this.elts.load=$('
').hide().appendTo(this.elts.all);this._callFilters('initElts');},_error:function(){this._callFilters('error');},_setCont:function(html,selector){if(selector){var tmp=[],i=0;html=html .replace(/\r\n/gi,'nyroModalLN').replace(//gi,function(x){tmp[i]=x;return '
';});var cur=$('
'+html+'
').find(selector);if(cur.length){html=cur.html().replace(/
<\/pre>/gi,function(x,y,z){return tmp[y];}).replace(/nyroModalLN/gi,"\r\n");}else{this._error();return;}}this.elts.hidden .append(this._filterScripts(html)).prepend(this.header).append(this.footer).wrapInner('
');this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();var outer=this.getInternal()._getOuter(this.elts.cont);this.sizes.hMargin=outer.h.total;this.sizes.wMargin=outer.w.total;this.size();this.loading=false;this._callFilters('filledContent');this._contentLoading();},_filterScripts:function(data){if(typeof data!='string')return data;this._scripts=[];this._scriptsShown=[];var start=0,stStart='',endLn=stEnd.length,pos,pos2,tmp;while((pos=data.indexOf(stStart,start))>-1){pos2=data.indexOf(stEnd)+endLn;tmp=$(data.substring(pos,pos2));if(!tmp.attr('src')||tmp.attr('rel')=='forceLoad'){if(tmp.attr('rev')=='shown')this._scriptsShown.push(tmp.get(0));else this._scripts.push(tmp.get(0));}data=data.substring(0,pos)+data.substr(pos2);start=pos;}return data;},_hasFilter:function(filter){var ret=false;$.each(this.filters,function(i,f){ret=ret||f==filter;});return ret;},_delFilter:function(filter){this.filters=$.map(this.filters,function(v){if(v!=filter)return v;});},_callFilters:function(fct){this.getInternal()._debug(fct);var ret=[],self=this;$.each(this.filters,function(i,f){ret[f]=self._callFilter(f,fct);});if(this.callbacks[fct]&&$.isFunction(this.callbacks[fct]))this.callbacks[fct](this);return ret;},_callFilter:function(f,fct){if(_filters[f]&&_filters[f][fct]&&$.isFunction(_filters[f][fct]))return _filters[f][fct](this);return undefined;},_callAnim:function(fct,clb){this.getInternal()._debug(fct);this._callFilters('before'+ucfirst(fct));if(!this._animated){this._animated=true;if(!$.isFunction(clb))clb=$.noop;var set=this.anim[fct]||this.anim.def||'basic';if(!_animations[set]||!_animations[set][fct]||!$.isFunction(_animations[set][fct]))set='basic';_animations[set][fct](this,$.proxy(function(){this._animated=false;this._callFilters('after'+ucfirst(fct));clb();},this));}},_load:function(){this.getInternal()._debug('_load');if(!this.loading&&this.loadFilter){this.loading=true;this._callFilter(this.loadFilter,'load');}},_contentLoading:function(){if(!this._animated&&this._bgReady){if(!this._transition&&this.elts.cont.html().length>0)this._transition=true;this._nbContentLoading++;if(!this.loading){if(!this._opened){this._opened=true;if(this._transition){var fct=$.proxy(function(){this._writeContent();this._callFilters('beforeShowCont');this._callAnim('hideTrans',$.proxy(function(){this._transition=false;this._callFilters('afterShowCont');this.elts.cont.append(this._scriptsShown);this._reposition();},this));},this);if(this._nbContentLoading==1){this._unreposition();this._callAnim('showTrans',fct);}else{fct();}}else{this._callAnim('hideLoad',$.proxy(function(){this._writeContent();this._callAnim('showCont',$.proxy(function(){this.elts.cont.append(this._scriptsShown);this._reposition();},this));},this));}}}else if(this._nbContentLoading==1){var outer=this.getInternal()._getOuter(this.elts.load);this.elts.load .css({position:'fixed',top:(this.getInternal().fullSize.viewH-this.elts.load.height()-outer.h.margin)/2,left:(this.getInternal().fullSize.viewW-this.elts.load.width()-outer.w.margin)/2});if(this._transition){this._unreposition();this._callAnim('showTrans',$.proxy(function(){this._contentLoading();},this));}else{this._callAnim('showLoad',$.proxy(function(){this._contentLoading();},this));}}}},_writeContent:function(){this.elts.cont .empty().append(this.elts.hidden.contents()).append(this._scripts).append(this.showCloseButton?this.closeButton:'').css({position:'fixed',width:this.sizes.w,height:this.sizes.h,top:(this.getInternal().fullSize.viewH-this.sizes.h-this.sizes.hMargin)/2,left:(this.getInternal().fullSize.viewW-this.sizes.w-this.sizes.wMargin)/2});},_reposition:function(){var elts=this.elts.cont.find('.nmReposition');if(elts.length){var space=this.getInternal()._getSpaceReposition();elts.each(function(){var me=$(this),offset=me.offset();me.css({position:'fixed',top:offset.top-space.top,left:offset.left-space.left});});this.elts.cont.after(elts);}this.elts.cont.css('overflow','auto');this._callFilters('afterReposition');},_unreposition:function(){this.elts.cont.css('overflow','');var elts=this.elts.all.find('.nmReposition');if(elts.length)this.elts.cont.append(elts.removeAttr('style'));this._callFilters('afterUnreposition');}},_internal={firstInit:true,stack:[],fullSize:{w:0,h:0,wW:0,wH:0,viewW:0,viewH:0},nyroModal:function(opts,fullObj){if(_internal.firstInit){_internal._container=$('
').appendTo($b);$w.smartresize($.proxy(_internal._resize,_internal));$d.bind('keydown.nyroModal',$.proxy(_internal._keyHandler,_internal));_internal._calculateFullSize();_internal.firstInit=false;}return this.nmInit(opts,fullObj).each(function(){_internal._init($(this).data('nmObj'));});},nmInit:function(opts,fullObj){return this.each(function(){var me=$(this);if(fullObj)me.data('nmObj',$.extend(true,{opener:me},opts));else me.data('nmObj',me.data('nmObj')?$.extend(true,me.data('nmObj'),opts):$.extend(true,{opener:me},_nmObj,opts));});},nmCall:function(){return this.trigger('nyroModal');},nmManual:function(url,opts){$('',{href:url}).nyroModal(opts).trigger('nyroModal');},nmData:function(data,opts){this.nmManual('#',$.extend({data:data},opts));},nmObj:function(opts){$.extend(true,_nmObj,opts);},nmInternal:function(opts){$.extend(true,_internal,opts);},nmAnims:function(opts){$.extend(true,_animations,opts);},nmFilters:function(opts){$.extend(true,_filters,opts);},nmTop:function(){if(_internal.stack.length)return $(_internal.stack[_internal.stack.length-1]).data('nmObj');return undefined;},_debug:function(msg){if(window.console&&window.console.log)window.console.log(msg);},_container:undefined,_init:function(nm){nm.filters=[];$.each(_filters,function(f,obj){if(obj.is&&$.isFunction(obj.is)&&obj.is(nm)){nm.filters.push(f);}});nm._callFilters('initFilters');nm._callFilters('init');nm.opener .unbind('nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal').bind({'nyroModal.nyroModal':function(e){nm.open();return false;},'nmClose.nyroModal':function(){nm.close();return false;},'nmResize.nyroModal':function(){nm.resize();return false;}});},_scrollWidth:(function(){var scrollbarWidth;if($.browser.msie){var $textarea1=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b),$textarea2=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b);scrollbarWidth=$textarea1.width()-$textarea2.width();$textarea1.add($textarea2).remove();}else{var $div=$('
').css({width:100,height:100,overflow:'auto',position:'absolute',top:-1000,left:-1000}).prependTo($b).append('
').find('div').css({width:'100%',height:200});scrollbarWidth=100-$div.width();$div.parent().remove();}return scrollbarWidth;})(),_selNyroModal:function(obj){return $(obj).data('nmObj')?true:false;},_selNyroModalOpen:function(obj){var me=$(obj);return me.data('nmObj')?me.data('nmObj')._open:false;},_keyHandler:function(e){var nmTop=$.nmTop();if(nmTop&&nmTop.useKeyHandler){return nmTop.keyHandle(e);}},_pushStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});this.stack.push(obj.get(0));},_removeStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});},_resize:function(){var opens=$(':nmOpen').each(function(){$(this).data('nmObj')._unreposition();});this._calculateFullSize();opens.trigger('nmResize');},_calculateFullSize:function(){this.fullSize={w:$d.width(),h:$d.height(),wW:$w.width(),wH:$w.height()};this.fullSize.viewW=Math.min(this.fullSize.w,this.fullSize.wW);this.fullSize.viewH=Math.min(this.fullSize.h,this.fullSize.wH);},_getCurCSS:function(elm,name){var ret=parseInt($.curCSS(elm,name,true));return isNaN(ret)?0:ret;},_getOuter:function(elm){elm=elm.get(0);var ret={h:{margin:this._getCurCSS(elm,'marginTop')+this._getCurCSS(elm,'marginBottom'),border:this._getCurCSS(elm,'borderTopWidth')+this._getCurCSS(elm,'borderBottomWidth'),padding:this._getCurCSS(elm,'paddingTop')+this._getCurCSS(elm,'paddingBottom')},w:{margin:this._getCurCSS(elm,'marginLeft')+this._getCurCSS(elm,'marginRight'),border:this._getCurCSS(elm,'borderLeftWidth')+this._getCurCSS(elm,'borderRightWidth'),padding:this._getCurCSS(elm,'paddingLeft')+this._getCurCSS(elm,'paddingRight')}};ret.h.outer=ret.h.margin+ret.h.border;ret.w.outer=ret.w.margin+ret.w.border;ret.h.inner=ret.h.padding+ret.h.border;ret.w.inner=ret.w.padding+ret.w.border;ret.h.total=ret.h.outer+ret.h.padding;ret.w.total=ret.w.outer+ret.w.padding;return ret;},_getSpaceReposition:function(){var outer=this._getOuter($b),ie7=$.browser.msie&&$.browser.version<8&&!(screen.height<=$w.height()+23);return{top:$w.scrollTop()-(!ie7?outer.h.border/2:0),left:$w.scrollLeft()-(!ie7?outer.w.border/2:0)};},_getHash:function(url){if(typeof url=='string'){var hashPos=url.indexOf('#');if(hashPos>-1)return url.substring(hashPos);}return '';},_extractUrl:function(url){var ret={url:undefined,sel:undefined};if(url){var hash=this._getHash(url),hashLoc=this._getHash(window.location.href),curLoc=window.location.href.substring(0,window.location.href.length-hashLoc.length),req=url.substring(0,url.length-hash.length);ret.sel=hash;if(req!=curLoc&&req!=baseHref)ret.url=req;}return ret;}},_animations={basic:{showBg:function(nm,clb){nm.elts.bg.css({opacity:0.7}).show();clb();},hideBg:function(nm,clb){nm.elts.bg.hide();clb();},showLoad:function(nm,clb){nm.elts.load.show();clb();},hideLoad:function(nm,clb){nm.elts.load.hide();clb();},showCont:function(nm,clb){nm.elts.cont.show();clb();},hideCont:function(nm,clb){nm.elts.cont.hide();clb();},showTrans:function(nm,clb){nm.elts.cont.hide();nm.elts.load.show();clb();},hideTrans:function(nm,clb){nm.elts.cont.show();nm.elts.load.hide();clb();},resize:function(nm,clb){nm.elts.cont.css({width:nm.sizes.w,height:nm.sizes.h,top:(nm.getInternal().fullSize.viewH-nm.sizes.h-nm.sizes.hMargin)/2,left:(nm.getInternal().fullSize.viewW-nm.sizes.w-nm.sizes.wMargin)/2});clb();}}},_filters={basic:{is:function(nm){return true;},init:function(nm){if(nm.opener.attr('rev')=='modal')nm.modal=true;if(nm.modal)nm.closeOnEscape=nm.closeOnClick=nm.showCloseButton=false;if(nm.closeOnEscape)nm.useKeyHandler=true;},initElts:function(nm){nm.elts.bg.addClass('nyroModalBg');if(nm.closeOnClick)nm.elts.bg.unbind('click.nyroModal').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});nm.elts.cont.addClass('nyroModalCont');nm.elts.hidden.addClass('nyroModalCont nyroModalHidden');nm.elts.load.addClass('nyroModalCont nyroModalLoad');},error:function(nm){nm.elts.hidden.addClass('nyroModalError');nm.elts.cont.addClass('nyroModalError');nm._setCont(nm.errorMsg);},beforeShowCont:function(nm){nm.elts.cont .find('.nyroModal').nyroModal(nm.getForNewLinks(),true).end().find('.nyroModalClose').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});},keyHandle:function(nm){if(nm.keyEvent.keyCode==27&&nm.closeOnEscape){nm.keyEvent.preventDefault();nm.close();}}},custom:{is:function(nm){return true;}}};$.fn.extend({nm:_internal.nyroModal,nyroModal:_internal.nyroModal,nmInit:_internal.nmInit,nmCall:_internal.nmCall});$.extend({nmManual:_internal.nmManual,nmData:_internal.nmData,nmObj:_internal.nmObj,nmInternal:_internal.nmInternal,nmAnims:_internal.nmAnims,nmFilters:_internal.nmFilters,nmTop:_internal.nmTop});$.expr[':'].nyroModal=$.expr[':'].nm=_internal._selNyroModal;$.expr[':'].nmOpen=_internal._selNyroModalOpen;});(function($,sr){var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)func.apply(obj,args);timeout=null;};if(timeout)clearTimeout(timeout);else if(execAsap)func.apply(obj,args);timeout=setTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn){return fn?this.bind('resize',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize');function ucfirst(str){str+='';var f=str.charAt(0).toUpperCase();return f+str.substr(1);}; jQuery(function($,undefined){$.nmAnims({fade:{showBg:function(nm,clb){nm.elts.bg.fadeTo(250,0.7,clb);},hideBg:function(nm,clb){nm.elts.bg.fadeOut(clb);},showLoad:function(nm,clb){nm.elts.load.fadeIn(clb);},hideLoad:function(nm,clb){nm.elts.load.fadeOut(clb);},showCont:function(nm,clb){nm.elts.cont.fadeIn(clb);},hideCont:function(nm,clb){nm.elts.cont.css('overflow','hidden').fadeOut(clb);},showTrans:function(nm,clb){nm.elts.load .css({position:nm.elts.cont.css('position'),top:nm.elts.cont.css('top'),left:nm.elts.cont.css('left'),width:nm.elts.cont.css('width'),height:nm.elts.cont.css('height'),marginTop:nm.elts.cont.css('marginTop'),marginLeft:nm.elts.cont.css('marginLeft')}).fadeIn(function(){nm.elts.cont.hide();clb();});},hideTrans:function(nm,clb){nm.elts.cont.css('visibility','hidden').show();nm.elts.load .css('position',nm.elts.cont.css('position')).animate({top:nm.elts.cont.css('top'),left:nm.elts.cont.css('left'),width:nm.elts.cont.css('width'),height:nm.elts.cont.css('height'),marginTop:nm.elts.cont.css('marginTop'),marginLeft:nm.elts.cont.css('marginLeft')},function(){nm.elts.cont.css('visibility','');nm.elts.load.fadeOut(clb);});},resize:function(nm,clb){nm.elts.cont.animate({width:nm.sizes.w,height:nm.sizes.h,top:(nm.getInternal().fullSize.viewH-nm.sizes.h-nm.sizes.hMargin)/2,left:(nm.getInternal().fullSize.viewW-nm.sizes.w-nm.sizes.wMargin)/2},clb);}}});$.nmObj({anim:{def:'fade'}});});; jQuery(function($,undefined){$.nmFilters({title:{is:function(nm){return nm.opener.is('[title]');},beforeShowCont:function(nm){var offset=nm.elts.cont.offset();nm.store.title=$('

',{text:nm.opener.attr('title')}).addClass('nyroModalTitle nmReposition');nm.elts.cont.prepend(nm.store.title);},close:function(nm){if(nm.store.title){nm.store.title.remove();nm.store.title=undefined;delete(nm.store.title);}}}});});; jQuery(function($,undefined){$.nmFilters({gallery:{is:function(nm){var ret=nm.opener.is('[rel]:not([rel=external], [rel=nofollow])');if(ret&&nm.galleryCounts&&!nm._hasFilter('title'))nm.filters.push('title');return ret;},init:function(nm){nm.useKeyHandler=true;},keyHandle:function(nm){if(!nm._animated&&nm._opened){if(nm.keyEvent.keyCode==39||nm.keyEvent.keyCode==40){nm.keyEvent.preventDefault();nm._callFilters('galleryNext');}else if(nm.keyEvent.keyCode==37||nm.keyEvent.keyCode==38){nm.keyEvent.preventDefault();nm._callFilters('galleryPrev');}}},initElts:function(nm){var rel=nm.opener.attr('rel'),indexSpace=rel.indexOf(' ');nm.store.gallery=indexSpace>0?rel.substr(0,indexSpace):rel;nm.store.galleryLinks=$('[href][rel="'+nm.store.gallery+'"], [href][rel^="'+nm.store.gallery+' "]');nm.store.galleryIndex=nm.store.galleryLinks.index(nm.opener);},beforeShowCont:function(nm){if(nm.galleryCounts&&nm.store.title&&nm.store.galleryLinks.length>1){var curTitle=nm.store.title.html();nm.store.title.html((curTitle.length?curTitle+' - ':'')+(nm.store.galleryIndex+1)+'/'+nm.store.galleryLinks.length);}},filledContent:function(nm){var link=this._getGalleryLink(nm,-1),append=nm.elts.hidden.find(' > div');if(link){$('',{text:'previous',href:'#'}).addClass('nyroModalPrev').bind('click',function(e){e.preventDefault();nm._callFilters('galleryPrev');}).appendTo(append);}link=this._getGalleryLink(nm,1);if(link){$('',{text:'next',href:'#'}).addClass('nyroModalNext').bind('click',function(e){e.preventDefault();nm._callFilters('galleryNext');}).appendTo(append);}},close:function(nm){nm.store.gallery=undefined;nm.store.galleryLinks=undefined;nm.store.galleryIndex=undefined;delete(nm.store.gallery);delete(nm.store.galleryLinks);delete(nm.store.galleryIndex);if(nm.elts.cont)nm.elts.cont.find('.nyroModalNext, .nyroModalPrev').remove();},galleryNext:function(nm){this._getGalleryLink(nm,1).nyroModal(nm.getForNewLinks(),true).click();},galleryPrev:function(nm){this._getGalleryLink(nm,-1).nyroModal(nm.getForNewLinks(),true).click();},_getGalleryLink:function(nm,dir){if(nm.store.gallery){if(!nm.ltr)dir *=-1;var index=nm.store.galleryIndex+dir;if(index>=0&&index').load(function(){nm.elts.cont.addClass('nyroModalImg');nm.elts.hidden.addClass('nyroModalImg');nm._setCont(this);}).error(function(){nm._error();}).attr('src',url);},size:function(nm){if(nm.sizes.w!=nm.sizes.initW||nm.sizes.h!=nm.sizes.initH){var ratio=Math.min(nm.sizes.w/nm.sizes.initW,nm.sizes.h/nm.sizes.initH);nm.sizes.w=nm.sizes.initW * ratio;nm.sizes.h=nm.sizes.initH * ratio;}var img=nm.loading?nm.elts.hidden.find('img'):nm.elts.cont.find('img');img.attr({width:nm.sizes.w,height:nm.sizes.h});},close:function(nm){if(nm.elts.cont){nm.elts.cont.removeClass('nyroModalImg');nm.elts.hidden.removeClass('nyroModalImg');}}}});});; - jQuery(function($,undefined){$.nmFilters({swf:{is:function(nm){return nm._hasFilter('link')&&nm.opener.is('[href$=.swf]');},init:function(nm){nm.loadFilter='swf';},load:function(nm){var url=nm.store.link.url,cont='
',tmp='';$.each(nm.swf,function(name,val){cont+='';tmp+=' '+name+'="'+val+'"';});cont+='
';nm._setCont(cont);}}});});; + jQuery(function($,undefined){$.nmFilters({swf:{idCounter:1,is:function(nm){return nm._hasFilter('link')&&nm.opener.is('[href$=".swf"]');},init:function(nm){nm.loadFilter='swf';},load:function(nm){if(!nm.swfObjectId)nm.swfObjectId='nyroModalSwf-'+(this.idCounter++);var url=nm.store.link.url,cont='
',tmp='';$.each(nm.swf,function(name,val){cont+='';tmp+=' '+name+'="'+val+'"';});cont+='
';nm._setCont(cont);}}});});; jQuery(function($,undefined){$.nmFilters({form:{is:function(nm){var ret=nm.opener.is('form');if(ret)nm.store.form=nm.getInternal()._extractUrl(nm.opener.attr('action'));return ret;},init:function(nm){nm.loadFilter='form';nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){e.preventDefault();nm.opener.trigger('nyroModal');});},load:function(nm){var data=nm.opener.serializeArray();if(nm.store.form.sel)data.push({name:nm.selIndicator,value:nm.store.form.sel.substring(1)});$.ajax({url:nm.store.form.url,data:data,type:nm.opener.attr('method')?nm.opener.attr('method'):'get',success:function(data){nm._setCont(data,nm.store.form.sel);},error:function(){nm._error();}});}}});});; - jQuery(function($,undefined){$.nmFilters({formFile:{is:function(nm){var ret=nm.opener.is('form[enctype="multipart/form-data"]');if(ret){nm._delFilter('form');if(!nm.store.form)nm.store.form=nm.getInternal()._extractUrl(nm.opener.attr('action'));}return ret;},init:function(nm){nm.loadFilter='formFile';nm.store.formFileLoading=false;nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.formFileIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.formFileLoading=true;}});},initElts:function(nm){var inputSel;if(nm.store.form.sel)inputSel=$('',{'type':'hidden',name:nm.selIndicator,value:nm.store.form.sel.substring(1)}).appendTo(nm.opener);function rmFormFileElts(){if(inputSel){inputSel.remove();inputSel=undefined;delete(inputSel);}nm.store.formFileIframe.attr('src','about:blank').remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}nm.store.formFileIframe=$('').hide().load(function(){if(nm.store.formFileLoading){nm.store.formFileLoading=false;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){rmFormFileElts();nm._setCont(content.html(),nm.store.form.sel);}else{var nbTry=0;fct=function(){nbTry++;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){nm._setCont(content.html(),nm.store.form.sel);rmFormFileElts();}else if(nbTry<5){setTimeout(fct,25);}else{rmFormFileElts();nm._error();}};setTimeout(fct,25);}}}).error(function(){rmIframe();nm._error();});nm.elts.all.append(nm.store.formFileIframe);nm.opener .attr('target','nyroModalFormFile').submit();},close:function(nm){nm.store.formFileLoading=false;if(nm.store.formFileIframe){nm.store.formFileIframe.remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}}}});});; - jQuery(function($,undefined){$.nmFilters({iframe:{is:function(nm){var target=nm.opener.attr('target')||'',rel=nm.opener.attr('rel')||'',opener=nm.opener.get(0);return!nm._hasFilter('image')&&(target.toLowerCase()=='_blank'||rel.toLowerCase().indexOf('external')>-1||(opener.hostname&&opener.hostname.replace(/:\d*$/,'')!=window.location.hostname.replace(/:\d*$/,'')));},init:function(nm){nm.loadFilter='iframe';},load:function(nm){nm.store.iframe=$('');nm._setCont(nm.store.iframe);},afterShowCont:function(nm){nm.store.iframe.attr('src',nm.opener.attr('href'));},close:function(nm){if(nm.store.iframe){nm.store.iframe.remove();nm.store.iframe=undefined;delete(nm.store.iframe);}}}});});; - jQuery(function($,undefined){$.nmFilters({iframeForm:{is:function(nm){var ret=nm._hasFilter('iframe')&&nm.opener.is('form');if(ret){nm._delFilter('iframe');nm._delFilter('form');}return ret;},init:function(nm){nm.loadFilter='iframeForm';nm.store.iframeFormLoading=false;nm.store.iframeFormOrgTarget=nm.opener.attr('target');nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.iframeFormIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.iframeFormLoading=true;}});},load:function(nm){nm.store.iframeFormIframe=$('');nm._setCont(nm.store.iframeFormIframe);},afterShowCont:function(nm){nm.opener .attr('target','nyroModalIframeForm').submit();},close:function(nm){nm.store.iframeFormOrgTarget?nm.opener.attr('target',nm.store.iframeFormOrgTarget):nm.opener.removeAttr('target');delete(nm.store.formFileLoading);delete(nm.store.iframeFormOrgTarget);if(nm.store.iframeFormIframe){nm.store.iframeFormIframe.remove();nm.store.iframeFormIframe=undefined;delete(nm.store.iframeFormIframe);}}}});});; + jQuery(function($,undefined){$.nmFilters({formFile:{is:function(nm){var ret=nm.opener.is('form[enctype="multipart/form-data"]');if(ret){nm._delFilter('form');if(!nm.store.form)nm.store.form=nm.getInternal()._extractUrl(nm.opener.attr('action'));}return ret;},init:function(nm){nm.loadFilter='formFile';nm.store.formFileLoading=false;nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.formFileIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.formFileLoading=true;}});},initElts:function(nm){var inputSel;if(nm.store.form.sel)inputSel=$('',{'type':'hidden',name:nm.selIndicator,value:nm.store.form.sel.substring(1)}).appendTo(nm.opener);function rmFormFileElts(){if(inputSel){inputSel.remove();inputSel=undefined;delete(inputSel);}nm.store.formFileIframe.attr('src','about:blank').remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}nm.store.formFileIframe=$('').hide().load(function(){if(nm.store.formFileLoading){nm.store.formFileLoading=false;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){rmFormFileElts();nm._setCont(content.html(),nm.store.form.sel);}else{var nbTry=0;fct=function(){nbTry++;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){nm._setCont(content.html(),nm.store.form.sel);rmFormFileElts();}else if(nbTry<5){setTimeout(fct,25);}else{rmFormFileElts();nm._error();}};setTimeout(fct,25);}}}).error(function(){rmFormFileElts();nm._error();});nm.elts.all.append(nm.store.formFileIframe);nm.opener .attr('target','nyroModalFormFile').submit();},close:function(nm){nm.store.formFileLoading=false;if(nm.store.formFileIframe){nm.store.formFileIframe.remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}}}});});; + jQuery(function($,undefined){$.nmFilters({iframe:{is:function(nm){var target=nm.opener.attr('target')||'',rel=nm.opener.attr('rel')||'',opener=nm.opener.get(0);return!nm._hasFilter('image')&&(target.toLowerCase()=='_blank'||rel.toLowerCase().indexOf('external')>-1||(opener.hostname&&opener.hostname.replace(/:\d*$/,'')!=window.location.hostname.replace(/:\d*$/,'')));},init:function(nm){nm.loadFilter='iframe';},load:function(nm){nm.store.iframe=$('');nm._setCont(nm.store.iframe);},afterShowCont:function(nm){nm.store.iframe.attr('src',nm.opener.attr('href'));},close:function(nm){if(nm.store.iframe){nm.store.iframe.remove();nm.store.iframe=undefined;delete(nm.store.iframe);}}}});});; + jQuery(function($,undefined){$.nmFilters({iframeForm:{is:function(nm){var ret=nm._hasFilter('iframe')&&nm.opener.is('form');if(ret){nm._delFilter('iframe');nm._delFilter('form');}return ret;},init:function(nm){nm.loadFilter='iframeForm';nm.store.iframeFormLoading=false;nm.store.iframeFormOrgTarget=nm.opener.attr('target');nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.iframeFormIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.iframeFormLoading=true;}});},load:function(nm){nm.store.iframeFormIframe=$('');nm._setCont(nm.store.iframeFormIframe);},afterShowCont:function(nm){nm.opener .attr('target','nyroModalIframeForm').submit();},close:function(nm){nm.store.iframeFormOrgTarget?nm.opener.attr('target',nm.store.iframeFormOrgTarget):nm.opener.removeAttr('target');delete(nm.store.formFileLoading);delete(nm.store.iframeFormOrgTarget);if(nm.store.iframeFormIframe){nm.store.iframeFormIframe.remove();nm.store.iframeFormIframe=undefined;delete(nm.store.iframeFormIframe);}}}});});; jQuery(function($,undefined){$.nmFilters({embedly:{is:function(nm){var embedlyReg= /http:\/\/(.*youtube\.com\/watch.*|.*\.youtube\.com\/v\/.*|youtu\.be\/.*|.*\.youtube\.com\/user\/.*|.*\.youtube\.com\/.*#.*\/.*|m\.youtube\.com\/watch.*|m\.youtube\.com\/index.*|.*\.youtube\.com\/profile.*|.*justin\.tv\/.*|.*justin\.tv\/.*\/b\/.*|.*justin\.tv\/.*\/w\/.*|www\.ustream\.tv\/recorded\/.*|www\.ustream\.tv\/channel\/.*|www\.ustream\.tv\/.*|qik\.com\/video\/.*|qik\.com\/.*|qik\.ly\/.*|.*revision3\.com\/.*|.*\.dailymotion\.com\/video\/.*|.*\.dailymotion\.com\/.*\/video\/.*|www\.collegehumor\.com\/video:.*|.*twitvid\.com\/.*|www\.break\.com\/.*\/.*|vids\.myspace\.com\/index\.cfm\?fuseaction=vids\.individual&videoid.*|www\.myspace\.com\/index\.cfm\?fuseaction=.*&videoid.*|www\.metacafe\.com\/watch\/.*|www\.metacafe\.com\/w\/.*|blip\.tv\/file\/.*|.*\.blip\.tv\/file\/.*|video\.google\.com\/videoplay\?.*|.*revver\.com\/video\/.*|video\.yahoo\.com\/watch\/.*\/.*|video\.yahoo\.com\/network\/.*|.*viddler\.com\/explore\/.*\/videos\/.*|liveleak\.com\/view\?.*|www\.liveleak\.com\/view\?.*|animoto\.com\/play\/.*|dotsub\.com\/view\/.*|www\.overstream\.net\/view\.php\?oid=.*|www\.livestream\.com\/.*|www\.worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|teachertube\.com\/viewVideo\.php.*|www\.teachertube\.com\/viewVideo\.php.*|www1\.teachertube\.com\/viewVideo\.php.*|www2\.teachertube\.com\/viewVideo\.php.*|bambuser\.com\/v\/.*|bambuser\.com\/channel\/.*|bambuser\.com\/channel\/.*\/broadcast\/.*|www\.schooltube\.com\/video\/.*\/.*|bigthink\.com\/ideas\/.*|bigthink\.com\/series\/.*|sendables\.jibjab\.com\/view\/.*|sendables\.jibjab\.com\/originals\/.*|www\.xtranormal\.com\/watch\/.*|dipdive\.com\/media\/.*|dipdive\.com\/member\/.*\/media\/.*|dipdive\.com\/v\/.*|.*\.dipdive\.com\/media\/.*|.*\.dipdive\.com\/v\/.*|.*yfrog\..*\/.*|tweetphoto\.com\/.*|www\.flickr\.com\/photos\/.*|flic\.kr\/.*|twitpic\.com\/.*|www\.twitpic\.com\/.*|twitpic\.com\/photos\/.*|www\.twitpic\.com\/photos\/.*|.*imgur\.com\/.*|.*\.posterous\.com\/.*|post\.ly\/.*|twitgoo\.com\/.*|i.*\.photobucket\.com\/albums\/.*|s.*\.photobucket\.com\/albums\/.*|phodroid\.com\/.*\/.*\/.*|www\.mobypicture\.com\/user\/.*\/view\/.*|moby\.to\/.*|xkcd\.com\/.*|www\.xkcd\.com\/.*|imgs\.xkcd\.com\/.*|www\.asofterworld\.com\/index\.php\?id=.*|www\.asofterworld\.com\/.*\.jpg|asofterworld\.com\/.*\.jpg|www\.qwantz\.com\/index\.php\?comic=.*|23hq\.com\/.*\/photo\/.*|www\.23hq\.com\/.*\/photo\/.*|.*dribbble\.com\/shots\/.*|drbl\.in\/.*|.*\.smugmug\.com\/.*|.*\.smugmug\.com\/.*#.*|emberapp\.com\/.*\/images\/.*|emberapp\.com\/.*\/images\/.*\/sizes\/.*|emberapp\.com\/.*\/collections\/.*\/.*|emberapp\.com\/.*\/categories\/.*\/.*\/.*|embr\.it\/.*|picasaweb\.google\.com.*\/.*\/.*#.*|picasaweb\.google\.com.*\/lh\/photo\/.*|picasaweb\.google\.com.*\/.*\/.*|dailybooth\.com\/.*\/.*|brizzly\.com\/pic\/.*|pics\.brizzly\.com\/.*\.jpg|img\.ly\/.*|www\.tinypic\.com\/view\.php.*|tinypic\.com\/view\.php.*|www\.tinypic\.com\/player\.php.*|tinypic\.com\/player\.php.*|www\.tinypic\.com\/r\/.*\/.*|tinypic\.com\/r\/.*\/.*|.*\.tinypic\.com\/.*\.jpg|.*\.tinypic\.com\/.*\.png|meadd\.com\/.*\/.*|meadd\.com\/.*|.*\.deviantart\.com\/art\/.*|.*\.deviantart\.com\/gallery\/.*|.*\.deviantart\.com\/#\/.*|fav\.me\/.*|.*\.deviantart\.com|.*\.deviantart\.com\/gallery|.*\.deviantart\.com\/.*\/.*\.jpg|.*\.deviantart\.com\/.*\/.*\.gif|.*\.deviantart\.net\/.*\/.*\.jpg|.*\.deviantart\.net\/.*\/.*\.gif|plixi\.com\/p\/.*|plixi\.com\/profile\/home\/.*|plixi\.com\/.*|www\.fotopedia\.com\/.*\/.*|fotopedia\.com\/.*\/.*|photozou\.jp\/photo\/show\/.*\/.*|photozou\.jp\/photo\/photo_only\/.*\/.*|instagr\.am\/p\/.*|skitch\.com\/.*\/.*\/.*|img\.skitch\.com\/.*|https:\/\/skitch\.com\/.*\/.*\/.*|https:\/\/img\.skitch\.com\/.*|share\.ovi\.com\/media\/.*\/.*|www\.questionablecontent\.net\/|questionablecontent\.net\/|www\.questionablecontent\.net\/view\.php.*|questionablecontent\.net\/view\.php.*|questionablecontent\.net\/comics\/.*\.png|www\.questionablecontent\.net\/comics\/.*\.png|picplz\.com\/user\/.*\/pic\/.*\/|twitrpix\.com\/.*|.*\.twitrpix\.com\/.*|www\.someecards\.com\/.*\/.*|someecards\.com\/.*\/.*|some\.ly\/.*|www\.some\.ly\/.*|pikchur\.com\/.*|achewood\.com\/.*|www\.achewood\.com\/.*|achewood\.com\/index\.php.*|www\.achewood\.com\/index\.php.*|www\.whitehouse\.gov\/photos-and-video\/video\/.*|www\.whitehouse\.gov\/video\/.*|wh\.gov\/photos-and-video\/video\/.*|wh\.gov\/video\/.*|www\.hulu\.com\/watch.*|www\.hulu\.com\/w\/.*|hulu\.com\/watch.*|hulu\.com\/w\/.*|.*crackle\.com\/c\/.*|www\.fancast\.com\/.*\/videos|www\.funnyordie\.com\/videos\/.*|www\.funnyordie\.com\/m\/.*|funnyordie\.com\/videos\/.*|funnyordie\.com\/m\/.*|www\.vimeo\.com\/groups\/.*\/videos\/.*|www\.vimeo\.com\/.*|vimeo\.com\/m\/#\/featured\/.*|vimeo\.com\/groups\/.*\/videos\/.*|vimeo\.com\/.*|vimeo\.com\/m\/#\/featured\/.*|www\.ted\.com\/talks\/.*\.html.*|www\.ted\.com\/talks\/lang\/.*\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/lang\/.*\/.*\.html.*|.*nfb\.ca\/film\/.*|www\.thedailyshow\.com\/watch\/.*|www\.thedailyshow\.com\/full-episodes\/.*|www\.thedailyshow\.com\/collection\/.*\/.*\/.*|movies\.yahoo\.com\/movie\/.*\/video\/.*|movies\.yahoo\.com\/movie\/.*\/trailer|movies\.yahoo\.com\/movie\/.*\/video|www\.colbertnation\.com\/the-colbert-report-collections\/.*|www\.colbertnation\.com\/full-episodes\/.*|www\.colbertnation\.com\/the-colbert-report-videos\/.*|www\.comedycentral\.com\/videos\/index\.jhtml\?.*|www\.theonion\.com\/video\/.*|theonion\.com\/video\/.*|wordpress\.tv\/.*\/.*\/.*\/.*\/|www\.traileraddict\.com\/trailer\/.*|www\.traileraddict\.com\/clip\/.*|www\.traileraddict\.com\/poster\/.*|www\.escapistmagazine\.com\/videos\/.*|www\.trailerspy\.com\/trailer\/.*\/.*|www\.trailerspy\.com\/trailer\/.*|www\.trailerspy\.com\/view_video\.php.*|www\.atom\.com\/.*\/.*\/|fora\.tv\/.*\/.*\/.*\/.*|www\.spike\.com\/video\/.*|www\.gametrailers\.com\/video\/.*|gametrailers\.com\/video\/.*|www\.koldcast\.tv\/video\/.*|www\.koldcast\.tv\/#video:.*|techcrunch\.tv\/watch.*|techcrunch\.tv\/.*\/watch.*|mixergy\.com\/.*|video\.pbs\.org\/video\/.*|www\.zapiks\.com\/.*|tv\.digg\.com\/diggnation\/.*|tv\.digg\.com\/diggreel\/.*|tv\.digg\.com\/diggdialogg\/.*|www\.trutv\.com\/video\/.*|www\.nzonscreen\.com\/title\/.*|nzonscreen\.com\/title\/.*|app\.wistia\.com\/embed\/medias\/.*|https:\/\/app\.wistia\.com\/embed\/medias\/.*|www\.godtube\.com\/featured\/video\/.*|godtube\.com\/featured\/video\/.*|www\.godtube\.com\/watch\/.*|godtube\.com\/watch\/.*|www\.tangle\.com\/view_video.*|mediamatters\.org\/mmtv\/.*|www\.clikthrough\.com\/theater\/video\/.*|soundcloud\.com\/.*|soundcloud\.com\/.*\/.*|soundcloud\.com\/.*\/sets\/.*|soundcloud\.com\/groups\/.*|snd\.sc\/.*|www\.last\.fm\/music\/.*|www\.last\.fm\/music\/+videos\/.*|www\.last\.fm\/music\/+images\/.*|www\.last\.fm\/music\/.*\/_\/.*|www\.last\.fm\/music\/.*\/.*|www\.mixcloud\.com\/.*\/.*\/|www\.radionomy\.com\/.*\/radio\/.*|radionomy\.com\/.*\/radio\/.*|www\.entertonement\.com\/clips\/.*|www\.rdio\.com\/#\/artist\/.*\/album\/.*|www\.rdio\.com\/artist\/.*\/album\/.*|www\.zero-inch\.com\/.*|.*\.bandcamp\.com\/|.*\.bandcamp\.com\/track\/.*|.*\.bandcamp\.com\/album\/.*|freemusicarchive\.org\/music\/.*|www\.freemusicarchive\.org\/music\/.*|freemusicarchive\.org\/curator\/.*|www\.freemusicarchive\.org\/curator\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/templates\/story\/story\.php.*|huffduffer\.com\/.*\/.*|www\.audioboo\.fm\/boos\/.*|audioboo\.fm\/boos\/.*|boo\.fm\/b.*|www\.xiami\.com\/song\/.*|xiami\.com\/song\/.*|espn\.go\.com\/video\/clip.*|espn\.go\.com\/.*\/story.*|abcnews\.com\/.*\/video\/.*|abcnews\.com\/video\/playerIndex.*|washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.boston\.com\/video.*|boston\.com\/video.*|www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\/video\.php.*|www\.facebook\.com\/v\/.*|cnbc\.com\/id\/.*\?.*video.*|www\.cnbc\.com\/id\/.*\?.*video.*|cnbc\.com\/id\/.*\/play\/1\/video\/.*|www\.cnbc\.com\/id\/.*\/play\/1\/video\/.*|cbsnews\.com\/video\/watch\/.*|www\.google\.com\/buzz\/.*\/.*\/.*|www\.google\.com\/buzz\/.*|www\.google\.com\/profiles\/.*|google\.com\/buzz\/.*\/.*\/.*|google\.com\/buzz\/.*|google\.com\/profiles\/.*|www\.cnn\.com\/video\/.*|edition\.cnn\.com\/video\/.*|money\.cnn\.com\/video\/.*|today\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/ns\/.*|today\.msnbc\.msn\.com\/id\/.*\/ns\/.*|multimedia\.foxsports\.com\/m\/video\/.*\/.*|msn\.foxsports\.com\/video.*|www\.globalpost\.com\/video\/.*|www\.globalpost\.com\/dispatch\/.*|.*amazon\..*\/gp\/product\/.*|.*amazon\..*\/.*\/dp\/.*|.*amazon\..*\/dp\/.*|.*amazon\..*\/o\/ASIN\/.*|.*amazon\..*\/gp\/offer-listing\/.*|.*amazon\..*\/.*\/ASIN\/.*|.*amazon\..*\/gp\/product\/images\/.*|www\.amzn\.com\/.*|amzn\.com\/.*|www\.shopstyle\.com\/browse.*|www\.shopstyle\.com\/action\/apiVisitRetailer.*|www\.shopstyle\.com\/action\/viewLook.*|gist\.github\.com\/.*|twitter\.com\/.*\/status\/.*|twitter\.com\/.*\/statuses\/.*|mobile\.twitter\.com\/.*\/status\/.*|mobile\.twitter\.com\/.*\/statuses\/.*|www\.crunchbase\.com\/.*\/.*|crunchbase\.com\/.*\/.*|www\.slideshare\.net\/.*\/.*|www\.slideshare\.net\/mobile\/.*\/.*|.*\.scribd\.com\/doc\/.*|screenr\.com\/.*|polldaddy\.com\/community\/poll\/.*|polldaddy\.com\/poll\/.*|answers\.polldaddy\.com\/poll\/.*|www\.5min\.com\/Video\/.*|www\.howcast\.com\/videos\/.*|www\.screencast\.com\/.*\/media\/.*|screencast\.com\/.*\/media\/.*|www\.screencast\.com\/t\/.*|screencast\.com\/t\/.*|issuu\.com\/.*\/docs\/.*|www\.kickstarter\.com\/projects\/.*\/.*|www\.scrapblog\.com\/viewer\/viewer\.aspx.*|ping\.fm\/p\/.*|chart\.ly\/.*|maps\.google\.com\/maps\?.*|maps\.google\.com\/\?.*|maps\.google\.com\/maps\/ms\?.*|.*\.craigslist\.org\/.*\/.*|my\.opera\.com\/.*\/albums\/show\.dml\?id=.*|my\.opera\.com\/.*\/albums\/showpic\.dml\?album=.*&picture=.*|tumblr\.com\/.*|.*\.tumblr\.com\/post\/.*|www\.polleverywhere\.com\/polls\/.*|www\.polleverywhere\.com\/multiple_choice_polls\/.*|www\.polleverywhere\.com\/free_text_polls\/.*|www\.quantcast\.com\/wd:.*|www\.quantcast\.com\/.*|siteanalytics\.compete\.com\/.*|statsheet\.com\/statplot\/charts\/.*\/.*\/.*\/.*|statsheet\.com\/statplot\/charts\/e\/.*|statsheet\.com\/.*\/teams\/.*\/.*|statsheet\.com\/tools\/chartlets\?chart=.*|.*\.status\.net\/notice\/.*|identi\.ca\/notice\/.*|brainbird\.net\/notice\/.*|shitmydadsays\.com\/notice\/.*|www\.studivz\.net\/Profile\/.*|www\.studivz\.net\/l\/.*|www\.studivz\.net\/Groups\/Overview\/.*|www\.studivz\.net\/Gadgets\/Info\/.*|www\.studivz\.net\/Gadgets\/Install\/.*|www\.studivz\.net\/.*|www\.meinvz\.net\/Profile\/.*|www\.meinvz\.net\/l\/.*|www\.meinvz\.net\/Groups\/Overview\/.*|www\.meinvz\.net\/Gadgets\/Info\/.*|www\.meinvz\.net\/Gadgets\/Install\/.*|www\.meinvz\.net\/.*|www\.schuelervz\.net\/Profile\/.*|www\.schuelervz\.net\/l\/.*|www\.schuelervz\.net\/Groups\/Overview\/.*|www\.schuelervz\.net\/Gadgets\/Info\/.*|www\.schuelervz\.net\/Gadgets\/Install\/.*|www\.schuelervz\.net\/.*|myloc\.me\/.*|pastebin\.com\/.*|pastie\.org\/.*|www\.pastie\.org\/.*|redux\.com\/stream\/item\/.*\/.*|redux\.com\/f\/.*\/.*|www\.redux\.com\/stream\/item\/.*\/.*|www\.redux\.com\/f\/.*\/.*|cl\.ly\/.*|cl\.ly\/.*\/content|speakerdeck\.com\/u\/.*\/p\/.*|www\.kiva\.org\/lend\/.*|www\.timetoast\.com\/timelines\/.*|storify\.com\/.*\/.*|.*meetup\.com\/.*|meetu\.ps\/.*|www\.dailymile\.com\/people\/.*\/entries\/.*|.*\.kinomap\.com\/.*|www\.metacdn\.com\/api\/users\/.*\/content\/.*|www\.metacdn\.com\/api\/users\/.*\/media\/.*|prezi\.com\/.*\/.*|.*\.uservoice\.com\/.*\/suggestions\/.*)/i;var ret=nm._hasFilter('link')&&nm.opener.attr('href')&&nm.opener.attr('href').match(embedlyReg)!==null;if(ret)nm._delFilter('iframe');return ret;},init:function(nm){nm.loadFilter='embedly';nm.store.embedly={};},load:function(nm){$.ajax({url:'http://api.embed.ly/1/oembed',dataType:'jsonp',data:'wmode=transparent&url='+nm.opener.attr('href'),success:function(data){if(data.type=='error')nm._error();else if(data.type=='photo'){nm.filters.push('image');$('').load(function(){nm.elts.cont.addClass('nyroModalImg');nm.elts.hidden.addClass('nyroModalImg');nm._setCont(this);}).error(function(){nm._error();}).attr('src',data.url);}else{nm.store.embedly.w=data.width;nm.store.embedly.h=data.height;nm._setCont('
'+data.html+'
');}}});},size:function(nm){if(nm.store.embedly.w&&!nm.sizes.h){nm.sizes.w=nm.store.embedly.w;nm.sizes.h=nm.store.embedly.h;}}}});});; diff -r 0533a05b7113 -r 491513b6e144 src/ldt/ldt/media/js/projectscontents.js --- a/src/ldt/ldt/media/js/projectscontents.js Wed Mar 09 16:36:20 2011 +0100 +++ b/src/ldt/ldt/media/js/projectscontents.js Wed Mar 09 16:48:17 2011 +0100 @@ -1,7 +1,8 @@ + $.fn.realVal = function() { var obj = $(this[0]); if(obj.val) { - if(obj.val() == obj.attr('defaultText')) { + if(obj.val() === obj.attr('defaultText')) { return ''; } else { @@ -66,21 +67,19 @@ 'tip': true } }); - +} -}; - -function testAndClose(old_close) { +function testAndClose(close_fn) { return function(force) { // Here we ask LDT if the current work is modified and if the user want to save it. var ldtSwf = $('#ldtInitSwf',$.nmTop().store.iframe.contents()).get(0); // In the ldt_link_create case, the modal page can be the form, or the ldt swf. So we have to test. - if (!force && ldtSwf && ldtSwf.name=="ldtInitSwf" && ldtSwf.isModified()=="true") { + if (!force && ldtSwf && ldtSwf.name==="ldtInitSwf" && ldtSwf.isModified()==="true") { ldtSwf.askSave(); } else { - old_close.apply(this); + close_fn.apply(this); } }; } @@ -88,8 +87,8 @@ function searchCallback(target, container_selector, url, timeout) { - timeout = typeof(timeout) != 'undefined' ? timeout : 0; - var target = $(target); + timeout = typeof(timeout) !== 'undefined' ? timeout : 0; + target = $(target); // remove all qtip $(".qtip").remove(); @@ -125,11 +124,11 @@ }, 300) ); -}; +} function init_events_contents(base_node, embed_url, content_filter_url) { - + init_events_base(base_node, embed_url); $('.content_link_create').each(function(i){ @@ -149,15 +148,15 @@ nm.store.iframe.width(770); nm.store.iframe.height(500); nm.store.iframe.load(function() { - var form_status = $(this).contents().find("#content_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted' ) { - $.nmTop().close(); - } - }); - } + var form_status = $(this).contents().find("#content_form_status").val(); + if(form_status === 'saved' || form_status === 'deleted' ) { + $.nmTop().close(); + } + }); + } } }); - + $('.contenttitlelink').each(function(i){ $(this).attr("target","_blank"); }); @@ -176,13 +175,14 @@ nm.store.iframe.height(500); nm.store.iframe.load(function() { var form_status = $(this).contents().find("#content_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted') { + if(form_status === 'saved' || form_status === 'deleted') { $.nmTop().close(); } }); } } }); + } function init_events_base_projects(base_node, embed_url, searchprojectfilterurl, publishprojecturl, unpublishprojecturl) { @@ -194,16 +194,16 @@ $('.ldt_link',base_node).nyroModal({ filters: ['iriIframe'], sizes: { - minW: '1022', - minH: '662' + minW: '1025', + minH: '665' }, showCloseButton: true, closeOnEscape:false, closeOnClick:false, callbacks: { afterShowCont: function(nm) { - nm.store.iframe.height(662); - nm.store.iframe.width(1022); + nm.store.iframe.width(1025); + nm.store.iframe.height(665); }, close: function(nm) { // We don't do anything here, we hack the callback directly from the close function. @@ -212,14 +212,15 @@ // Can't do that because searchprojectfilterurl is not defined in init_events_base params searchCallback($('#searchprojectsinput'), "#projectslistcontainer", searchprojectfilterurl, 0); } - }, + } }); + $('.ldt_link',base_node).each(function(i, e) { - nm = $(e).data('nmObj'); - $(e).data('nmObj', $.extend(true, nm, { - close: testAndClose(nm.close) - })); + nm = $(e).data('nmObj'); + $(e).data('nmObj', $.extend(true, nm, { + close: testAndClose(nm.close) + })); }); @@ -243,16 +244,16 @@ var iframe = nm.store.iframe; iframe.load(function(){ var form_status = $(this).contents().find("#project_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted' ) { + if(form_status === 'saved' || form_status === 'deleted' ) { $.nmTop().close(); } var swfobject = $(this).contents().find("#ldtInitSwf"); if (swfobject.length) { - nm['sizes']['initW'] = swfobject.width() + 21; - nm['sizes']['initH'] = swfobject.height() + 31; + nm['sizes']['initW'] = 1025; + nm['sizes']['initH'] = 665; nm.resize(); - nm.store.iframe.height(swfobject.height() + 31); - nm.store.iframe.width(swfobject.width() + 21); + nm.store.iframe.width(1025); + nm.store.iframe.height(665); } }); }, @@ -260,13 +261,13 @@ searchCallback($('#searchprojectsinput'), "#projectslistcontainer", searchprojectfilterurl, 0); } } - }); - $('.ldt_link_create',base_node).each(function(i, e) { - nm = $(e).data('nmObj'); - $(e).data('nmObj', $.extend(true, nm, { - close: testAndClose(nm.close) - })); - }); + }); + $('.ldt_link_create',base_node).each(function(i, e) { + nm = $(e).data('nmObj'); + $(e).data('nmObj', $.extend(true, nm, { + close: testAndClose(nm.close) + })); + }); $('.publishedproject', base_node).click(function(e) { @@ -322,7 +323,7 @@ var iframe = nm.store.iframe; iframe.load(function(){ var form_status = $(this).contents().find("#project_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted') { + if(form_status === 'saved' || form_status === 'deleted') { $.nmTop().close(); } }); @@ -339,17 +340,14 @@ } function init_events_all(base_node, embed_url, searchcontentfilterurl, searchprojectfilterurl, publishprojecturl, unpublishprojecturl) { - init_events_contents(base_node, embed_url, searchcontentfilterurl); - init_events_base_projects(base_node, embed_url, searchprojectfilterurl, publishprojecturl, unpublishprojecturl); + init_events_base_projects(base_node, embed_url, searchprojectfilterurl, publishprojecturl, unpublishprojecturl); } - - function searchFieldInit(input_list_init) { $(".searchfieldinputbase").keydown(function (e) { - if(e.which == 27) { + if(e.which === 27) { $(e.target).blur(); $(e.target).next(".searchajaxloader").hide(); } @@ -357,13 +355,13 @@ $('.searchfieldinput').each(function(i) { var sbox = $(this); - if(sbox.val() != '') { + if(sbox.val() !== '') { sbox.attr('defaultText', sbox.val()); } sbox.focus(function() { box = $(this); - if(box.val() == box.attr('defaultText')) { + if(box.val() === box.attr('defaultText')) { box.val(''); box.toggleClass("searchfieldinput"); } @@ -371,7 +369,7 @@ sbox.blur(function() { var box = $(this); - if(box.val() == '' && box.attr('defaultText')) { + if(box.val() === '' && box.attr('defaultText')) { box.val(box.attr('defaultText')); box.toggleClass("searchfieldinput"); } @@ -396,5 +394,5 @@ $('.searchclear').each(function(i) { $(this).hide(); }); - + } diff -r 0533a05b7113 -r 491513b6e144 web/ldtplatform/settings.py --- a/web/ldtplatform/settings.py Wed Mar 09 16:36:20 2011 +0100 +++ b/web/ldtplatform/settings.py Wed Mar 09 16:48:17 2011 +0100 @@ -13,7 +13,7 @@ DATABASES = { 'default': { - 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'ENGINE': 'django.db.backends', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': '', # Or path to database file if using sqlite3. 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. @@ -149,7 +149,7 @@ OAUTH_PROVIDER_CONSUMER_KEY_SIZE = 256 OAUTH_AUTHORIZE_VIEW = 'oauth_provider.views.fake_authorize_view' OAUTH_CALLBACK_VIEW = 'oauth_provider.views.fake_callback_view' -TEST_WEBSERVER_ADDRPORT = "127.0.0.1:8000" +TEST_WEBSERVER_ADDRPORT = "127.0.0.1:8888" from config import * diff -r 0533a05b7113 -r 491513b6e144 web/static/ldt/js/jquery.nyroModal.min.js --- a/web/static/ldt/js/jquery.nyroModal.min.js Wed Mar 09 16:36:20 2011 +0100 +++ b/web/static/ldt/js/jquery.nyroModal.min.js Wed Mar 09 16:48:17 2011 +0100 @@ -9,6 +9,7 @@ * - filters.gallery * - filters.link * - filters.dom + * - filters.data * - filters.image * - filters.swf * - filters.form @@ -17,16 +18,17 @@ * - filters.iframeForm * - filters.embedly */ - jQuery(function($,undefined){var $w=$(window),$d=$(document),$b=$('body'),baseHref=$('base').attr('href'),_nmObj={filters:[],callbacks:{},loadFilter:undefined,modal:false,closeOnEscape:true,closeOnClick:true,useKeyHandler:false,showCloseButton:true,closeButton:'
Close',stack:false,header:undefined,footer:undefined,galleryLoop:true,galleryCounts:true,ltr:true,imageRegex:'[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$',selIndicator:'nyroModalSel',swf:{allowFullScreen:'true',allowscriptaccess:'always',wmode:'transparent'},store:{},errorMsg:'An error occured',elts:{all:undefined,bg:undefined,load:undefined,cont:undefined,hidden:undefined},sizes:{initW:undefined,initH:undefined,w:undefined,h:undefined,minW:undefined,minH:undefined,wMargin:undefined,hMargin:undefined},anim:{def:undefined,showBg:undefined,hideBg:undefined,showLoad:undefined,hideLoad:undefined,showCont:undefined,hideCont:undefined,showTrans:undefined,hideTrans:undefined,resize:undefined},_open:false,_bgReady:false,_opened:false,_loading:false,_animated:false,_transition:false,_nmOpener:undefined,_nbContentLoading:0,_scripts:'',_scriptsShown:'',saveObj:function(){this.opener.data('nmObj',this);},open:function(){this.getInternal()._pushStack(this.opener);this._opened=false;this._bgReady=false;this._open=true;this._initElts();this._load();this._nbContentLoading=0;this._callAnim('showBg',$.proxy(function(){this._bgReady=true;if(this._nmOpener){this._nmOpener._close();this._nmOpener._bgReady=false;this._nmOpener._loading=false;this._nmOpener._animated=false;this._nmOpener._opened=false;this._nmOpener._open=false;this._nmOpener.elts.cont=this._nmOpener.elts.hidden=this._nmOpener.elts.load=this._nmOpener.elts.bg=this._nmOpener.elts.all=undefined;this._nmOpener.saveObj();this._nmOpener=undefined;}this._contentLoading();},this));},resize:function(){this.sizes.w=this.sizes.initW;this.sizes.h=this.sizes.initH;this._unreposition();this.size();this._callAnim('resize',$.proxy(function(){this._reposition();},this));},size:function(){var maxHeight=this.getInternal().fullSize.viewH-this.sizes.hMargin,maxWidth=this.getInternal().fullSize.viewW-this.sizes.wMargin;if(this.sizes.minW&&this.sizes.minW>this.sizes.w)this.sizes.w=this.sizes.minW;if(this.sizes.minH&&this.sizes.minH>this.sizes.h)this.sizes.h=this.sizes.minH;if(this.sizes.h>maxHeight||this.sizes.w>maxWidth){this.sizes.h=Math.min(this.sizes.h,maxHeight);this.sizes.w=Math.min(this.sizes.w,maxWidth);}this._callFilters('size');},getForNewLinks:function(){var ret;if(this.stack){ret=$.extend(true,{},this);ret._nmOpener=undefined;ret.elts.all=undefined;}else{ret=$.extend({},this);ret._nmOpener=this;}ret.filters=[];ret.opener=undefined;ret._open=false;return ret;},keyHandle:function(e){this.keyEvent=e;this._callFilters('keyHandle');this.keyEvent=undefined;delete(this.keyEvent);},getInternal:function(){return _internal;},_close:function(){this.getInternal()._removeStack(this.opener);this._opened=false;this._open=false;this._callFilters('close');},close:function(){this._close();this._callFilters('beforeClose');var self=this;this._unreposition();self._callAnim('hideCont',function(){self._callAnim('hideLoad',function(){self._callAnim('hideBg',function(){self._callFilters('afterClose');self.elts.cont.remove();self.elts.hidden.remove();self.elts.load.remove();self.elts.bg.remove();self.elts.all.remove();self.elts.cont=self.elts.hidden=self.elts.load=self.elts.bg=self.elts.all=undefined;});});});},_initElts:function(){if(!this.stack&&this.getInternal().stack.length>1)this.elts=$(_internal.stack[_internal.stack.length-2]).data('nmObj').elts;if(!this.elts.all||this.elts.all.closest('body').length==0)this.elts.all=this.elts.bg=this.elts.cont=this.elts.hidden=this.elts.load=undefined;if(!this.elts.all)this.elts.all=$('
').appendTo(this.getInternal()._container);if(!this.elts.bg)this.elts.bg=$('
').hide().appendTo(this.elts.all);if(!this.elts.cont)this.elts.cont=$('
').hide().appendTo(this.elts.all);if(!this.elts.hidden)this.elts.hidden=$('
').hide().appendTo(this.elts.all);this.elts.hidden.empty();if(!this.elts.load)this.elts.load=$('
').hide().appendTo(this.elts.all);this._callFilters('initElts');},_error:function(){this._callFilters('error');},_setCont:function(html,selector){if(selector){var tmp=[],i=0;html=html .replace(/\r\n/gi,'nyroModalLN').replace(//gi,function(x){tmp[i]=x;return '
';});var cur=$('
'+html+'
').find(selector);if(cur.length){html=cur.html().replace(/
<\/pre>/gi,function(x,y,z){return tmp[y];}).replace(/nyroModalLN/gi,"\r\n");}else{this._error();return;}}this.elts.hidden .append(this._filterScripts(html)).prepend(this.header).append(this.footer).wrapInner('
');this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();var outer=this.getInternal()._getOuter(this.elts.cont);this.sizes.hMargin=outer.h.total;this.sizes.wMargin=outer.w.total;this.size();this.loading=false;this._callFilters('filledContent');this._contentLoading();},_filterScripts:function(data){if(typeof data!='string')return data;this._scripts=[];this._scriptsShown=[];var start=0,stStart='',endLn=stEnd.length,pos,pos2,tmp;while((pos=data.indexOf(stStart,start))>-1){pos2=data.indexOf(stEnd)+endLn;tmp=$(data.substring(pos,pos2));if(!tmp.attr('src')||tmp.attr('rel')=='forceLoad'){if(tmp.attr('rev')=='shown')this._scriptsShown.push(tmp.get(0));else this._scripts.push(tmp.get(0));}data=data.substring(0,pos)+data.substr(pos2);start=pos;}return data;},_hasFilter:function(filter){var ret=false;$.each(this.filters,function(i,f){ret=ret||f==filter;});return ret;},_delFilter:function(filter){this.filters=$.map(this.filters,function(v){if(v!=filter)return v;});},_callFilters:function(fct){this.getInternal()._debug(fct);var ret=[],self=this;$.each(this.filters,function(i,f){ret[f]=self._callFilter(f,fct);});if(this.callbacks[fct]&&$.isFunction(this.callbacks[fct]))this.callbacks[fct](this);return ret;},_callFilter:function(f,fct){if(_filters[f]&&_filters[f][fct]&&$.isFunction(_filters[f][fct]))return _filters[f][fct](this);return undefined;},_callAnim:function(fct,clb){this.getInternal()._debug(fct);this._callFilters('before'+ucfirst(fct));if(!this._animated){this._animated=true;if(!$.isFunction(clb))clb=$.noop;var set=this.anim[fct]||this.anim.def||'basic';if(!_animations[set]||!_animations[set][fct]||!$.isFunction(_animations[set][fct]))set='basic';_animations[set][fct](this,$.proxy(function(){this._animated=false;this._callFilters('after'+ucfirst(fct));clb();},this));}},_load:function(){this.getInternal()._debug('_load');if(!this.loading&&this.loadFilter){this.loading=true;this._callFilter(this.loadFilter,'load');}},_contentLoading:function(){if(!this._animated&&this._bgReady){if(!this._transition&&this.elts.cont.html().length>0)this._transition=true;this._nbContentLoading++;if(!this.loading){if(!this._opened){this._opened=true;if(this._transition){var fct=$.proxy(function(){this._writeContent();this._callFilters('beforeShowCont');this._callAnim('hideTrans',$.proxy(function(){this._transition=false;this.elts.cont.append(this._scriptsShown);this._reposition();this._callFilters('afterShowCont');},this));},this);if(this._nbContentLoading==1){this._unreposition();this._callAnim('showTrans',fct);}else{fct();}}else{this._callAnim('hideLoad',$.proxy(function(){this._writeContent();this._callAnim('showCont',$.proxy(function(){this.elts.cont.append(this._scriptsShown);this._reposition();},this));},this));}}}else if(this._nbContentLoading==1){var outer=this.getInternal()._getOuter(this.elts.load);this.elts.load .css({position:'fixed',top:(this.getInternal().fullSize.viewH-this.elts.load.height()-outer.h.margin)/2,left:(this.getInternal().fullSize.viewW-this.elts.load.width()-outer.w.margin)/2});if(this._transition){this._unreposition();this._callAnim('showTrans',$.proxy(function(){this._contentLoading();},this));}else{this._callAnim('showLoad',$.proxy(function(){this._contentLoading();},this));}}}},_writeContent:function(){this.elts.cont .empty().append(this.elts.hidden.contents()).append(this._scripts).append(this.showCloseButton?this.closeButton:'').css({position:'fixed',width:this.sizes.w,height:this.sizes.h,top:(this.getInternal().fullSize.viewH-this.sizes.h-this.sizes.hMargin)/2,left:(this.getInternal().fullSize.viewW-this.sizes.w-this.sizes.wMargin)/2});},_reposition:function(){var elts=this.elts.cont.find('.nmReposition');if(elts.length){var space=this.getInternal()._getSpaceReposition();elts.each(function(){var me=$(this),offset=me.offset();me.css({position:'fixed',top:offset.top-space.top,left:offset.left-space.left});});this.elts.cont.after(elts);}this.elts.cont.css('overflow','auto');},_unreposition:function(){this.elts.cont.css('overflow','');var elts=this.elts.all.find('.nmReposition');if(elts.length)this.elts.cont.append(elts.removeAttr('style'));}},_internal={firstInit:true,stack:[],fullSize:{w:0,h:0,wW:0,wH:0,viewW:0,viewH:0},nyroModal:function(opts,fullObj){if(_internal.firstInit){_internal._container=$('
').appendTo($b);$w.smartresize($.proxy(_internal._resize,_internal));$d.bind('keydown.nyroModal',$.proxy(_internal._keyHandler,_internal));_internal._calculateFullSize();_internal.firstInit=false;}return this.nmInit(opts,fullObj).each(function(){_internal._init($(this).data('nmObj'));});},nmInit:function(opts,fullObj){return this.each(function(){var me=$(this);if(fullObj)me.data('nmObj',$.extend(true,{opener:me},opts));else me.data('nmObj',me.data('nmObj')?$.extend(true,me.data('nmObj'),opts):$.extend(true,{opener:me},_nmObj,opts));});},nmCall:function(){return this.trigger('nyroModal');},nmManual:function(url,opts){$('',{href:url}).nyroModal(opts).trigger('nyroModal');},nmObj:function(opts){$.extend(true,_nmObj,opts);},nmInternal:function(opts){$.extend(true,_internal,opts);},nmAnims:function(opts){$.extend(true,_animations,opts);},nmFilters:function(opts){$.extend(true,_filters,opts);},nmTop:function(){if(_internal.stack.length)return $(_internal.stack[_internal.stack.length-1]).data('nmObj');return undefined;},_debug:function(msg){if(window.console&&window.console.log)window.console.log(msg);},_container:undefined,_init:function(nm){nm.filters=[];$.each(_filters,function(f,obj){if($.isFunction(obj.is)&&obj.is(nm)){nm.filters.push(f);}});nm._callFilters('init');nm.opener .unbind('nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal').bind({'nyroModal.nyroModal':function(e){nm.open();return false;},'nmClose.nyroModal':function(){nm.close();return false;},'nmResize.nyroModal':function(){nm.resize();return false;}});},_scrollWidth:(function(){var scrollbarWidth;if($.browser.msie){var $textarea1=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b),$textarea2=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b);scrollbarWidth=$textarea1.width()-$textarea2.width();$textarea1.add($textarea2).remove();}else{var $div=$('
').css({width:100,height:100,overflow:'auto',position:'absolute',top:-1000,left:-1000}).prependTo($b).append('
').find('div').css({width:'100%',height:200});scrollbarWidth=100-$div.width();$div.parent().remove();}return scrollbarWidth;})(),_selNyroModal:function(obj){return $(obj).data('nmObj')?true:false;},_selNyroModalOpen:function(obj){var me=$(obj);return me.data('nmObj')?me.data('nmObj')._open:false;},_keyHandler:function(e){var nmTop=$.nmTop();if(nmTop&&nmTop.useKeyHandler){return nmTop.keyHandle(e);}},_pushStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});this.stack.push(obj.get(0));},_removeStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});},_resize:function(){var opens=$(':nmOpen').each(function(){$(this).data('nmObj')._unreposition();});this._calculateFullSize();opens.trigger('nmResize');},_calculateFullSize:function(){this.fullSize={w:$d.width(),h:$d.height(),wW:$w.width(),wH:$w.height()};this.fullSize.viewW=Math.min(this.fullSize.w,this.fullSize.wW);this.fullSize.viewH=Math.min(this.fullSize.h,this.fullSize.wH);},_getCurCSS:function(elm,name){var ret=parseInt($.curCSS(elm,name,true));return isNaN(ret)?0:ret;},_getOuter:function(elm){elm=elm.get(0);var ret={h:{margin:this._getCurCSS(elm,'marginTop')+this._getCurCSS(elm,'marginBottom'),border:this._getCurCSS(elm,'borderTopWidth')+this._getCurCSS(elm,'borderBottomWidth'),padding:this._getCurCSS(elm,'paddingTop')+this._getCurCSS(elm,'paddingBottom')},w:{margin:this._getCurCSS(elm,'marginLeft')+this._getCurCSS(elm,'marginRight'),border:this._getCurCSS(elm,'borderLeftWidth')+this._getCurCSS(elm,'borderRightWidth'),padding:this._getCurCSS(elm,'paddingLeft')+this._getCurCSS(elm,'paddingRight')}};ret.h.outer=ret.h.margin+ret.h.border;ret.w.outer=ret.w.margin+ret.w.border;ret.h.inner=ret.h.padding+ret.h.border;ret.w.inner=ret.w.padding+ret.w.border;ret.h.total=ret.h.outer+ret.h.padding;ret.w.total=ret.w.outer+ret.w.padding;return ret;},_getSpaceReposition:function(){var outer=this._getOuter($b),ie7=$.browser.msie&&$.browser.version<8&&!(screen.height<=$w.height()+23);return{top:$w.scrollTop()-(!ie7?outer.h.border/2:0),left:$w.scrollLeft()-(!ie7?outer.w.border/2:0)};},_getHash:function(url){if(typeof url=='string'){var hashPos=url.indexOf('#');if(hashPos>-1)return url.substring(hashPos);}return '';},_extractUrl:function(url){var ret={url:undefined,sel:undefined};if(url){var hash=this._getHash(url),hashLoc=this._getHash(window.location.href),curLoc=window.location.href.substring(0,window.location.href.length-hashLoc.length),req=url.substring(0,url.length-hash.length);ret.sel=hash;if(req!=curLoc&&req!=baseHref)ret.url=req;}return ret;}},_animations={basic:{showBg:function(nm,clb){nm.elts.bg.css({opacity:0.7}).show();clb();},hideBg:function(nm,clb){nm.elts.bg.hide();clb();},showLoad:function(nm,clb){nm.elts.load.show();clb();},hideLoad:function(nm,clb){nm.elts.load.hide();clb();},showCont:function(nm,clb){nm.elts.cont.show();clb();},hideCont:function(nm,clb){nm.elts.cont.hide();clb();},showTrans:function(nm,clb){nm.elts.cont.hide();nm.elts.load.show();clb();},hideTrans:function(nm,clb){nm.elts.cont.show();nm.elts.load.hide();clb();},resize:function(nm,clb){nm.elts.cont.css({width:nm.sizes.w,height:nm.sizes.h,top:(nm.getInternal().fullSize.viewH-nm.sizes.h-nm.sizes.hMargin)/2,left:(nm.getInternal().fullSize.viewW-nm.sizes.w-nm.sizes.wMargin)/2});clb();}}},_filters={basic:{is:function(nm){return true;},init:function(nm){if(nm.opener.attr('rev')=='modal')nm.modal=true;if(nm.modal)nm.closeOnEscape=nm.closeOnClick=nm.showCloseButton=false;if(nm.closeOnEscape)nm.useKeyHandler=true;},initElts:function(nm){nm.elts.bg.addClass('nyroModalBg');if(nm.closeOnClick)nm.elts.bg.unbind('click.nyroModal').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});nm.elts.cont.addClass('nyroModalCont');nm.elts.hidden.addClass('nyroModalCont nyroModalHidden');nm.elts.load.addClass('nyroModalCont nyroModalLoad');},error:function(nm){nm.elts.hidden.addClass('nyroModalError');nm.elts.cont.addClass('nyroModalError');nm._setCont(nm.errorMsg);},beforeShowCont:function(nm){nm.elts.cont .find('.nyroModal').nyroModal(nm.getForNewLinks(),true).end().find('.nyroModalClose').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});},keyHandle:function(nm){if(nm.keyEvent.keyCode==27&&nm.closeOnEscape){nm.keyEvent.preventDefault();nm.close();}}},custom:{is:function(nm){return true;}}};$.fn.extend({nm:_internal.nyroModal,nyroModal:_internal.nyroModal,nmInit:_internal.nmInit,nmCall:_internal.nmCall});$.extend({nmManual:_internal.nmManual,nmObj:_internal.nmObj,nmInternal:_internal.nmInternal,nmAnims:_internal.nmAnims,nmFilters:_internal.nmFilters,nmTop:_internal.nmTop});$.expr[':'].nyroModal=$.expr[':'].nm=_internal._selNyroModal;$.expr[':'].nmOpen=_internal._selNyroModalOpen;});(function($,sr){var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)func.apply(obj,args);timeout=null;};if(timeout)clearTimeout(timeout);else if(execAsap)func.apply(obj,args);timeout=setTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn){return fn?this.bind('resize',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize');function ucfirst(str){str+='';var f=str.charAt(0).toUpperCase();return f+str.substr(1);}; + jQuery(function($,undefined){var $w=$(window),$d=$(document),$b=$('body'),baseHref=$('base').attr('href'),_nmObj={filters:[],callbacks:{},loadFilter:undefined,modal:false,closeOnEscape:true,closeOnClick:true,useKeyHandler:false,showCloseButton:true,closeButton:'Close',stack:false,header:undefined,footer:undefined,galleryLoop:true,galleryCounts:true,ltr:true,imageRegex:'[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$',selIndicator:'nyroModalSel',swfObjectId:undefined,swf:{allowFullScreen:'true',allowscriptaccess:'always',wmode:'transparent'},store:{},errorMsg:'An error occured',elts:{all:undefined,bg:undefined,load:undefined,cont:undefined,hidden:undefined},sizes:{initW:undefined,initH:undefined,w:undefined,h:undefined,minW:undefined,minH:undefined,wMargin:undefined,hMargin:undefined},anim:{def:undefined,showBg:undefined,hideBg:undefined,showLoad:undefined,hideLoad:undefined,showCont:undefined,hideCont:undefined,showTrans:undefined,hideTrans:undefined,resize:undefined},_open:false,_bgReady:false,_opened:false,_loading:false,_animated:false,_transition:false,_nmOpener:undefined,_nbContentLoading:0,_scripts:'',_scriptsShown:'',saveObj:function(){this.opener.data('nmObj',this);},open:function(){if(this._nmOpener)this._nmOpener._close();this.getInternal()._pushStack(this.opener);this._opened=false;this._bgReady=false;this._open=true;this._initElts();this._load();this._nbContentLoading=0;this._callAnim('showBg',$.proxy(function(){this._bgReady=true;if(this._nmOpener){this._nmOpener._bgReady=false;this._nmOpener._loading=false;this._nmOpener._animated=false;this._nmOpener._opened=false;this._nmOpener._open=false;this._nmOpener.elts.cont=this._nmOpener.elts.hidden=this._nmOpener.elts.load=this._nmOpener.elts.bg=this._nmOpener.elts.all=undefined;this._nmOpener.saveObj();this._nmOpener=undefined;}this._contentLoading();},this));},resize:function(recalc){if(recalc){this.elts.hidden.append(this.elts.cont.children().first().clone());this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();this.elts.hidden.empty();}else{this.sizes.w=this.sizes.initW;this.sizes.h=this.sizes.initH;}this._unreposition();this.size();this._callAnim('resize',$.proxy(function(){this._reposition();},this));},size:function(){var maxHeight=this.getInternal().fullSize.viewH-this.sizes.hMargin,maxWidth=this.getInternal().fullSize.viewW-this.sizes.wMargin;if(this.sizes.minW&&this.sizes.minW>this.sizes.w)this.sizes.w=this.sizes.minW;if(this.sizes.minH&&this.sizes.minH>this.sizes.h)this.sizes.h=this.sizes.minH;if(this.sizes.h>maxHeight||this.sizes.w>maxWidth){this.sizes.h=Math.min(this.sizes.h,maxHeight);this.sizes.w=Math.min(this.sizes.w,maxWidth);}this._callFilters('size');},getForNewLinks:function(){var ret;if(this.stack){ret=$.extend(true,{},this);ret._nmOpener=undefined;ret.elts.all=undefined;}else{ret=$.extend({},this);ret._nmOpener=this;}ret.filters=[];ret.opener=undefined;ret._open=false;return ret;},keyHandle:function(e){this.keyEvent=e;this._callFilters('keyHandle');this.keyEvent=undefined;delete(this.keyEvent);},getInternal:function(){return _internal;},_close:function(){this.getInternal()._removeStack(this.opener);this._opened=false;this._open=false;this._callFilters('close');},close:function(){this._close();this._callFilters('beforeClose');var self=this;this._unreposition();self._callAnim('hideCont',function(){self._callAnim('hideLoad',function(){self._callAnim('hideBg',function(){self._callFilters('afterClose');self.elts.cont.remove();self.elts.hidden.remove();self.elts.load.remove();self.elts.bg.remove();self.elts.all.remove();self.elts.cont=self.elts.hidden=self.elts.load=self.elts.bg=self.elts.all=undefined;});});});},_initElts:function(){if(!this.stack&&this.getInternal().stack.length>1)this.elts=$(_internal.stack[_internal.stack.length-2]).data('nmObj').elts;if(!this.elts.all||this.elts.all.closest('body').length==0)this.elts.all=this.elts.bg=this.elts.cont=this.elts.hidden=this.elts.load=undefined;if(!this.elts.all)this.elts.all=$('
').appendTo(this.getInternal()._container);if(!this.elts.bg)this.elts.bg=$('
').hide().appendTo(this.elts.all);if(!this.elts.cont)this.elts.cont=$('
').hide().appendTo(this.elts.all);if(!this.elts.hidden)this.elts.hidden=$('
').hide().appendTo(this.elts.all);this.elts.hidden.empty();if(!this.elts.load)this.elts.load=$('
').hide().appendTo(this.elts.all);this._callFilters('initElts');},_error:function(){this._callFilters('error');},_setCont:function(html,selector){if(selector){var tmp=[],i=0;html=html .replace(/\r\n/gi,'nyroModalLN').replace(//gi,function(x){tmp[i]=x;return '
';});var cur=$('
'+html+'
').find(selector);if(cur.length){html=cur.html().replace(/
<\/pre>/gi,function(x,y,z){return tmp[y];}).replace(/nyroModalLN/gi,"\r\n");}else{this._error();return;}}this.elts.hidden .append(this._filterScripts(html)).prepend(this.header).append(this.footer).wrapInner('
');this.sizes.initW=this.sizes.w=this.elts.hidden.width();this.sizes.initH=this.sizes.h=this.elts.hidden.height();var outer=this.getInternal()._getOuter(this.elts.cont);this.sizes.hMargin=outer.h.total;this.sizes.wMargin=outer.w.total;this.size();this.loading=false;this._callFilters('filledContent');this._contentLoading();},_filterScripts:function(data){if(typeof data!='string')return data;this._scripts=[];this._scriptsShown=[];var start=0,stStart='',endLn=stEnd.length,pos,pos2,tmp;while((pos=data.indexOf(stStart,start))>-1){pos2=data.indexOf(stEnd)+endLn;tmp=$(data.substring(pos,pos2));if(!tmp.attr('src')||tmp.attr('rel')=='forceLoad'){if(tmp.attr('rev')=='shown')this._scriptsShown.push(tmp.get(0));else this._scripts.push(tmp.get(0));}data=data.substring(0,pos)+data.substr(pos2);start=pos;}return data;},_hasFilter:function(filter){var ret=false;$.each(this.filters,function(i,f){ret=ret||f==filter;});return ret;},_delFilter:function(filter){this.filters=$.map(this.filters,function(v){if(v!=filter)return v;});},_callFilters:function(fct){this.getInternal()._debug(fct);var ret=[],self=this;$.each(this.filters,function(i,f){ret[f]=self._callFilter(f,fct);});if(this.callbacks[fct]&&$.isFunction(this.callbacks[fct]))this.callbacks[fct](this);return ret;},_callFilter:function(f,fct){if(_filters[f]&&_filters[f][fct]&&$.isFunction(_filters[f][fct]))return _filters[f][fct](this);return undefined;},_callAnim:function(fct,clb){this.getInternal()._debug(fct);this._callFilters('before'+ucfirst(fct));if(!this._animated){this._animated=true;if(!$.isFunction(clb))clb=$.noop;var set=this.anim[fct]||this.anim.def||'basic';if(!_animations[set]||!_animations[set][fct]||!$.isFunction(_animations[set][fct]))set='basic';_animations[set][fct](this,$.proxy(function(){this._animated=false;this._callFilters('after'+ucfirst(fct));clb();},this));}},_load:function(){this.getInternal()._debug('_load');if(!this.loading&&this.loadFilter){this.loading=true;this._callFilter(this.loadFilter,'load');}},_contentLoading:function(){if(!this._animated&&this._bgReady){if(!this._transition&&this.elts.cont.html().length>0)this._transition=true;this._nbContentLoading++;if(!this.loading){if(!this._opened){this._opened=true;if(this._transition){var fct=$.proxy(function(){this._writeContent();this._callFilters('beforeShowCont');this._callAnim('hideTrans',$.proxy(function(){this._transition=false;this._callFilters('afterShowCont');this.elts.cont.append(this._scriptsShown);this._reposition();},this));},this);if(this._nbContentLoading==1){this._unreposition();this._callAnim('showTrans',fct);}else{fct();}}else{this._callAnim('hideLoad',$.proxy(function(){this._writeContent();this._callAnim('showCont',$.proxy(function(){this.elts.cont.append(this._scriptsShown);this._reposition();},this));},this));}}}else if(this._nbContentLoading==1){var outer=this.getInternal()._getOuter(this.elts.load);this.elts.load .css({position:'fixed',top:(this.getInternal().fullSize.viewH-this.elts.load.height()-outer.h.margin)/2,left:(this.getInternal().fullSize.viewW-this.elts.load.width()-outer.w.margin)/2});if(this._transition){this._unreposition();this._callAnim('showTrans',$.proxy(function(){this._contentLoading();},this));}else{this._callAnim('showLoad',$.proxy(function(){this._contentLoading();},this));}}}},_writeContent:function(){this.elts.cont .empty().append(this.elts.hidden.contents()).append(this._scripts).append(this.showCloseButton?this.closeButton:'').css({position:'fixed',width:this.sizes.w,height:this.sizes.h,top:(this.getInternal().fullSize.viewH-this.sizes.h-this.sizes.hMargin)/2,left:(this.getInternal().fullSize.viewW-this.sizes.w-this.sizes.wMargin)/2});},_reposition:function(){var elts=this.elts.cont.find('.nmReposition');if(elts.length){var space=this.getInternal()._getSpaceReposition();elts.each(function(){var me=$(this),offset=me.offset();me.css({position:'fixed',top:offset.top-space.top,left:offset.left-space.left});});this.elts.cont.after(elts);}this.elts.cont.css('overflow','auto');this._callFilters('afterReposition');},_unreposition:function(){this.elts.cont.css('overflow','');var elts=this.elts.all.find('.nmReposition');if(elts.length)this.elts.cont.append(elts.removeAttr('style'));this._callFilters('afterUnreposition');}},_internal={firstInit:true,stack:[],fullSize:{w:0,h:0,wW:0,wH:0,viewW:0,viewH:0},nyroModal:function(opts,fullObj){if(_internal.firstInit){_internal._container=$('
').appendTo($b);$w.smartresize($.proxy(_internal._resize,_internal));$d.bind('keydown.nyroModal',$.proxy(_internal._keyHandler,_internal));_internal._calculateFullSize();_internal.firstInit=false;}return this.nmInit(opts,fullObj).each(function(){_internal._init($(this).data('nmObj'));});},nmInit:function(opts,fullObj){return this.each(function(){var me=$(this);if(fullObj)me.data('nmObj',$.extend(true,{opener:me},opts));else me.data('nmObj',me.data('nmObj')?$.extend(true,me.data('nmObj'),opts):$.extend(true,{opener:me},_nmObj,opts));});},nmCall:function(){return this.trigger('nyroModal');},nmManual:function(url,opts){$('',{href:url}).nyroModal(opts).trigger('nyroModal');},nmData:function(data,opts){this.nmManual('#',$.extend({data:data},opts));},nmObj:function(opts){$.extend(true,_nmObj,opts);},nmInternal:function(opts){$.extend(true,_internal,opts);},nmAnims:function(opts){$.extend(true,_animations,opts);},nmFilters:function(opts){$.extend(true,_filters,opts);},nmTop:function(){if(_internal.stack.length)return $(_internal.stack[_internal.stack.length-1]).data('nmObj');return undefined;},_debug:function(msg){if(window.console&&window.console.log)window.console.log(msg);},_container:undefined,_init:function(nm){nm.filters=[];$.each(_filters,function(f,obj){if(obj.is&&$.isFunction(obj.is)&&obj.is(nm)){nm.filters.push(f);}});nm._callFilters('initFilters');nm._callFilters('init');nm.opener .unbind('nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal').bind({'nyroModal.nyroModal':function(e){nm.open();return false;},'nmClose.nyroModal':function(){nm.close();return false;},'nmResize.nyroModal':function(){nm.resize();return false;}});},_scrollWidth:(function(){var scrollbarWidth;if($.browser.msie){var $textarea1=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b),$textarea2=$('').css({position:'absolute',top:-1000,left:-1000}).appendTo($b);scrollbarWidth=$textarea1.width()-$textarea2.width();$textarea1.add($textarea2).remove();}else{var $div=$('
').css({width:100,height:100,overflow:'auto',position:'absolute',top:-1000,left:-1000}).prependTo($b).append('
').find('div').css({width:'100%',height:200});scrollbarWidth=100-$div.width();$div.parent().remove();}return scrollbarWidth;})(),_selNyroModal:function(obj){return $(obj).data('nmObj')?true:false;},_selNyroModalOpen:function(obj){var me=$(obj);return me.data('nmObj')?me.data('nmObj')._open:false;},_keyHandler:function(e){var nmTop=$.nmTop();if(nmTop&&nmTop.useKeyHandler){return nmTop.keyHandle(e);}},_pushStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});this.stack.push(obj.get(0));},_removeStack:function(obj){this.stack=$.map(this.stack,function(elA){if(elA!=obj.get(0))return elA;});},_resize:function(){var opens=$(':nmOpen').each(function(){$(this).data('nmObj')._unreposition();});this._calculateFullSize();opens.trigger('nmResize');},_calculateFullSize:function(){this.fullSize={w:$d.width(),h:$d.height(),wW:$w.width(),wH:$w.height()};this.fullSize.viewW=Math.min(this.fullSize.w,this.fullSize.wW);this.fullSize.viewH=Math.min(this.fullSize.h,this.fullSize.wH);},_getCurCSS:function(elm,name){var ret=parseInt($.curCSS(elm,name,true));return isNaN(ret)?0:ret;},_getOuter:function(elm){elm=elm.get(0);var ret={h:{margin:this._getCurCSS(elm,'marginTop')+this._getCurCSS(elm,'marginBottom'),border:this._getCurCSS(elm,'borderTopWidth')+this._getCurCSS(elm,'borderBottomWidth'),padding:this._getCurCSS(elm,'paddingTop')+this._getCurCSS(elm,'paddingBottom')},w:{margin:this._getCurCSS(elm,'marginLeft')+this._getCurCSS(elm,'marginRight'),border:this._getCurCSS(elm,'borderLeftWidth')+this._getCurCSS(elm,'borderRightWidth'),padding:this._getCurCSS(elm,'paddingLeft')+this._getCurCSS(elm,'paddingRight')}};ret.h.outer=ret.h.margin+ret.h.border;ret.w.outer=ret.w.margin+ret.w.border;ret.h.inner=ret.h.padding+ret.h.border;ret.w.inner=ret.w.padding+ret.w.border;ret.h.total=ret.h.outer+ret.h.padding;ret.w.total=ret.w.outer+ret.w.padding;return ret;},_getSpaceReposition:function(){var outer=this._getOuter($b),ie7=$.browser.msie&&$.browser.version<8&&!(screen.height<=$w.height()+23);return{top:$w.scrollTop()-(!ie7?outer.h.border/2:0),left:$w.scrollLeft()-(!ie7?outer.w.border/2:0)};},_getHash:function(url){if(typeof url=='string'){var hashPos=url.indexOf('#');if(hashPos>-1)return url.substring(hashPos);}return '';},_extractUrl:function(url){var ret={url:undefined,sel:undefined};if(url){var hash=this._getHash(url),hashLoc=this._getHash(window.location.href),curLoc=window.location.href.substring(0,window.location.href.length-hashLoc.length),req=url.substring(0,url.length-hash.length);ret.sel=hash;if(req!=curLoc&&req!=baseHref)ret.url=req;}return ret;}},_animations={basic:{showBg:function(nm,clb){nm.elts.bg.css({opacity:0.7}).show();clb();},hideBg:function(nm,clb){nm.elts.bg.hide();clb();},showLoad:function(nm,clb){nm.elts.load.show();clb();},hideLoad:function(nm,clb){nm.elts.load.hide();clb();},showCont:function(nm,clb){nm.elts.cont.show();clb();},hideCont:function(nm,clb){nm.elts.cont.hide();clb();},showTrans:function(nm,clb){nm.elts.cont.hide();nm.elts.load.show();clb();},hideTrans:function(nm,clb){nm.elts.cont.show();nm.elts.load.hide();clb();},resize:function(nm,clb){nm.elts.cont.css({width:nm.sizes.w,height:nm.sizes.h,top:(nm.getInternal().fullSize.viewH-nm.sizes.h-nm.sizes.hMargin)/2,left:(nm.getInternal().fullSize.viewW-nm.sizes.w-nm.sizes.wMargin)/2});clb();}}},_filters={basic:{is:function(nm){return true;},init:function(nm){if(nm.opener.attr('rev')=='modal')nm.modal=true;if(nm.modal)nm.closeOnEscape=nm.closeOnClick=nm.showCloseButton=false;if(nm.closeOnEscape)nm.useKeyHandler=true;},initElts:function(nm){nm.elts.bg.addClass('nyroModalBg');if(nm.closeOnClick)nm.elts.bg.unbind('click.nyroModal').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});nm.elts.cont.addClass('nyroModalCont');nm.elts.hidden.addClass('nyroModalCont nyroModalHidden');nm.elts.load.addClass('nyroModalCont nyroModalLoad');},error:function(nm){nm.elts.hidden.addClass('nyroModalError');nm.elts.cont.addClass('nyroModalError');nm._setCont(nm.errorMsg);},beforeShowCont:function(nm){nm.elts.cont .find('.nyroModal').nyroModal(nm.getForNewLinks(),true).end().find('.nyroModalClose').bind('click.nyroModal',function(e){e.preventDefault();nm.close();});},keyHandle:function(nm){if(nm.keyEvent.keyCode==27&&nm.closeOnEscape){nm.keyEvent.preventDefault();nm.close();}}},custom:{is:function(nm){return true;}}};$.fn.extend({nm:_internal.nyroModal,nyroModal:_internal.nyroModal,nmInit:_internal.nmInit,nmCall:_internal.nmCall});$.extend({nmManual:_internal.nmManual,nmData:_internal.nmData,nmObj:_internal.nmObj,nmInternal:_internal.nmInternal,nmAnims:_internal.nmAnims,nmFilters:_internal.nmFilters,nmTop:_internal.nmTop});$.expr[':'].nyroModal=$.expr[':'].nm=_internal._selNyroModal;$.expr[':'].nmOpen=_internal._selNyroModalOpen;});(function($,sr){var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)func.apply(obj,args);timeout=null;};if(timeout)clearTimeout(timeout);else if(execAsap)func.apply(obj,args);timeout=setTimeout(delayed,threshold||100);};};jQuery.fn[sr]=function(fn){return fn?this.bind('resize',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize');function ucfirst(str){str+='';var f=str.charAt(0).toUpperCase();return f+str.substr(1);}; jQuery(function($,undefined){$.nmAnims({fade:{showBg:function(nm,clb){nm.elts.bg.fadeTo(250,0.7,clb);},hideBg:function(nm,clb){nm.elts.bg.fadeOut(clb);},showLoad:function(nm,clb){nm.elts.load.fadeIn(clb);},hideLoad:function(nm,clb){nm.elts.load.fadeOut(clb);},showCont:function(nm,clb){nm.elts.cont.fadeIn(clb);},hideCont:function(nm,clb){nm.elts.cont.css('overflow','hidden').fadeOut(clb);},showTrans:function(nm,clb){nm.elts.load .css({position:nm.elts.cont.css('position'),top:nm.elts.cont.css('top'),left:nm.elts.cont.css('left'),width:nm.elts.cont.css('width'),height:nm.elts.cont.css('height'),marginTop:nm.elts.cont.css('marginTop'),marginLeft:nm.elts.cont.css('marginLeft')}).fadeIn(function(){nm.elts.cont.hide();clb();});},hideTrans:function(nm,clb){nm.elts.cont.css('visibility','hidden').show();nm.elts.load .css('position',nm.elts.cont.css('position')).animate({top:nm.elts.cont.css('top'),left:nm.elts.cont.css('left'),width:nm.elts.cont.css('width'),height:nm.elts.cont.css('height'),marginTop:nm.elts.cont.css('marginTop'),marginLeft:nm.elts.cont.css('marginLeft')},function(){nm.elts.cont.css('visibility','');nm.elts.load.fadeOut(clb);});},resize:function(nm,clb){nm.elts.cont.animate({width:nm.sizes.w,height:nm.sizes.h,top:(nm.getInternal().fullSize.viewH-nm.sizes.h-nm.sizes.hMargin)/2,left:(nm.getInternal().fullSize.viewW-nm.sizes.w-nm.sizes.wMargin)/2},clb);}}});$.nmObj({anim:{def:'fade'}});});; jQuery(function($,undefined){$.nmFilters({title:{is:function(nm){return nm.opener.is('[title]');},beforeShowCont:function(nm){var offset=nm.elts.cont.offset();nm.store.title=$('

',{text:nm.opener.attr('title')}).addClass('nyroModalTitle nmReposition');nm.elts.cont.prepend(nm.store.title);},close:function(nm){if(nm.store.title){nm.store.title.remove();nm.store.title=undefined;delete(nm.store.title);}}}});});; jQuery(function($,undefined){$.nmFilters({gallery:{is:function(nm){var ret=nm.opener.is('[rel]:not([rel=external], [rel=nofollow])');if(ret&&nm.galleryCounts&&!nm._hasFilter('title'))nm.filters.push('title');return ret;},init:function(nm){nm.useKeyHandler=true;},keyHandle:function(nm){if(!nm._animated&&nm._opened){if(nm.keyEvent.keyCode==39||nm.keyEvent.keyCode==40){nm.keyEvent.preventDefault();nm._callFilters('galleryNext');}else if(nm.keyEvent.keyCode==37||nm.keyEvent.keyCode==38){nm.keyEvent.preventDefault();nm._callFilters('galleryPrev');}}},initElts:function(nm){var rel=nm.opener.attr('rel'),indexSpace=rel.indexOf(' ');nm.store.gallery=indexSpace>0?rel.substr(0,indexSpace):rel;nm.store.galleryLinks=$('[href][rel="'+nm.store.gallery+'"], [href][rel^="'+nm.store.gallery+' "]');nm.store.galleryIndex=nm.store.galleryLinks.index(nm.opener);},beforeShowCont:function(nm){if(nm.galleryCounts&&nm.store.title&&nm.store.galleryLinks.length>1){var curTitle=nm.store.title.html();nm.store.title.html((curTitle.length?curTitle+' - ':'')+(nm.store.galleryIndex+1)+'/'+nm.store.galleryLinks.length);}},filledContent:function(nm){var link=this._getGalleryLink(nm,-1),append=nm.elts.hidden.find(' > div');if(link){$('',{text:'previous',href:'#'}).addClass('nyroModalPrev').bind('click',function(e){e.preventDefault();nm._callFilters('galleryPrev');}).appendTo(append);}link=this._getGalleryLink(nm,1);if(link){$('',{text:'next',href:'#'}).addClass('nyroModalNext').bind('click',function(e){e.preventDefault();nm._callFilters('galleryNext');}).appendTo(append);}},close:function(nm){nm.store.gallery=undefined;nm.store.galleryLinks=undefined;nm.store.galleryIndex=undefined;delete(nm.store.gallery);delete(nm.store.galleryLinks);delete(nm.store.galleryIndex);if(nm.elts.cont)nm.elts.cont.find('.nyroModalNext, .nyroModalPrev').remove();},galleryNext:function(nm){this._getGalleryLink(nm,1).nyroModal(nm.getForNewLinks(),true).click();},galleryPrev:function(nm){this._getGalleryLink(nm,-1).nyroModal(nm.getForNewLinks(),true).click();},_getGalleryLink:function(nm,dir){if(nm.store.gallery){if(!nm.ltr)dir *=-1;var index=nm.store.galleryIndex+dir;if(index>=0&&index').load(function(){nm.elts.cont.addClass('nyroModalImg');nm.elts.hidden.addClass('nyroModalImg');nm._setCont(this);}).error(function(){nm._error();}).attr('src',url);},size:function(nm){if(nm.sizes.w!=nm.sizes.initW||nm.sizes.h!=nm.sizes.initH){var ratio=Math.min(nm.sizes.w/nm.sizes.initW,nm.sizes.h/nm.sizes.initH);nm.sizes.w=nm.sizes.initW * ratio;nm.sizes.h=nm.sizes.initH * ratio;}var img=nm.loading?nm.elts.hidden.find('img'):nm.elts.cont.find('img');img.attr({width:nm.sizes.w,height:nm.sizes.h});},close:function(nm){if(nm.elts.cont){nm.elts.cont.removeClass('nyroModalImg');nm.elts.hidden.removeClass('nyroModalImg');}}}});});; - jQuery(function($,undefined){$.nmFilters({swf:{is:function(nm){return nm._hasFilter('link')&&nm.opener.is('[href$=.swf]');},init:function(nm){nm.loadFilter='swf';},load:function(nm){var url=nm.store.link.url,cont='
',tmp='';$.each(nm.swf,function(name,val){cont+='';tmp+=' '+name+'="'+val+'"';});cont+='
';nm._setCont(cont);}}});});; + jQuery(function($,undefined){$.nmFilters({swf:{idCounter:1,is:function(nm){return nm._hasFilter('link')&&nm.opener.is('[href$=".swf"]');},init:function(nm){nm.loadFilter='swf';},load:function(nm){if(!nm.swfObjectId)nm.swfObjectId='nyroModalSwf-'+(this.idCounter++);var url=nm.store.link.url,cont='
',tmp='';$.each(nm.swf,function(name,val){cont+='';tmp+=' '+name+'="'+val+'"';});cont+='
';nm._setCont(cont);}}});});; jQuery(function($,undefined){$.nmFilters({form:{is:function(nm){var ret=nm.opener.is('form');if(ret)nm.store.form=nm.getInternal()._extractUrl(nm.opener.attr('action'));return ret;},init:function(nm){nm.loadFilter='form';nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){e.preventDefault();nm.opener.trigger('nyroModal');});},load:function(nm){var data=nm.opener.serializeArray();if(nm.store.form.sel)data.push({name:nm.selIndicator,value:nm.store.form.sel.substring(1)});$.ajax({url:nm.store.form.url,data:data,type:nm.opener.attr('method')?nm.opener.attr('method'):'get',success:function(data){nm._setCont(data,nm.store.form.sel);},error:function(){nm._error();}});}}});});; - jQuery(function($,undefined){$.nmFilters({formFile:{is:function(nm){var ret=nm.opener.is('form[enctype="multipart/form-data"]');if(ret){nm._delFilter('form');if(!nm.store.form)nm.store.form=nm.getInternal()._extractUrl(nm.opener.attr('action'));}return ret;},init:function(nm){nm.loadFilter='formFile';nm.store.formFileLoading=false;nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.formFileIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.formFileLoading=true;}});},initElts:function(nm){var inputSel;if(nm.store.form.sel)inputSel=$('',{'type':'hidden',name:nm.selIndicator,value:nm.store.form.sel.substring(1)}).appendTo(nm.opener);function rmFormFileElts(){if(inputSel){inputSel.remove();inputSel=undefined;delete(inputSel);}nm.store.formFileIframe.attr('src','about:blank').remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}nm.store.formFileIframe=$('').hide().load(function(){if(nm.store.formFileLoading){nm.store.formFileLoading=false;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){rmFormFileElts();nm._setCont(content.html(),nm.store.form.sel);}else{var nbTry=0;fct=function(){nbTry++;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){nm._setCont(content.html(),nm.store.form.sel);rmFormFileElts();}else if(nbTry<5){setTimeout(fct,25);}else{rmFormFileElts();nm._error();}};setTimeout(fct,25);}}}).error(function(){rmIframe();nm._error();});nm.elts.all.append(nm.store.formFileIframe);nm.opener .attr('target','nyroModalFormFile').submit();},close:function(nm){nm.store.formFileLoading=false;if(nm.store.formFileIframe){nm.store.formFileIframe.remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}}}});});; - jQuery(function($,undefined){$.nmFilters({iframe:{is:function(nm){var target=nm.opener.attr('target')||'',rel=nm.opener.attr('rel')||'',opener=nm.opener.get(0);return!nm._hasFilter('image')&&(target.toLowerCase()=='_blank'||rel.toLowerCase().indexOf('external')>-1||(opener.hostname&&opener.hostname.replace(/:\d*$/,'')!=window.location.hostname.replace(/:\d*$/,'')));},init:function(nm){nm.loadFilter='iframe';},load:function(nm){nm.store.iframe=$('');nm._setCont(nm.store.iframe);},afterShowCont:function(nm){nm.store.iframe.attr('src',nm.opener.attr('href'));},close:function(nm){if(nm.store.iframe){nm.store.iframe.remove();nm.store.iframe=undefined;delete(nm.store.iframe);}}}});});; - jQuery(function($,undefined){$.nmFilters({iframeForm:{is:function(nm){var ret=nm._hasFilter('iframe')&&nm.opener.is('form');if(ret){nm._delFilter('iframe');nm._delFilter('form');}return ret;},init:function(nm){nm.loadFilter='iframeForm';nm.store.iframeFormLoading=false;nm.store.iframeFormOrgTarget=nm.opener.attr('target');nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.iframeFormIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.iframeFormLoading=true;}});},load:function(nm){nm.store.iframeFormIframe=$('');nm._setCont(nm.store.iframeFormIframe);},afterShowCont:function(nm){nm.opener .attr('target','nyroModalIframeForm').submit();},close:function(nm){nm.store.iframeFormOrgTarget?nm.opener.attr('target',nm.store.iframeFormOrgTarget):nm.opener.removeAttr('target');delete(nm.store.formFileLoading);delete(nm.store.iframeFormOrgTarget);if(nm.store.iframeFormIframe){nm.store.iframeFormIframe.remove();nm.store.iframeFormIframe=undefined;delete(nm.store.iframeFormIframe);}}}});});; + jQuery(function($,undefined){$.nmFilters({formFile:{is:function(nm){var ret=nm.opener.is('form[enctype="multipart/form-data"]');if(ret){nm._delFilter('form');if(!nm.store.form)nm.store.form=nm.getInternal()._extractUrl(nm.opener.attr('action'));}return ret;},init:function(nm){nm.loadFilter='formFile';nm.store.formFileLoading=false;nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.formFileIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.formFileLoading=true;}});},initElts:function(nm){var inputSel;if(nm.store.form.sel)inputSel=$('',{'type':'hidden',name:nm.selIndicator,value:nm.store.form.sel.substring(1)}).appendTo(nm.opener);function rmFormFileElts(){if(inputSel){inputSel.remove();inputSel=undefined;delete(inputSel);}nm.store.formFileIframe.attr('src','about:blank').remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}nm.store.formFileIframe=$('').hide().load(function(){if(nm.store.formFileLoading){nm.store.formFileLoading=false;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){rmFormFileElts();nm._setCont(content.html(),nm.store.form.sel);}else{var nbTry=0;fct=function(){nbTry++;var content=nm.store.formFileIframe .unbind('load error').contents().find('body').not('script[src]');if(content&&content.html()&&content.html().length){nm._setCont(content.html(),nm.store.form.sel);rmFormFileElts();}else if(nbTry<5){setTimeout(fct,25);}else{rmFormFileElts();nm._error();}};setTimeout(fct,25);}}}).error(function(){rmFormFileElts();nm._error();});nm.elts.all.append(nm.store.formFileIframe);nm.opener .attr('target','nyroModalFormFile').submit();},close:function(nm){nm.store.formFileLoading=false;if(nm.store.formFileIframe){nm.store.formFileIframe.remove();nm.store.formFileIframe=undefined;delete(nm.store.formFileIframe);}}}});});; + jQuery(function($,undefined){$.nmFilters({iframe:{is:function(nm){var target=nm.opener.attr('target')||'',rel=nm.opener.attr('rel')||'',opener=nm.opener.get(0);return!nm._hasFilter('image')&&(target.toLowerCase()=='_blank'||rel.toLowerCase().indexOf('external')>-1||(opener.hostname&&opener.hostname.replace(/:\d*$/,'')!=window.location.hostname.replace(/:\d*$/,'')));},init:function(nm){nm.loadFilter='iframe';},load:function(nm){nm.store.iframe=$('');nm._setCont(nm.store.iframe);},afterShowCont:function(nm){nm.store.iframe.attr('src',nm.opener.attr('href'));},close:function(nm){if(nm.store.iframe){nm.store.iframe.remove();nm.store.iframe=undefined;delete(nm.store.iframe);}}}});});; + jQuery(function($,undefined){$.nmFilters({iframeForm:{is:function(nm){var ret=nm._hasFilter('iframe')&&nm.opener.is('form');if(ret){nm._delFilter('iframe');nm._delFilter('form');}return ret;},init:function(nm){nm.loadFilter='iframeForm';nm.store.iframeFormLoading=false;nm.store.iframeFormOrgTarget=nm.opener.attr('target');nm.opener.unbind('submit.nyroModal').bind('submit.nyroModal',function(e){if(!nm.store.iframeFormIframe){e.preventDefault();nm.opener.trigger('nyroModal');}else{nm.store.iframeFormLoading=true;}});},load:function(nm){nm.store.iframeFormIframe=$('');nm._setCont(nm.store.iframeFormIframe);},afterShowCont:function(nm){nm.opener .attr('target','nyroModalIframeForm').submit();},close:function(nm){nm.store.iframeFormOrgTarget?nm.opener.attr('target',nm.store.iframeFormOrgTarget):nm.opener.removeAttr('target');delete(nm.store.formFileLoading);delete(nm.store.iframeFormOrgTarget);if(nm.store.iframeFormIframe){nm.store.iframeFormIframe.remove();nm.store.iframeFormIframe=undefined;delete(nm.store.iframeFormIframe);}}}});});; jQuery(function($,undefined){$.nmFilters({embedly:{is:function(nm){var embedlyReg= /http:\/\/(.*youtube\.com\/watch.*|.*\.youtube\.com\/v\/.*|youtu\.be\/.*|.*\.youtube\.com\/user\/.*|.*\.youtube\.com\/.*#.*\/.*|m\.youtube\.com\/watch.*|m\.youtube\.com\/index.*|.*\.youtube\.com\/profile.*|.*justin\.tv\/.*|.*justin\.tv\/.*\/b\/.*|.*justin\.tv\/.*\/w\/.*|www\.ustream\.tv\/recorded\/.*|www\.ustream\.tv\/channel\/.*|www\.ustream\.tv\/.*|qik\.com\/video\/.*|qik\.com\/.*|qik\.ly\/.*|.*revision3\.com\/.*|.*\.dailymotion\.com\/video\/.*|.*\.dailymotion\.com\/.*\/video\/.*|www\.collegehumor\.com\/video:.*|.*twitvid\.com\/.*|www\.break\.com\/.*\/.*|vids\.myspace\.com\/index\.cfm\?fuseaction=vids\.individual&videoid.*|www\.myspace\.com\/index\.cfm\?fuseaction=.*&videoid.*|www\.metacafe\.com\/watch\/.*|www\.metacafe\.com\/w\/.*|blip\.tv\/file\/.*|.*\.blip\.tv\/file\/.*|video\.google\.com\/videoplay\?.*|.*revver\.com\/video\/.*|video\.yahoo\.com\/watch\/.*\/.*|video\.yahoo\.com\/network\/.*|.*viddler\.com\/explore\/.*\/videos\/.*|liveleak\.com\/view\?.*|www\.liveleak\.com\/view\?.*|animoto\.com\/play\/.*|dotsub\.com\/view\/.*|www\.overstream\.net\/view\.php\?oid=.*|www\.livestream\.com\/.*|www\.worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|worldstarhiphop\.com\/videos\/video.*\.php\?v=.*|teachertube\.com\/viewVideo\.php.*|www\.teachertube\.com\/viewVideo\.php.*|www1\.teachertube\.com\/viewVideo\.php.*|www2\.teachertube\.com\/viewVideo\.php.*|bambuser\.com\/v\/.*|bambuser\.com\/channel\/.*|bambuser\.com\/channel\/.*\/broadcast\/.*|www\.schooltube\.com\/video\/.*\/.*|bigthink\.com\/ideas\/.*|bigthink\.com\/series\/.*|sendables\.jibjab\.com\/view\/.*|sendables\.jibjab\.com\/originals\/.*|www\.xtranormal\.com\/watch\/.*|dipdive\.com\/media\/.*|dipdive\.com\/member\/.*\/media\/.*|dipdive\.com\/v\/.*|.*\.dipdive\.com\/media\/.*|.*\.dipdive\.com\/v\/.*|.*yfrog\..*\/.*|tweetphoto\.com\/.*|www\.flickr\.com\/photos\/.*|flic\.kr\/.*|twitpic\.com\/.*|www\.twitpic\.com\/.*|twitpic\.com\/photos\/.*|www\.twitpic\.com\/photos\/.*|.*imgur\.com\/.*|.*\.posterous\.com\/.*|post\.ly\/.*|twitgoo\.com\/.*|i.*\.photobucket\.com\/albums\/.*|s.*\.photobucket\.com\/albums\/.*|phodroid\.com\/.*\/.*\/.*|www\.mobypicture\.com\/user\/.*\/view\/.*|moby\.to\/.*|xkcd\.com\/.*|www\.xkcd\.com\/.*|imgs\.xkcd\.com\/.*|www\.asofterworld\.com\/index\.php\?id=.*|www\.asofterworld\.com\/.*\.jpg|asofterworld\.com\/.*\.jpg|www\.qwantz\.com\/index\.php\?comic=.*|23hq\.com\/.*\/photo\/.*|www\.23hq\.com\/.*\/photo\/.*|.*dribbble\.com\/shots\/.*|drbl\.in\/.*|.*\.smugmug\.com\/.*|.*\.smugmug\.com\/.*#.*|emberapp\.com\/.*\/images\/.*|emberapp\.com\/.*\/images\/.*\/sizes\/.*|emberapp\.com\/.*\/collections\/.*\/.*|emberapp\.com\/.*\/categories\/.*\/.*\/.*|embr\.it\/.*|picasaweb\.google\.com.*\/.*\/.*#.*|picasaweb\.google\.com.*\/lh\/photo\/.*|picasaweb\.google\.com.*\/.*\/.*|dailybooth\.com\/.*\/.*|brizzly\.com\/pic\/.*|pics\.brizzly\.com\/.*\.jpg|img\.ly\/.*|www\.tinypic\.com\/view\.php.*|tinypic\.com\/view\.php.*|www\.tinypic\.com\/player\.php.*|tinypic\.com\/player\.php.*|www\.tinypic\.com\/r\/.*\/.*|tinypic\.com\/r\/.*\/.*|.*\.tinypic\.com\/.*\.jpg|.*\.tinypic\.com\/.*\.png|meadd\.com\/.*\/.*|meadd\.com\/.*|.*\.deviantart\.com\/art\/.*|.*\.deviantart\.com\/gallery\/.*|.*\.deviantart\.com\/#\/.*|fav\.me\/.*|.*\.deviantart\.com|.*\.deviantart\.com\/gallery|.*\.deviantart\.com\/.*\/.*\.jpg|.*\.deviantart\.com\/.*\/.*\.gif|.*\.deviantart\.net\/.*\/.*\.jpg|.*\.deviantart\.net\/.*\/.*\.gif|plixi\.com\/p\/.*|plixi\.com\/profile\/home\/.*|plixi\.com\/.*|www\.fotopedia\.com\/.*\/.*|fotopedia\.com\/.*\/.*|photozou\.jp\/photo\/show\/.*\/.*|photozou\.jp\/photo\/photo_only\/.*\/.*|instagr\.am\/p\/.*|skitch\.com\/.*\/.*\/.*|img\.skitch\.com\/.*|https:\/\/skitch\.com\/.*\/.*\/.*|https:\/\/img\.skitch\.com\/.*|share\.ovi\.com\/media\/.*\/.*|www\.questionablecontent\.net\/|questionablecontent\.net\/|www\.questionablecontent\.net\/view\.php.*|questionablecontent\.net\/view\.php.*|questionablecontent\.net\/comics\/.*\.png|www\.questionablecontent\.net\/comics\/.*\.png|picplz\.com\/user\/.*\/pic\/.*\/|twitrpix\.com\/.*|.*\.twitrpix\.com\/.*|www\.someecards\.com\/.*\/.*|someecards\.com\/.*\/.*|some\.ly\/.*|www\.some\.ly\/.*|pikchur\.com\/.*|achewood\.com\/.*|www\.achewood\.com\/.*|achewood\.com\/index\.php.*|www\.achewood\.com\/index\.php.*|www\.whitehouse\.gov\/photos-and-video\/video\/.*|www\.whitehouse\.gov\/video\/.*|wh\.gov\/photos-and-video\/video\/.*|wh\.gov\/video\/.*|www\.hulu\.com\/watch.*|www\.hulu\.com\/w\/.*|hulu\.com\/watch.*|hulu\.com\/w\/.*|.*crackle\.com\/c\/.*|www\.fancast\.com\/.*\/videos|www\.funnyordie\.com\/videos\/.*|www\.funnyordie\.com\/m\/.*|funnyordie\.com\/videos\/.*|funnyordie\.com\/m\/.*|www\.vimeo\.com\/groups\/.*\/videos\/.*|www\.vimeo\.com\/.*|vimeo\.com\/m\/#\/featured\/.*|vimeo\.com\/groups\/.*\/videos\/.*|vimeo\.com\/.*|vimeo\.com\/m\/#\/featured\/.*|www\.ted\.com\/talks\/.*\.html.*|www\.ted\.com\/talks\/lang\/.*\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/.*\.html.*|www\.ted\.com\/index\.php\/talks\/lang\/.*\/.*\.html.*|.*nfb\.ca\/film\/.*|www\.thedailyshow\.com\/watch\/.*|www\.thedailyshow\.com\/full-episodes\/.*|www\.thedailyshow\.com\/collection\/.*\/.*\/.*|movies\.yahoo\.com\/movie\/.*\/video\/.*|movies\.yahoo\.com\/movie\/.*\/trailer|movies\.yahoo\.com\/movie\/.*\/video|www\.colbertnation\.com\/the-colbert-report-collections\/.*|www\.colbertnation\.com\/full-episodes\/.*|www\.colbertnation\.com\/the-colbert-report-videos\/.*|www\.comedycentral\.com\/videos\/index\.jhtml\?.*|www\.theonion\.com\/video\/.*|theonion\.com\/video\/.*|wordpress\.tv\/.*\/.*\/.*\/.*\/|www\.traileraddict\.com\/trailer\/.*|www\.traileraddict\.com\/clip\/.*|www\.traileraddict\.com\/poster\/.*|www\.escapistmagazine\.com\/videos\/.*|www\.trailerspy\.com\/trailer\/.*\/.*|www\.trailerspy\.com\/trailer\/.*|www\.trailerspy\.com\/view_video\.php.*|www\.atom\.com\/.*\/.*\/|fora\.tv\/.*\/.*\/.*\/.*|www\.spike\.com\/video\/.*|www\.gametrailers\.com\/video\/.*|gametrailers\.com\/video\/.*|www\.koldcast\.tv\/video\/.*|www\.koldcast\.tv\/#video:.*|techcrunch\.tv\/watch.*|techcrunch\.tv\/.*\/watch.*|mixergy\.com\/.*|video\.pbs\.org\/video\/.*|www\.zapiks\.com\/.*|tv\.digg\.com\/diggnation\/.*|tv\.digg\.com\/diggreel\/.*|tv\.digg\.com\/diggdialogg\/.*|www\.trutv\.com\/video\/.*|www\.nzonscreen\.com\/title\/.*|nzonscreen\.com\/title\/.*|app\.wistia\.com\/embed\/medias\/.*|https:\/\/app\.wistia\.com\/embed\/medias\/.*|www\.godtube\.com\/featured\/video\/.*|godtube\.com\/featured\/video\/.*|www\.godtube\.com\/watch\/.*|godtube\.com\/watch\/.*|www\.tangle\.com\/view_video.*|mediamatters\.org\/mmtv\/.*|www\.clikthrough\.com\/theater\/video\/.*|soundcloud\.com\/.*|soundcloud\.com\/.*\/.*|soundcloud\.com\/.*\/sets\/.*|soundcloud\.com\/groups\/.*|snd\.sc\/.*|www\.last\.fm\/music\/.*|www\.last\.fm\/music\/+videos\/.*|www\.last\.fm\/music\/+images\/.*|www\.last\.fm\/music\/.*\/_\/.*|www\.last\.fm\/music\/.*\/.*|www\.mixcloud\.com\/.*\/.*\/|www\.radionomy\.com\/.*\/radio\/.*|radionomy\.com\/.*\/radio\/.*|www\.entertonement\.com\/clips\/.*|www\.rdio\.com\/#\/artist\/.*\/album\/.*|www\.rdio\.com\/artist\/.*\/album\/.*|www\.zero-inch\.com\/.*|.*\.bandcamp\.com\/|.*\.bandcamp\.com\/track\/.*|.*\.bandcamp\.com\/album\/.*|freemusicarchive\.org\/music\/.*|www\.freemusicarchive\.org\/music\/.*|freemusicarchive\.org\/curator\/.*|www\.freemusicarchive\.org\/curator\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/.*\/.*\/.*\/.*\/.*\/.*\/.*|www\.npr\.org\/templates\/story\/story\.php.*|huffduffer\.com\/.*\/.*|www\.audioboo\.fm\/boos\/.*|audioboo\.fm\/boos\/.*|boo\.fm\/b.*|www\.xiami\.com\/song\/.*|xiami\.com\/song\/.*|espn\.go\.com\/video\/clip.*|espn\.go\.com\/.*\/story.*|abcnews\.com\/.*\/video\/.*|abcnews\.com\/video\/playerIndex.*|washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.washingtonpost\.com\/wp-dyn\/.*\/video\/.*\/.*\/.*\/.*|www\.boston\.com\/video.*|boston\.com\/video.*|www\.facebook\.com\/photo\.php.*|www\.facebook\.com\/video\/video\.php.*|www\.facebook\.com\/v\/.*|cnbc\.com\/id\/.*\?.*video.*|www\.cnbc\.com\/id\/.*\?.*video.*|cnbc\.com\/id\/.*\/play\/1\/video\/.*|www\.cnbc\.com\/id\/.*\/play\/1\/video\/.*|cbsnews\.com\/video\/watch\/.*|www\.google\.com\/buzz\/.*\/.*\/.*|www\.google\.com\/buzz\/.*|www\.google\.com\/profiles\/.*|google\.com\/buzz\/.*\/.*\/.*|google\.com\/buzz\/.*|google\.com\/profiles\/.*|www\.cnn\.com\/video\/.*|edition\.cnn\.com\/video\/.*|money\.cnn\.com\/video\/.*|today\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/vp\/.*|www\.msnbc\.msn\.com\/id\/.*\/ns\/.*|today\.msnbc\.msn\.com\/id\/.*\/ns\/.*|multimedia\.foxsports\.com\/m\/video\/.*\/.*|msn\.foxsports\.com\/video.*|www\.globalpost\.com\/video\/.*|www\.globalpost\.com\/dispatch\/.*|.*amazon\..*\/gp\/product\/.*|.*amazon\..*\/.*\/dp\/.*|.*amazon\..*\/dp\/.*|.*amazon\..*\/o\/ASIN\/.*|.*amazon\..*\/gp\/offer-listing\/.*|.*amazon\..*\/.*\/ASIN\/.*|.*amazon\..*\/gp\/product\/images\/.*|www\.amzn\.com\/.*|amzn\.com\/.*|www\.shopstyle\.com\/browse.*|www\.shopstyle\.com\/action\/apiVisitRetailer.*|www\.shopstyle\.com\/action\/viewLook.*|gist\.github\.com\/.*|twitter\.com\/.*\/status\/.*|twitter\.com\/.*\/statuses\/.*|mobile\.twitter\.com\/.*\/status\/.*|mobile\.twitter\.com\/.*\/statuses\/.*|www\.crunchbase\.com\/.*\/.*|crunchbase\.com\/.*\/.*|www\.slideshare\.net\/.*\/.*|www\.slideshare\.net\/mobile\/.*\/.*|.*\.scribd\.com\/doc\/.*|screenr\.com\/.*|polldaddy\.com\/community\/poll\/.*|polldaddy\.com\/poll\/.*|answers\.polldaddy\.com\/poll\/.*|www\.5min\.com\/Video\/.*|www\.howcast\.com\/videos\/.*|www\.screencast\.com\/.*\/media\/.*|screencast\.com\/.*\/media\/.*|www\.screencast\.com\/t\/.*|screencast\.com\/t\/.*|issuu\.com\/.*\/docs\/.*|www\.kickstarter\.com\/projects\/.*\/.*|www\.scrapblog\.com\/viewer\/viewer\.aspx.*|ping\.fm\/p\/.*|chart\.ly\/.*|maps\.google\.com\/maps\?.*|maps\.google\.com\/\?.*|maps\.google\.com\/maps\/ms\?.*|.*\.craigslist\.org\/.*\/.*|my\.opera\.com\/.*\/albums\/show\.dml\?id=.*|my\.opera\.com\/.*\/albums\/showpic\.dml\?album=.*&picture=.*|tumblr\.com\/.*|.*\.tumblr\.com\/post\/.*|www\.polleverywhere\.com\/polls\/.*|www\.polleverywhere\.com\/multiple_choice_polls\/.*|www\.polleverywhere\.com\/free_text_polls\/.*|www\.quantcast\.com\/wd:.*|www\.quantcast\.com\/.*|siteanalytics\.compete\.com\/.*|statsheet\.com\/statplot\/charts\/.*\/.*\/.*\/.*|statsheet\.com\/statplot\/charts\/e\/.*|statsheet\.com\/.*\/teams\/.*\/.*|statsheet\.com\/tools\/chartlets\?chart=.*|.*\.status\.net\/notice\/.*|identi\.ca\/notice\/.*|brainbird\.net\/notice\/.*|shitmydadsays\.com\/notice\/.*|www\.studivz\.net\/Profile\/.*|www\.studivz\.net\/l\/.*|www\.studivz\.net\/Groups\/Overview\/.*|www\.studivz\.net\/Gadgets\/Info\/.*|www\.studivz\.net\/Gadgets\/Install\/.*|www\.studivz\.net\/.*|www\.meinvz\.net\/Profile\/.*|www\.meinvz\.net\/l\/.*|www\.meinvz\.net\/Groups\/Overview\/.*|www\.meinvz\.net\/Gadgets\/Info\/.*|www\.meinvz\.net\/Gadgets\/Install\/.*|www\.meinvz\.net\/.*|www\.schuelervz\.net\/Profile\/.*|www\.schuelervz\.net\/l\/.*|www\.schuelervz\.net\/Groups\/Overview\/.*|www\.schuelervz\.net\/Gadgets\/Info\/.*|www\.schuelervz\.net\/Gadgets\/Install\/.*|www\.schuelervz\.net\/.*|myloc\.me\/.*|pastebin\.com\/.*|pastie\.org\/.*|www\.pastie\.org\/.*|redux\.com\/stream\/item\/.*\/.*|redux\.com\/f\/.*\/.*|www\.redux\.com\/stream\/item\/.*\/.*|www\.redux\.com\/f\/.*\/.*|cl\.ly\/.*|cl\.ly\/.*\/content|speakerdeck\.com\/u\/.*\/p\/.*|www\.kiva\.org\/lend\/.*|www\.timetoast\.com\/timelines\/.*|storify\.com\/.*\/.*|.*meetup\.com\/.*|meetu\.ps\/.*|www\.dailymile\.com\/people\/.*\/entries\/.*|.*\.kinomap\.com\/.*|www\.metacdn\.com\/api\/users\/.*\/content\/.*|www\.metacdn\.com\/api\/users\/.*\/media\/.*|prezi\.com\/.*\/.*|.*\.uservoice\.com\/.*\/suggestions\/.*)/i;var ret=nm._hasFilter('link')&&nm.opener.attr('href')&&nm.opener.attr('href').match(embedlyReg)!==null;if(ret)nm._delFilter('iframe');return ret;},init:function(nm){nm.loadFilter='embedly';nm.store.embedly={};},load:function(nm){$.ajax({url:'http://api.embed.ly/1/oembed',dataType:'jsonp',data:'wmode=transparent&url='+nm.opener.attr('href'),success:function(data){if(data.type=='error')nm._error();else if(data.type=='photo'){nm.filters.push('image');$('').load(function(){nm.elts.cont.addClass('nyroModalImg');nm.elts.hidden.addClass('nyroModalImg');nm._setCont(this);}).error(function(){nm._error();}).attr('src',data.url);}else{nm.store.embedly.w=data.width;nm.store.embedly.h=data.height;nm._setCont('
'+data.html+'
');}}});},size:function(nm){if(nm.store.embedly.w&&!nm.sizes.h){nm.sizes.w=nm.store.embedly.w;nm.sizes.h=nm.store.embedly.h;}}}});});; diff -r 0533a05b7113 -r 491513b6e144 web/static/ldt/js/projectscontents.js --- a/web/static/ldt/js/projectscontents.js Wed Mar 09 16:36:20 2011 +0100 +++ b/web/static/ldt/js/projectscontents.js Wed Mar 09 16:48:17 2011 +0100 @@ -1,7 +1,8 @@ + $.fn.realVal = function() { var obj = $(this[0]); if(obj.val) { - if(obj.val() == obj.attr('defaultText')) { + if(obj.val() === obj.attr('defaultText')) { return ''; } else { @@ -66,9 +67,7 @@ 'tip': true } }); - - -}; +} function testAndClose(close_fn) { @@ -76,11 +75,11 @@ // Here we ask LDT if the current work is modified and if the user want to save it. var ldtSwf = $('#ldtInitSwf',$.nmTop().store.iframe.contents()).get(0); // In the ldt_link_create case, the modal page can be the form, or the ldt swf. So we have to test. - if (!force && ldtSwf && ldtSwf.name=="ldtInitSwf" && ldtSwf.isModified()=="true") { + if (!force && ldtSwf && ldtSwf.name==="ldtInitSwf" && ldtSwf.isModified()==="true") { ldtSwf.askSave(); } else { - close_fn.apply(this); + close_fn.apply(this); } }; } @@ -88,8 +87,8 @@ function searchCallback(target, container_selector, url, timeout) { - timeout = typeof(timeout) != 'undefined' ? timeout : 0; - var target = $(target); + timeout = typeof(timeout) !== 'undefined' ? timeout : 0; + target = $(target); // remove all qtip $(".qtip").remove(); @@ -125,11 +124,11 @@ }, 300) ); -}; +} function init_events_contents(base_node, embed_url, content_filter_url) { - + init_events_base(base_node, embed_url); $('.content_link_create').each(function(i){ @@ -149,15 +148,15 @@ nm.store.iframe.width(770); nm.store.iframe.height(500); nm.store.iframe.load(function() { - var form_status = $(this).contents().find("#content_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted' ) { - $.nmTop().close(); - } - }); - } + var form_status = $(this).contents().find("#content_form_status").val(); + if(form_status === 'saved' || form_status === 'deleted' ) { + $.nmTop().close(); + } + }); + } } }); - + $('.contenttitlelink').each(function(i){ $(this).attr("target","_blank"); }); @@ -176,13 +175,14 @@ nm.store.iframe.height(500); nm.store.iframe.load(function() { var form_status = $(this).contents().find("#content_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted') { + if(form_status === 'saved' || form_status === 'deleted') { $.nmTop().close(); } }); } } }); + } function init_events_base_projects(base_node, embed_url, searchprojectfilterurl, publishprojecturl, unpublishprojecturl) { @@ -194,16 +194,16 @@ $('.ldt_link',base_node).nyroModal({ filters: ['iriIframe'], sizes: { - minW: '1022', - minH: '662' + minW: '1025', + minH: '665' }, showCloseButton: true, closeOnEscape:false, closeOnClick:false, callbacks: { afterShowCont: function(nm) { - nm.store.iframe.height(662); - nm.store.iframe.width(1022); + nm.store.iframe.width(1025); + nm.store.iframe.height(665); }, close: function(nm) { // We don't do anything here, we hack the callback directly from the close function. @@ -212,14 +212,15 @@ // Can't do that because searchprojectfilterurl is not defined in init_events_base params searchCallback($('#searchprojectsinput'), "#projectslistcontainer", searchprojectfilterurl, 0); } - }, + } }); + $('.ldt_link',base_node).each(function(i, e) { - nm = $(e).data('nmObj'); - $(e).data('nmObj', $.extend(true, nm, { - close: testAndClose(nm.close) - })); + nm = $(e).data('nmObj'); + $(e).data('nmObj', $.extend(true, nm, { + close: testAndClose(nm.close) + })); }); @@ -243,16 +244,16 @@ var iframe = nm.store.iframe; iframe.load(function(){ var form_status = $(this).contents().find("#project_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted' ) { + if(form_status === 'saved' || form_status === 'deleted' ) { $.nmTop().close(); } var swfobject = $(this).contents().find("#ldtInitSwf"); if (swfobject.length) { - nm['sizes']['initW'] = swfobject.width() + 21; - nm['sizes']['initH'] = swfobject.height() + 31; + nm['sizes']['initW'] = 1025; + nm['sizes']['initH'] = 665; nm.resize(); - nm.store.iframe.height(swfobject.height() + 31); - nm.store.iframe.width(swfobject.width() + 21); + nm.store.iframe.width(1025); + nm.store.iframe.height(665); } }); }, @@ -260,13 +261,13 @@ searchCallback($('#searchprojectsinput'), "#projectslistcontainer", searchprojectfilterurl, 0); } } - }); - $('.ldt_link_create',base_node).each(function(i, e) { - nm = $(e).data('nmObj'); - $(e).data('nmObj', $.extend(true, nm, { - close: testAndClose(nm.close) - })); - }); + }); + $('.ldt_link_create',base_node).each(function(i, e) { + nm = $(e).data('nmObj'); + $(e).data('nmObj', $.extend(true, nm, { + close: testAndClose(nm.close) + })); + }); $('.publishedproject', base_node).click(function(e) { @@ -322,7 +323,7 @@ var iframe = nm.store.iframe; iframe.load(function(){ var form_status = $(this).contents().find("#project_form_status").val(); - if(form_status == 'saved' || form_status == 'deleted') { + if(form_status === 'saved' || form_status === 'deleted') { $.nmTop().close(); } }); @@ -339,17 +340,14 @@ } function init_events_all(base_node, embed_url, searchcontentfilterurl, searchprojectfilterurl, publishprojecturl, unpublishprojecturl) { - init_events_contents(base_node, embed_url, searchcontentfilterurl); - init_events_base_projects(base_node, embed_url, searchprojectfilterurl, publishprojecturl, unpublishprojecturl); + init_events_base_projects(base_node, embed_url, searchprojectfilterurl, publishprojecturl, unpublishprojecturl); } - - function searchFieldInit(input_list_init) { $(".searchfieldinputbase").keydown(function (e) { - if(e.which == 27) { + if(e.which === 27) { $(e.target).blur(); $(e.target).next(".searchajaxloader").hide(); } @@ -357,13 +355,13 @@ $('.searchfieldinput').each(function(i) { var sbox = $(this); - if(sbox.val() != '') { + if(sbox.val() !== '') { sbox.attr('defaultText', sbox.val()); } sbox.focus(function() { box = $(this); - if(box.val() == box.attr('defaultText')) { + if(box.val() === box.attr('defaultText')) { box.val(''); box.toggleClass("searchfieldinput"); } @@ -371,7 +369,7 @@ sbox.blur(function() { var box = $(this); - if(box.val() == '' && box.attr('defaultText')) { + if(box.val() === '' && box.attr('defaultText')) { box.val(box.attr('defaultText')); box.toggleClass("searchfieldinput"); } @@ -396,5 +394,5 @@ $('.searchclear').each(function(i) { $(this).hide(); }); - + }