Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 228 | Rev 231 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 228 Rev 230
Line 48... Line 48...
48
	
48
	
49
 
49
 
50
		// Gestion du clic sur le lien 
50
		// Gestion du clic sur le lien 
51
		// Comme les liens sont mis en place par jqueryui tabs, il faut ajouter une surcouche pour 
51
		// Comme les liens sont mis en place par jqueryui tabs, il faut ajouter une surcouche pour 
-
 
52
		// déplacer vers la page du module
52
		// déplacer vers la page du module
53
		/*$(a).click(function() {
53
		$(a).click(function() {
54
			//window.alert($(a).attr("href"));
54
			// TODO : Changer l'url par celle du module et enregistrer la configuration actuelle des onglets.
55
			// TODO : Changer l'url par celle du module et enregistrer la configuration actuelle des onglets.
Line 55... Line 56...
55
			location.href = $(a).attr("href");
56
			location.href = $(a).attr("href");
56
		});
57
		});*/
57
 
58
 
Line 144... Line 145...
144
		identifiantOnglet = "#zone_onglets>ul>li:nth-child(" + i +")";
145
		identifiantOnglet = "#zone_onglets>ul>li:nth-child(" + i +")";
145
		var module = new Module(i, this, $(identifiantOnglet));
146
		var module = new Module(i, this, $(identifiantOnglet));
146
		module.titre = $(this).children('h3').text();
147
		module.titre = $(this).children('h3').text();
147
		tableauOnglets[identifiantOnglet] = module;
148
		tableauOnglets[identifiantOnglet] = module;
148
	});
149
	});
-
 
150
	$(".lien-onglet").each(function() {
-
 
151
        var adresse_onglet = $(this).attr('href');
-
 
152
        var adresse_contenu_onglet = adresse_onglet.replace('nom_scientifique','onglet');
-
 
153
        $(this).attr('href', adresse_contenu_onglet);
149
	
154
    }); 
150
	/* mouvement des blocs */
155
	/* mouvement des blocs */
151
	$( ".colonne" ).sortable({
156
	$( ".colonne" ).sortable({
152
		connectWith: ".colonne",
157
		connectWith: ".colonne",
153
		handle: $(".module").children('h3') // mouvement seulement sur les titres
158
		handle: $(".module").children('h3') // mouvement seulement sur les titres
154
	});
159
	});
Line 158... Line 163...
158
		add: function(event, ui) {
163
		add: function(event, ui) {
159
			redimensionnerOnglets();
164
			redimensionnerOnglets();
160
		},
165
		},
161
		remove: function(event, ui) {
166
		remove: function(event, ui) {
162
			redimensionnerOnglets();
167
			redimensionnerOnglets();
163
		}
168
		}/*,
-
 
169
		select: function(event, ui) {
-
 
170
	        var url = $.data(ui.tab, 'load.tabs');
-
 
171
	        if( url ) {
-
 
172
	            location.href = url;
-
 
173
	            return false;
-
 
174
	        }
-
 
175
	        return true;
-
 
176
	    }*/
164
	});
177
	});
-
 
178
	
-
 
179
    
Line 165... Line 180...
165
 
180
 
166
	$("#ongletEtPlus").click(function() {
181
	$("#ongletEtPlus").click(function() {
167
		afficherCacherMenuOnglets();
182
		afficherCacherMenuOnglets();