--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_iframe.html Mon Nov 12 18:33:09 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_iframe.html Mon Nov 12 18:39:55 2012 +0100
@@ -54,22 +54,19 @@
},
widgets: [
{
- {% if external_url %}
- type: "AutoPlayer",
- video: "{{ external_url }}",
- {% else %}
- type: "JwpPlayer",
- streamer: function(_url) {
- var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
- if (_matches) {
- return _matches[0];
- } else {
- return _url;
- }
- },
- live: true,
- provider: "rtmp",
- {% endif %}
+ type: "AutoPlayer",
+ {% if external_url %}
+ video: "{{ external_url }}",
+ {% else %}
+ streamer: function(_url) {
+ var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
+ if (_matches) {
+ return _matches[0];
+ } else {
+ return _url;
+ }
+ },
+ {% endif %}
height: '{{ player_height }}',
autostart: true
} {% if polemic == 'all' or polemic == 'tweet' %},
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_popup.html Mon Nov 12 18:33:09 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_popup.html Mon Nov 12 18:39:55 2012 +0100
@@ -90,7 +90,7 @@
<div id="iframe_div_premode" class="embedPersonnalisation">
<input type="radio" id="mode_1" name="embed_mode" value="mode1" checked onClick="mode1()" > {% trans 'Basic configuration' %} </input><br>
<input type="radio" id="mode_2" name="embed_mode" value="mode2" onClick="mode2()"> {% trans 'Polemic configuration' %} </input><br>
- <input type="radio" id="mode_3" name="embed_mode" value="mode3" onClick="mode3()"> {% trans 'Polemic configuration with sparkline and tagcloud' %} </input><br>
+ <input type="radio" id="mode_3" name="embed_mode" value="mode3" onClick="mode3()"> {% trans 'Polemic configuration with tagcloud, annotationsList and Social widgets' %} </input><br>
<br>
</div>
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Mon Nov 12 18:33:09 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Mon Nov 12 18:39:55 2012 +0100
@@ -34,11 +34,10 @@
},
widgets: [
{
+ type: "AutoPlayer",
{% if external_url %}
- type: "AutoPlayer",
video: "{{ external_url }}",
{% else %}
- type: "JwpPlayer",
streamer: function(_url) {
var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
if (_matches) {
@@ -47,8 +46,6 @@
return _url;
}
},
- live: true,
- provider: "rtmp",
{% endif %}
height: 300,
autostart: true
@@ -90,7 +87,6 @@
},{
type: "CreateAnnotation",
api_endpoint_template: "{{WEB_URL}}{% url api_dispatch_list resource_name='annotations' api_name='1.0' %}",
- api_method: "PUT",
after_send_timeout: 8000,
show_mic_record: {% if show_mic_record %}true{% else %}false{% endif %},
close_after_send: false,
--- a/src/ldt/ldt/ldt_utils/views/workspace.py Mon Nov 12 18:33:09 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/views/workspace.py Mon Nov 12 18:39:55 2012 +0100
@@ -23,7 +23,6 @@
import django.core.urlresolvers
import ldt.auth as ldt_auth
from django.utils.safestring import mark_safe
-import logging
@@ -100,6 +99,7 @@
embed_rendered = dict((typestr,
(lambda s:escape(render_to_string("ldt/ldt_utils/partial/embed_%s.html" % (s), rend_dict, context_instance=RequestContext(request))))(typestr))
for typestr in ('seo_body', 'seo_meta', 'links'))
+
rend_dict['embed_rendered'] = embed_rendered
return render_to_response("ldt/ldt_utils/embed_popup.html", rend_dict, context_instance=RequestContext(request))
@@ -200,6 +200,7 @@
LDT_MEDIA_PREFIX=settings.LDT_MEDIA_PREFIX
LANGUAGE_CODE=settings.LANGUAGE_CODE
ps = ProjectJsonSerializer(project, from_contents=True, from_display=True)
+ annotations = ps.get_annotations(first_cutting=True)
rend_dict = {'json_url':json_url, 'player_id':player_id, 'annotations':annotations, 'ldt_id': ldt_id, 'stream_mode': stream_mode,
'external_url': external_url,
'polemic':False, 'show_mic_record':False, 'annotations_list':False, 'iframe_url':iframe_url, 'WEB_URL':WEB_URL,
Binary file src/ldt/ldt/locale/fr/LC_MESSAGES/django.mo has changed
--- a/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Mon Nov 12 18:33:09 2012 +0100
+++ b/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Mon Nov 12 18:39:55 2012 +0100
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-11-12 14:54+0100\n"
+"POT-Creation-Date: 2012-11-12 16:10+0100\n"
"PO-Revision-Date: 2010-03-09 15:52+0100\n"
"Last-Translator: Yves-Marie Haussonne <ymh.work@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -37,7 +37,7 @@
msgid "all"
msgstr "tous"
-#: .\ldt_utils\forms.py:33 .\ldt_utils\models.py:55
+#: .\ldt_utils\forms.py:33 .\ldt_utils\models.py:56
#: .\ldt_utils\templates\ldt\ldt_utils\content_list.html.py:69
msgid "title"
msgstr "titre"
@@ -98,51 +98,51 @@
msgid "content.duration"
msgstr "Durée"
-#: .\ldt_utils\models.py:44
+#: .\ldt_utils\models.py:45
msgid "media.external_id"
msgstr "id externe"
-#: .\ldt_utils\models.py:45
+#: .\ldt_utils\models.py:46
msgid "media.external_permalink"
msgstr "permalien externe"
-#: .\ldt_utils\models.py:46
+#: .\ldt_utils\models.py:47
msgid "media.external_publication_url"
msgstr "url de publication externe"
-#: .\ldt_utils\models.py:47
+#: .\ldt_utils\models.py:48
msgid "media.external_src_url"
msgstr "url source"
-#: .\ldt_utils\models.py:48
+#: .\ldt_utils\models.py:49
msgid "media.creation_date"
msgstr "Date de création"
-#: .\ldt_utils\models.py:49
+#: .\ldt_utils\models.py:50
msgid "media.media_creation_date"
msgstr "Date de création du média"
-#: .\ldt_utils\models.py:50
+#: .\ldt_utils\models.py:51
msgid "media.update_date"
msgstr "Date de maj"
-#: .\ldt_utils\models.py:51
+#: .\ldt_utils\models.py:52
msgid "media.videopath"
msgstr "videopath"
-#: .\ldt_utils\models.py:52
+#: .\ldt_utils\models.py:53
msgid "media.duration"
msgstr "Durée du contenu (ms)"
-#: .\ldt_utils\models.py:53
+#: .\ldt_utils\models.py:54
msgid "media.creator"
msgstr "Créateur"
-#: .\ldt_utils\models.py:54
+#: .\ldt_utils\models.py:55
msgid "description"
msgstr "description"
-#: .\ldt_utils\models.py:56
+#: .\ldt_utils\models.py:57
msgid "media.src"
msgstr "Sources"
@@ -182,35 +182,35 @@
msgid "content.authors"
msgstr "Auteurs"
-#: .\ldt_utils\models.py:523
+#: .\ldt_utils\models.py:526
msgid "content_stat.content"
msgstr "statistiques d'annotation"
-#: .\ldt_utils\models.py:524
+#: .\ldt_utils\models.py:527
msgid "content_stat.annotations_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:525
+#: .\ldt_utils\models.py:528
msgid "content_stat.polemics_volume"
msgstr "Volume d'annotations"
-#: .\ldt_utils\models.py:526
+#: .\ldt_utils\models.py:529
msgid "content.nb_annotation"
msgstr "nombre d'annotations"
-#: .\ldt_utils\models.py:527
+#: .\ldt_utils\models.py:530
msgid "content.last_annotated"
msgstr "annoté pour la dernière foiss"
-#: .\ldt_utils\models.py:582
+#: .\ldt_utils\models.py:585
msgid "created by"
msgstr "créé par"
-#: .\ldt_utils\models.py:583
+#: .\ldt_utils\models.py:586
msgid "changed by"
msgstr "modifié par"
-#: .\ldt_utils\utils.py:203 .\ldt_utils\utils.py:386
+#: .\ldt_utils\utils.py:204 .\ldt_utils\utils.py:387
msgid "Personal cutting"
msgstr "Découpages personnels"
@@ -408,13 +408,13 @@
msgstr "Toutes les annotations sur le média"
#: .\ldt_utils\templates\front\front_search_results.html.py:6
-#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:101
-#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:113
+#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:100
+#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:112
#: .\ldt_utils\templates\ldt\ldt_utils\ldt_list.html.py:80
#: .\ldt_utils\templates\ldt\ldt_utils\published_projects.html.py:70
#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:56
#: .\ldt_utils\templates\ldt\ldt_utils\workspace_base.html.py:71
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:129
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:131
#: .\templates\ldt\ldt_base.html.py:127
msgid "search"
msgstr "Recherche"
@@ -557,7 +557,7 @@
msgstr "Le fichier média est en cours de traitement. Veuillez patienter."
#: .\ldt_utils\templates\ldt\ldt_utils\create_content.html.py:145
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:101
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:77
#: .\ldt_utils\templates\ldt\ldt_utils\create_ldt.html.py:145
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm.html.py:37
#: .\ldt_utils\templates\ldt\ldt_utils\error_confirm_popup.html.py:53
@@ -574,36 +574,36 @@
msgid "write"
msgstr "Enregistrer"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:57
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:36
msgid "Do you really want to delete this group ?"
msgstr "Voulez-vous quitter ce groupe ?"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:78
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:54
msgid "Update a group"
msgstr "Mettre à jour votre groupe"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:78
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:54
msgid "Create a group"
msgstr "Créer un groupe"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:85
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:61
#: .\user\templates\ldt\user\change_profile.html.py:62
msgid "Name"
msgstr "Nom"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:91
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:67
msgid "Description"
msgstr "Description"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:103
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:79
msgid "update_group"
msgstr "Mettre à jour le groupe"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:105
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:81
msgid "delete_group"
msgstr "Effacer le groupe"
-#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:108
+#: .\ldt_utils\templates\ldt\ldt_utils\create_group.html.py:84
msgid "create_group"
msgstr "Créer un nouveau groupe"
@@ -716,8 +716,8 @@
msgstr "Configuration avec widget polemic"
#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:93
-msgid "Polemic configuration with sparkline and tagcloud"
-msgstr "Configuration avec widget polemic, sparkline et tagcloud"
+msgid "Polemic configuration with tagcloud, annotationsList and Social widgets"
+msgstr "Configuration avec widget polemic, annotationsList, social et tagcloud"
#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:100
msgid "Create your own configuration"
@@ -820,7 +820,7 @@
msgstr "Partager par email"
#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:195
-msgid " Displays information relative to a single segment/annotation while it is being played"
+msgid "Displays information relative to a single segment/annotation while it is being played"
msgstr "Affiche les informations relatives à une annotation au moment où celle-ci est jouée"
#: .\ldt_utils\templates\ldt\ldt_utils\embed_popup.html.py:198
@@ -854,20 +854,20 @@
msgid "close_error"
msgstr "Fermer"
-#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:68
+#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:67
msgid "Do you want to leave this group ?"
msgstr "Voulez-vous quitter ce groupe ?"
-#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:93
+#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:92
#: .\templates\ldt\ldt_base.html.py:115
msgid "My groups"
msgstr "Groupes"
-#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:95
+#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:94
msgid "Create group"
msgstr "Créer un nouveau groupe"
-#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:111
+#: .\ldt_utils\templates\ldt\ldt_utils\groups.html.py:110
msgid "The group's projects"
msgstr "projets du groupe"
@@ -962,12 +962,12 @@
#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:52
#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:79
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:174
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:178
msgid "share.eye"
msgstr "Cet utilisateur ou ce groupe a le droit de voir cet élement"
#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:60
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:172
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:176
msgid "share.pencil"
msgstr "cet utilisateur ou ce groupe a le droit de modifier cet élement"
@@ -979,41 +979,41 @@
msgid "publish for everyone"
msgstr "publier pour tout le monde"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:124
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:125
msgid "publish the title on the front"
msgstr "publier le titre sur le front"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:127
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:129
msgid "User and group list"
msgstr "Liste des groupes et des utilisateurs"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:142
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:144
msgid "select all displayed elements"
msgstr "ajouter tous les élements affichés"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:147
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:149
msgid "select users"
msgstr "choisir des utilisateurs"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:148
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:150
msgid "remove users"
msgstr "enlever des utilisateurs"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:153
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:157
msgid "Members list"
msgstr "liste des membres"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:163
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:167
#: .\ldt_utils\templates\ldt\ldt_utils\partial\sharewith.html.py:7
msgid "user"
msgstr "utilisateur"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:165
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:169
#: .\ldt_utils\templates\ldt\ldt_utils\partial\sharewith.html.py:9
msgid "group"
msgstr "groupe"
-#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:185
+#: .\ldt_utils\templates\ldt\ldt_utils\partial\permissions.html.py:189
msgid "remove all"
msgstr "tout enlever"
@@ -1063,71 +1063,63 @@
msgid "Project published"
msgstr "Projet publié"
-#: .\ldt_utils\views\content.py:187
+#: .\ldt_utils\views\content.py:114
msgid "Problem when downloading file from url : "
msgstr "Problème lors du téléchargement du fichier : "
-#: .\ldt_utils\views\content.py:190
+#: .\ldt_utils\views\content.py:117
msgid "Problem when uploading file : "
msgstr "Problème lors de l'upload du fichier : "
-#: .\ldt_utils\views\content.py:295
-msgid "Content creation failure"
-msgstr "Echec lors de la creation du contenu"
-
-#: .\ldt_utils\views\content.py:303
-msgid "Commit of the content creation failed"
-msgstr "Echec lors du commit de la creation du contenu"
-
-#: .\ldt_utils\views\content.py:317
+#: .\ldt_utils\views\content.py:334
#, 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\content.py:318
+#: .\ldt_utils\views\content.py:335
msgid "title error deleting content"
msgstr "Erreur lors de l'effacement du contenu"
-#: .\ldt_utils\views\content.py:323
+#: .\ldt_utils\views\content.py:340
#, python-format
msgid "Confirm delete content %(titles)s"
msgstr "Veuillez confirmer l'effacement du contenu %(titles)s"
-#: .\ldt_utils\views\content.py:324
+#: .\ldt_utils\views\content.py:341
msgid "confirm delete content"
msgstr "Confirmation effacement contenu"
-#: .\ldt_utils\views\content.py:335
+#: .\ldt_utils\views\content.py:352
#, python-format
msgid "Please unpublish the front project %(title)s"
msgstr "Veuillez dépublier le projet : %(title)s"
-#: .\ldt_utils\views\content.py:336
+#: .\ldt_utils\views\content.py:353
msgid "The front project is published"
msgstr "Projet publié"
-#: .\ldt_utils\views\content.py:337 .\ldt_utils\views\content.py:340
+#: .\ldt_utils\views\content.py:354 .\ldt_utils\views\content.py:357
#: .\ldt_utils\views\project.py:137
msgid "confirm reset"
msgstr "Confirmer la réinitialisation"
-#: .\ldt_utils\views\content.py:339 .\ldt_utils\views\project.py:136
+#: .\ldt_utils\views\content.py:356 .\ldt_utils\views\project.py:136
#, python-format
msgid "please confirm reseting project %(title)s"
msgstr "Veuillez confirmer la réinitialisation du projet %(title)s"
-#: .\ldt_utils\views\content.py:367
+#: .\ldt_utils\views\content.py:384
msgid "An error occurred - Please try again or contact webmaster"
msgstr ""
"Une erreur est apparue - Merci de réessayer ou de contacter le webmaster"
-#: .\ldt_utils\views\content.py:368
+#: .\ldt_utils\views\content.py:385
msgid "Error"
msgstr "Erreur"
-#: .\ldt_utils\views\content.py:411
+#: .\ldt_utils\views\content.py:428
#, python-format
msgid ""
"Content '%(title)s' is referenced by this project : %(project_titles)s. "
@@ -1142,7 +1134,7 @@
"Le contenu '%(title)s' est référencé par les projets suivants : '%"
"(project_titles)s'.Veuillez les effacer préalablement."
-#: .\ldt_utils\views\content.py:414
+#: .\ldt_utils\views\content.py:431
#, python-format
msgid ""
"The project '%(project_title)s' pointing on the content '%(title)s' has "
@@ -1152,16 +1144,16 @@
"Le projet '%(project_title)s' référençant le contenu '%(title)s' comporte "
"plusieurs annotations. Voulez vous quand même supprimer le contenu ?"
-#: .\ldt_utils\views\content.py:440
+#: .\ldt_utils\views\content.py:457
msgid "Content deletion failure"
msgstr "Echec lors de la suppression du contenu"
-#: .\ldt_utils\views\content.py:450
+#: .\ldt_utils\views\content.py:468
msgid "Commit of the content deletion failed"
msgstr "Echec lors du commit de la suppression du contenu"
-#: .\ldt_utils\views\json.py:40 .\ldt_utils\views\rdf.py:15
-#: .\ldt_utils\views\workspace.py:205
+#: .\ldt_utils\views\json.py:39 .\ldt_utils\views\rdf.py:15
+#: .\ldt_utils\views\workspace.py:198
msgid "You can not access this project"
msgstr "vous n'avez pas l'autorisation d'accéder à ce projet"
@@ -1197,12 +1189,12 @@
msgid "confirm deletion"
msgstr "Confirmation d'effacement"
-#: .\ldt_utils\views\workspace.py:123
+#: .\ldt_utils\views\workspace.py:116
msgid ""
"The content does not exists or you are not allowed to access this content"
msgstr "Ce contenu n'existe pas, ou vous n'êtes pas autorisé a y acceder"
-#: .\ldt_utils\views\workspace.py:127
+#: .\ldt_utils\views\workspace.py:120
msgid "Parameters project_id or content_id must be given in the url"
msgstr "Les paramètres project_id et content_id doivent être passés dans l'URL"
@@ -1854,6 +1846,12 @@
"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 "Content creation failure"
+#~ msgstr "Echec lors de la creation du contenu"
+
+#~ msgid "Commit of the content creation failed"
+#~ msgstr "Echec lors du commit de la creation du contenu"
+
#~ msgid "Error 500"
#~ msgstr "Erreur 500"
--- a/src/ldt/ldt/static/ldt/js/embed_popup.js Mon Nov 12 18:33:09 2012 +0100
+++ b/src/ldt/ldt/static/ldt/js/embed_popup.js Mon Nov 12 18:39:55 2012 +0100
@@ -210,15 +210,15 @@
var player_height_val=$j('#player_height').val();
widget_code='\
widgets: [\n\
- {\n';
+ {\n\
+ type: "AutoPlayer",\n';
+
if (external_url!='None'){
widget_code+='\
- type: "AutoPlayer",\n\
video: "'+external_url+'",\n';
}
else{
widget_code+='\
- type: "JwpPlayer",\n\
streamer: function(_url) {\n\
var _matches = _url.match(/^[^\\/]+\\/\\/[^\\/]+\\/[^\\/]+\\//);\n\
if (_matches) {\n\
@@ -226,9 +226,7 @@
} else {\n\
return _url;\n\
}\n\
- },\n\
- live: true,\n\
- provider: "rtmp",\n';
+ },\n';
}
widget_code+='\
--- a/src/ldt/ldt/static/ldt/js/projectscontents.js Mon Nov 12 18:33:09 2012 +0100
+++ b/src/ldt/ldt/static/ldt/js/projectscontents.js Mon Nov 12 18:39:55 2012 +0100
@@ -332,35 +332,6 @@
$('.create_group',base_node).each(function(i){
$(this).attr("target","_iri");
});
-
- $('.create_group',base_node).nyroModal({
- filters: ['iriIframe'],
- sizes: {
- minW: '750',
- minH: '750'
- },
- showCloseButton: true,
- closeOnEscape:false,
- closeOnClick:false,
- callbacks: {
- afterShowCont: function(nm) {
- 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' ) {
- $.nmTop().close();
- }
-
- });
- nm.store.iframe.width(740);
- nm.store.iframe.height(740);
- },
- afterClose: function(nm) {
- searchCallback($("#searchprojectsinput"), $("#groupslistcontainer"), groupfilterurl, 0);
- }
- }
- });
-
$('.create_group',base_node).each(function(i, e) {
nm = $(e).data('nmObj');