update spin url pages
authorAnthony Ly <anthonyly.com@gmail.com>
Thu, 16 May 2013 18:03:54 +0200
changeset 18 16b482c153fd
parent 17 c72a9f9cb519
child 19 6a3d8d05e3fb
child 21 abd04f346dbe
update spin url pages
integration/edition.html
integration/home.html
integration/js/edition.js
integration/liste-ressource.html
integration/modal-video.html
--- a/integration/edition.html	Thu May 16 17:43:27 2013 +0200
+++ b/integration/edition.html	Thu May 16 18:03:54 2013 +0200
@@ -447,6 +447,7 @@
 	<script src="js/common.js"></script>
     <script src="js/edition.js"></script>
     <script>
+    
     var spinParam = {
 	    imageBasePath :'lib/spin/img/',
 	    max:60,
--- a/integration/home.html	Thu May 16 17:43:27 2013 +0200
+++ b/integration/home.html	Thu May 16 18:03:54 2013 +0200
@@ -151,12 +151,5 @@
 	<script src="js/common.js"></script>
 	<script src="js/home.js"></script>
 
-	<script>
-	var spinParam = {
-	    imageBasePath :'lib/spin/img/',
-	    max:60,
-	    min:0
-	};
-	</script>
 </body>
 </html>
\ No newline at end of file
--- a/integration/js/edition.js	Thu May 16 17:43:27 2013 +0200
+++ b/integration/js/edition.js	Thu May 16 18:03:54 2013 +0200
@@ -4,10 +4,9 @@
     diaporama : null,
     idAnnotation : null
 },
-chapitres = {},
-annotations = {};
+chapitres = [],
+annotations = [];
 
-//onLoad
 myProject.onLoad(function() {
 
     $(".project-title").text(myProject.title);
@@ -40,7 +39,7 @@
             btnCutChapter.css("left",pos);
         }
             
-    });
+    });//timeupdate
     
 });//myProject.onLoad
 
@@ -131,7 +130,7 @@
         $('.project-title').html($(this).val());
     });
 
-//chapter
+//--chapter
     $('.list-chapter-wrap').on('click', '.edit-chapter', function(e){
         e.preventDefault();
         var viewChapter = {
@@ -161,6 +160,9 @@
         });
     });
 
+    function addChapter(data){
+
+    }
     
     //edit annotation
     $('#list-annotations').on('click', 'a.btn-edit-annotation', function(e){
--- a/integration/liste-ressource.html	Thu May 16 17:43:27 2013 +0200
+++ b/integration/liste-ressource.html	Thu May 16 18:03:54 2013 +0200
@@ -218,12 +218,6 @@
 
 	<script src="js/common.js"></script>
 	<script src="js/ressource.js"></script>
-	<script>
-	var spinParam = {
-	    imageBasePath :'lib/spin/img/',
-	    max:60,
-	    min:0
-	};
-	</script>
+
 </body>
 </html>
\ No newline at end of file
--- a/integration/modal-video.html	Thu May 16 17:43:27 2013 +0200
+++ b/integration/modal-video.html	Thu May 16 18:03:54 2013 +0200
@@ -44,5 +44,9 @@
 	</div>
 </div>
 <script type="text/javascript">
-$('.select-duration .number-spin').spin(spinParam);
+$('.select-duration .number-spin').spin({
+	imageBasePath :'lib/spin/img/',
+    max:60,
+    min:0
+});
 </script>
\ No newline at end of file