no-prevent class on bibliotheque
authorAnthony Ly <anthonyly.com@gmail.com>
Mon, 03 Jun 2013 17:46:57 +0200
changeset 70 2542e988f80c
parent 67 807525d1ad8e
child 71 79974d302930
no-prevent class on bibliotheque
integration/js/common.js
integration/js/edition.js
integration/modal-bibliotheque-video.html
--- a/integration/js/common.js	Mon Jun 03 13:33:35 2013 +0200
+++ b/integration/js/common.js	Mon Jun 03 17:46:57 2013 +0200
@@ -31,7 +31,12 @@
     });
 
     $('.popup').on('click', '.popup-content a', function(e){
-        e.preventDefault();
+        
+        if($(this).hasClass('no-prevent')){
+            return true;
+        }else{
+            e.preventDefault();
+        }
         if($(this).hasClass('btn-cancel')){
             $(this).parents('.popup').modal('hide');
         }
--- a/integration/js/edition.js	Mon Jun 03 13:33:35 2013 +0200
+++ b/integration/js/edition.js	Mon Jun 03 17:46:57 2013 +0200
@@ -498,10 +498,10 @@
             var currentTimePlusUnMin = 60 * 1000 + myMedia.currentTime,
                 endAnnotation = (currentTimePlusUnMin<myMedia.duration) ? currentTimePlusUnMin : myMedia.duration;
             var dataAnnotation = {
-                title : 'Nouveau',
+                title : '',
                 begin : myMedia.currentTime,
                 end : endAnnotation,
-                description : 'description',
+                description : '',
                 type : type,
                 keywords : []
             };
@@ -884,9 +884,11 @@
                 left : left,
                 width :width
             });
-
-
-
+        },
+        start : function(){
+            var idSlider = $(this).attr('data-id'),
+                annotationTimeline = $('#annotation-timeline-'+ data.id);
+            annotationTimeline.css('z-index',100);
         },
         stop : function(){
             renderAnnotation()
--- a/integration/modal-bibliotheque-video.html	Mon Jun 03 13:33:35 2013 +0200
+++ b/integration/modal-bibliotheque-video.html	Mon Jun 03 17:46:57 2013 +0200
@@ -23,7 +23,7 @@
 				</h5>
 			</div>
 			<div class="span2">
-				<a href="#"><img src="img/140x140.gif" alt=""></a>
+				<a class="no-prevent" href="http://www.dailymotion.com/video/xgs10f_the-three-tenors-la-donna-e-mobile_music"><img src="img/140x140.gif" alt=""></a>
 				<h5>
 					<a href="#">Titre du média</a>
 				</h5>