|
@@ -217,9 +217,7 @@ function remove_tags(form_name)
|
217
|
217
|
//tagsAddeds[form_name] = new Array();
|
218
|
218
|
$('form[name="'+form_name+'"] ul.tagbox li.tag').remove();
|
219
|
219
|
$('form[name="'+form_name+'"] input.tagBox_tags_ids').val('');
|
220
|
|
- $('div#tags_prompt_'+form_name+' ul.tagbox li.input input[type="text"]')
|
221
|
|
- .val(string_tag_prompt_input_help)
|
222
|
|
- ;
|
|
220
|
+
|
223
|
221
|
}
|
224
|
222
|
|
225
|
223
|
$(document).ready(function(){
|
|
@@ -687,7 +685,6 @@ $(document).ready(function(){
|
687
|
685
|
////////////////// TAG PROMPT ///////////////
|
688
|
686
|
|
689
|
687
|
var ajax_query_timestamp = null;
|
690
|
|
- var tag_text_help = $('input.tag_text_help').val();
|
691
|
688
|
|
692
|
689
|
// Les deux clicks ci-dessous permettent de faire disparaitre
|
693
|
690
|
// la div de tags lorsque l'on clique ailleurs
|
|
@@ -706,7 +703,7 @@ $(document).ready(function(){
|
706
|
703
|
function autocomplete_tag(input, form_name)
|
707
|
704
|
{
|
708
|
705
|
// Il doit y avoir au moin un caractère
|
709
|
|
- if ((input.val().length > 0) && (input.val() != string_tag_prompt_input_help))
|
|
706
|
+ if (input.val().length > 0)
|
710
|
707
|
{
|
711
|
708
|
|
712
|
709
|
// on met en variable l'input
|
|
@@ -808,7 +805,8 @@ $(document).ready(function(){
|
808
|
805
|
inputTag.trigger("selectTag");
|
809
|
806
|
// On cache la liste puisque le choix vient d'être fait
|
810
|
807
|
divtags.hide();
|
811
|
|
- inputTag.val(tag_text_help);
|
|
808
|
+ // On vide le champs de saisie du tag
|
|
809
|
+ $('input.form-default-value-processed').val('');
|
812
|
810
|
return false;
|
813
|
811
|
})
|
814
|
812
|
.append(t_string)
|
|
@@ -851,128 +849,15 @@ $(document).ready(function(){
|
851
|
849
|
// Si le tag ne semble pas connu en base
|
852
|
850
|
if (!data.same_found)
|
853
|
851
|
{
|
854
|
|
- // Cette variable nous permettra de stocker le lien nouveau tag
|
855
|
|
- var link_add_tag = null;
|
856
|
|
-
|
857
|
852
|
li_tag =
|
858
|
853
|
$('<li>').addClass('new').append(
|
859
|
854
|
$('<a>').attr('href','#new#'+$.trim(input.val()))
|
860
|
855
|
// qui réagit quand on clique dessus
|
861
|
|
- .click(function(e){
|
862
|
|
-
|
863
|
|
- // Effet fade-in du fond opaque
|
864
|
|
- $('body').append($('<div>').attr('id', 'fade'));
|
865
|
|
- //Apparition du fond - .css({'filter' : 'alpha(opacity=80)'}) pour corriger les bogues de IE
|
866
|
|
- $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn();
|
867
|
|
-
|
868
|
|
- // On met le lien cliqué dans la variabke prévu
|
869
|
|
- link_add_tag = $(this);
|
870
|
|
-
|
871
|
|
- // En premier lieux on fait apparaître la fenêtre de confirmation
|
872
|
|
- var popup = $('<div>')
|
873
|
|
- .attr('id', 'add_tag')
|
874
|
|
- .addClass('popin_block')
|
875
|
|
- .css('width', '400px')
|
876
|
|
- //.append($('<h2>').append(string_tag_add_title))
|
877
|
|
- .append($('<form>')
|
878
|
|
- .attr('action', url_add_tag)
|
879
|
|
- .attr('method', 'post')
|
880
|
|
- .attr('name', 'add_tag')
|
881
|
|
- .ajaxForm(function(response) {
|
882
|
|
- /*
|
883
|
|
- *
|
884
|
|
- */
|
885
|
|
-
|
886
|
|
- if (response.status == 'mustbeconnected')
|
887
|
|
- {
|
888
|
|
- $(location).attr('href', url_index);
|
889
|
|
- }
|
890
|
|
-
|
891
|
|
- if (response.status == 'success')
|
892
|
|
- {
|
893
|
|
- var tag_id = response.tag_id;
|
894
|
|
- var tag_name = response.tag_name;
|
895
|
|
-
|
896
|
|
- $('input#tags_selected_tag_'+form_name).val(tag_id);
|
897
|
|
- inputTag.val(tag_name);
|
898
|
|
- // Et on execute l'évènement selectTag de l'input
|
899
|
|
- inputTag.trigger("selectTag");
|
900
|
|
- // On cache la liste puisque le choix vient d'être fait
|
901
|
|
- divtags.hide();
|
902
|
|
- inputTag.val(tag_text_help);
|
903
|
|
-
|
904
|
|
- link_add_tag.parents('div.search_tag_list').find('img.tag_loader').hide();
|
905
|
|
-
|
906
|
|
- $('#fade').fadeOut(400, function(){$('#fade').remove();});
|
907
|
|
- $('#add_tag').remove();
|
908
|
|
- }
|
909
|
|
-
|
910
|
|
- if (response.status == 'error')
|
911
|
|
- {
|
912
|
|
- $('form[name="add_tag"]').find('ul.error_list').remove();
|
913
|
|
- var ul_errors = $('<ul>').addClass('error_list');
|
914
|
|
-
|
915
|
|
- for (i in response.errors)
|
916
|
|
- {
|
917
|
|
- ul_errors.append($('<li>').append(response.errors[i]));
|
918
|
|
- }
|
919
|
|
-
|
920
|
|
- $('form[name="add_tag"]').prepend(ul_errors);
|
921
|
|
- }
|
922
|
|
-
|
923
|
|
- return false;
|
924
|
|
- })
|
925
|
|
-
|
926
|
|
- .append($('<div>').addClass('tag')
|
927
|
|
- .append($('<ul>')
|
928
|
|
- .append($('<li>').addClass('button')
|
929
|
|
- .append($(this).text()))))
|
930
|
|
- .append($('<p>').append(string_tag_add_text))
|
931
|
|
- .append($('<p>').append(string_tag_add_argument))
|
932
|
|
- .append($('<textarea>').attr('name', 'argument'))
|
933
|
|
- .append($('<div>').addClass('inputs')
|
934
|
|
- .append($('<input>')
|
935
|
|
- .attr('type', 'button')
|
936
|
|
- .attr('value', string_tag_add_inputs_cancel)
|
937
|
|
- .addClass('button')
|
938
|
|
- .click(function(){
|
939
|
|
- $('#fade').fadeOut(1000, function(){$('#fade').remove();});
|
940
|
|
- $('#add_tag').remove();
|
941
|
|
-
|
942
|
|
- return false;
|
943
|
|
- })
|
944
|
|
- )
|
945
|
|
- .append($('<input>')
|
946
|
|
- .attr('type', 'submit')
|
947
|
|
- .attr('value', string_tag_add_inputs_submit)
|
948
|
|
- .addClass('button')
|
949
|
|
- .click(function(){
|
950
|
|
-
|
951
|
|
- link_add_tag.parents('div.search_tag_list').find('img.tag_loader').show();
|
952
|
|
-
|
953
|
|
- })
|
954
|
|
- )
|
955
|
|
- .append($('<input>').attr('type', 'hidden').attr('name', 'tag_name').val($(this).text()))
|
956
|
|
- ))
|
957
|
|
- ;
|
958
|
|
-
|
959
|
|
- // Il faut ajouter le popup au dom avant de le positionner en css
|
960
|
|
- // Sinon la valeur height n'est pas encore calculable
|
961
|
|
- $('body').prepend(popup);
|
962
|
|
-
|
963
|
|
- //Récupération du margin, qui permettra de centrer la fenêtre - on ajuste de 80px en conformité avec le CSS
|
964
|
|
- var popMargTop = (popup.height() + 50) / 2;
|
965
|
|
- var popMargLeft = (popup.width() + 50) / 2;
|
966
|
|
-
|
967
|
|
- //On affecte le margin
|
968
|
|
- $(popup).css({
|
969
|
|
- 'margin-top' : -popMargTop,
|
970
|
|
- 'margin-left' : -popMargLeft
|
971
|
|
- });
|
972
|
|
-
|
973
|
|
- return false;
|
974
|
|
-
|
975
|
|
- })
|
|
856
|
+ .click({
|
|
857
|
+ inputTag: inputTag,
|
|
858
|
+ form_name: form_name,
|
|
859
|
+ divtags: divtags
|
|
860
|
+ }, event_click_new_tag_proposition)
|
976
|
861
|
.append($.trim(input.val()))
|
977
|
862
|
);
|
978
|
863
|
search_tag_list.append(li_tag);
|
|
@@ -991,7 +876,124 @@ $(document).ready(function(){
|
991
|
876
|
|
992
|
877
|
}
|
993
|
878
|
}
|
|
879
|
+
|
|
880
|
+ function event_click_new_tag_proposition(event)
|
|
881
|
+ {
|
|
882
|
+ form_add_open_dialog_for_new_tag($(event.target), event.data.inputTag, event.data.form_name, event.data.divtags);
|
|
883
|
+ }
|
994
|
884
|
|
|
885
|
+ function form_add_open_dialog_for_new_tag(link_add_tag, inputTag, form_name, divtags)
|
|
886
|
+ {
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+ // Effet fade-in du fond opaque
|
|
890
|
+ $('body').append($('<div>').attr('id', 'fade'));
|
|
891
|
+ //Apparition du fond - .css({'filter' : 'alpha(opacity=80)'}) pour corriger les bogues de IE
|
|
892
|
+ $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn();
|
|
893
|
+
|
|
894
|
+ // En premier lieux on fait apparaître la fenêtre de confirmation
|
|
895
|
+ var popup = $('<div>')
|
|
896
|
+ .attr('id', 'add_tag')
|
|
897
|
+ .addClass('popin_block')
|
|
898
|
+ .css('width', '400px')
|
|
899
|
+ //.append($('<h2>').append(string_tag_add_title))
|
|
900
|
+ .append($('<form>')
|
|
901
|
+ .attr('action', url_add_tag)
|
|
902
|
+ .attr('method', 'post')
|
|
903
|
+ .attr('name', 'add_tag')
|
|
904
|
+ .ajaxForm(function(response) {
|
|
905
|
+ /*
|
|
906
|
+ *
|
|
907
|
+ */
|
|
908
|
+
|
|
909
|
+ if (response.status == 'mustbeconnected')
|
|
910
|
+ {
|
|
911
|
+ $(location).attr('href', url_index);
|
|
912
|
+ }
|
|
913
|
+
|
|
914
|
+ if (response.status == 'success')
|
|
915
|
+ {
|
|
916
|
+ var tag_id = response.tag_id;
|
|
917
|
+ var tag_name = response.tag_name;
|
|
918
|
+
|
|
919
|
+ $('input#tags_selected_tag_'+form_name).val(tag_id);
|
|
920
|
+ inputTag.val(tag_name);
|
|
921
|
+ // Et on execute l'évènement selectTag de l'input
|
|
922
|
+ inputTag.trigger("selectTag");
|
|
923
|
+ // On cache la liste puisque le choix vient d'être fait
|
|
924
|
+ divtags.hide();
|
|
925
|
+
|
|
926
|
+ link_add_tag.parents('div.search_tag_list').find('img.tag_loader').hide();
|
|
927
|
+
|
|
928
|
+ $('#fade').fadeOut(400, function(){$('#fade').remove();});
|
|
929
|
+ $('#add_tag').remove();
|
|
930
|
+ }
|
|
931
|
+
|
|
932
|
+ if (response.status == 'error')
|
|
933
|
+ {
|
|
934
|
+ $('form[name="add_tag"]').find('ul.error_list').remove();
|
|
935
|
+ var ul_errors = $('<ul>').addClass('error_list');
|
|
936
|
+
|
|
937
|
+ for (i in response.errors)
|
|
938
|
+ {
|
|
939
|
+ ul_errors.append($('<li>').append(response.errors[i]));
|
|
940
|
+ }
|
|
941
|
+
|
|
942
|
+ $('form[name="add_tag"]').prepend(ul_errors);
|
|
943
|
+ }
|
|
944
|
+
|
|
945
|
+ return false;
|
|
946
|
+ })
|
|
947
|
+
|
|
948
|
+ .append($('<div>').addClass('tag')
|
|
949
|
+ .append($('<ul>')
|
|
950
|
+ .append($('<li>').addClass('button')
|
|
951
|
+ .append(link_add_tag.text()))))
|
|
952
|
+ .append($('<p>').append(string_tag_add_text))
|
|
953
|
+ .append($('<p>').append(string_tag_add_argument))
|
|
954
|
+ .append($('<textarea>').attr('name', 'argument'))
|
|
955
|
+ .append($('<div>').addClass('inputs')
|
|
956
|
+ .append($('<input>')
|
|
957
|
+ .attr('type', 'button')
|
|
958
|
+ .attr('value', string_tag_add_inputs_cancel)
|
|
959
|
+ .addClass('button')
|
|
960
|
+ .click(function(){
|
|
961
|
+ $('#fade').fadeOut(1000, function(){$('#fade').remove();});
|
|
962
|
+ $('#add_tag').remove();
|
|
963
|
+
|
|
964
|
+ return false;
|
|
965
|
+ })
|
|
966
|
+ )
|
|
967
|
+ .append($('<input>')
|
|
968
|
+ .attr('type', 'submit')
|
|
969
|
+ .attr('value', string_tag_add_inputs_submit)
|
|
970
|
+ .addClass('button')
|
|
971
|
+ .click(function(){
|
|
972
|
+
|
|
973
|
+ link_add_tag.parents('div.search_tag_list').find('img.tag_loader').show();
|
|
974
|
+
|
|
975
|
+ })
|
|
976
|
+ )
|
|
977
|
+ .append($('<input>').attr('type', 'hidden').attr('name', 'tag_name').val(link_add_tag.text()))
|
|
978
|
+ ))
|
|
979
|
+ ;
|
|
980
|
+
|
|
981
|
+ // Il faut ajouter le popup au dom avant de le positionner en css
|
|
982
|
+ // Sinon la valeur height n'est pas encore calculable
|
|
983
|
+ $('body').prepend(popup);
|
|
984
|
+
|
|
985
|
+ //Récupération du margin, qui permettra de centrer la fenêtre - on ajuste de 80px en conformité avec le CSS
|
|
986
|
+ var popMargTop = (popup.height() + 50) / 2;
|
|
987
|
+ var popMargLeft = (popup.width() + 50) / 2;
|
|
988
|
+
|
|
989
|
+ //On affecte le margin
|
|
990
|
+ $(popup).css({
|
|
991
|
+ 'margin-top' : -popMargTop,
|
|
992
|
+ 'margin-left' : -popMargLeft
|
|
993
|
+ });
|
|
994
|
+
|
|
995
|
+ return false;
|
|
996
|
+ }
|
995
|
997
|
|
996
|
998
|
var last_keypress = 0;
|
997
|
999
|
|
|
@@ -1055,7 +1057,6 @@ $(document).ready(function(){
|
1055
|
1057
|
return false;
|
1056
|
1058
|
});
|
1057
|
1059
|
|
1058
|
|
- $('ul.tagbox li.input input[type="text"]').val(tag_text_help);
|
1059
|
1060
|
$('ul.tagbox li.input input[type="text"]').formDefaults();
|
1060
|
1061
|
|
1061
|
1062
|
////////////////// FIN TAG PROMPT ///////////////
|
|
@@ -1131,22 +1132,156 @@ $(document).ready(function(){
|
1131
|
1132
|
$('a#element_add_link').show();
|
1132
|
1133
|
}
|
1133
|
1134
|
|
|
1135
|
+ form_add_hide_errors();
|
|
1136
|
+
|
|
1137
|
+ return true;
|
1134
|
1138
|
}
|
1135
|
1139
|
else if (response.status == 'error')
|
1136
|
1140
|
{
|
1137
|
|
- $('form[name="add"]').find('ul.error_list').remove();
|
1138
|
|
- var ul_errors = $('<ul>').addClass('error_list');
|
1139
|
|
-
|
1140
|
|
- for (i in response.errors)
|
1141
|
|
- {
|
1142
|
|
- ul_errors.append($('<li>').append(response.errors[i]));
|
1143
|
|
- }
|
1144
|
|
-
|
1145
|
|
- $('form[name="add"]').prepend(ul_errors);
|
|
1141
|
+ form_add_display_errors(response.errors);
|
|
1142
|
+ $('#form_add_loader').hide();
|
|
1143
|
+ return false;
|
1146
|
1144
|
}
|
|
1145
|
+
|
|
1146
|
+ return false;
|
|
1147
|
+ }
|
|
1148
|
+
|
|
1149
|
+ function form_add_hide_errors()
|
|
1150
|
+ {
|
|
1151
|
+ $('form[name="add"]').find('ul.error_list').remove();
|
1147
|
1152
|
}
|
|
1153
|
+
|
|
1154
|
+ // Affichage des erreurs lors de laprocédure d'ajout d'un élément
|
|
1155
|
+ function form_add_display_errors(errors)
|
|
1156
|
+ {
|
|
1157
|
+ $('form[name="add"]').find('ul.error_list').remove();
|
|
1158
|
+ var ul_errors = $('<ul>').addClass('error_list');
|
1148
|
1159
|
|
1149
|
|
- // Ajout d'un element #ajouter
|
|
1160
|
+ for (i in errors)
|
|
1161
|
+ {
|
|
1162
|
+ ul_errors.append($('<li>').append(errors[i]));
|
|
1163
|
+ }
|
|
1164
|
+
|
|
1165
|
+ $('form[name="add"]').prepend(ul_errors);
|
|
1166
|
+ }
|
|
1167
|
+
|
|
1168
|
+ // Ajout d'un element #ajouter (première partie)
|
|
1169
|
+
|
|
1170
|
+ // Click sur "ajouter" (l'url)
|
|
1171
|
+ $('a#form_add_check_url').click(function(){
|
|
1172
|
+
|
|
1173
|
+ // On fait tourner notre gif loader
|
|
1174
|
+ $('img#form_add_loader').show();
|
|
1175
|
+
|
|
1176
|
+ $.ajax({
|
|
1177
|
+ type: 'POST',
|
|
1178
|
+ url: url_datas_api,
|
|
1179
|
+ data: {'url':$('input#element_add_url').val()},
|
|
1180
|
+ success: function(response){
|
|
1181
|
+
|
|
1182
|
+ if (response.status == 'mustbeconnected')
|
|
1183
|
+ {
|
|
1184
|
+ $(location).attr('href', url_index);
|
|
1185
|
+ }
|
|
1186
|
+
|
|
1187
|
+ if (response.status == 'success')
|
|
1188
|
+ {
|
|
1189
|
+ // On cache notre gif loader.
|
|
1190
|
+ $('img#form_add_loader').hide();
|
|
1191
|
+
|
|
1192
|
+ // On commence par renseigner les champs si on a du concret
|
|
1193
|
+ // name
|
|
1194
|
+ if (response.name)
|
|
1195
|
+ {
|
|
1196
|
+ $('input#element_add_name').val(response.name);
|
|
1197
|
+ }
|
|
1198
|
+
|
|
1199
|
+ // thumb
|
|
1200
|
+ $('div#form_add_thumb img').attr('src', '/bundles/muzichcore/img/nothumb.png');
|
|
1201
|
+ if (response.thumb)
|
|
1202
|
+ {
|
|
1203
|
+ $('div#form_add_thumb img').attr('src', response.thumb);
|
|
1204
|
+ }
|
|
1205
|
+
|
|
1206
|
+ // Proposition de tags
|
|
1207
|
+ if (response.tags)
|
|
1208
|
+ {
|
|
1209
|
+ $('ul#form_add_prop_tags li').remove();
|
|
1210
|
+ $('ul#form_add_prop_tags').show();
|
|
1211
|
+ $('ul#form_add_prop_tags_text').show();
|
|
1212
|
+
|
|
1213
|
+ for (tags_index = 0; tags_index < response.tags.length; tags_index++)
|
|
1214
|
+ {
|
|
1215
|
+ var tag = response.tags[tags_index];
|
|
1216
|
+ var tag_id = '';
|
|
1217
|
+ var tag_name = tag.original_name;
|
|
1218
|
+ // Si il y a des équivalent en base.
|
|
1219
|
+ if (tag.like_found)
|
|
1220
|
+ {
|
|
1221
|
+ tag_id = tag.like.id;
|
|
1222
|
+ tag_name = tag.like.name;
|
|
1223
|
+ }
|
|
1224
|
+
|
|
1225
|
+ // On aura plus qu'a vérifie le href pour savoir si c'est une demande d'ajout de tags =)
|
|
1226
|
+ $('ul#form_add_prop_tags').append(
|
|
1227
|
+ '<li>'+
|
|
1228
|
+ '<a href="#'+tag_id+'" class="form_add_prop_tag">'+
|
|
1229
|
+ tag_name+
|
|
1230
|
+ '</a>'+
|
|
1231
|
+ '</li>'
|
|
1232
|
+ );
|
|
1233
|
+ }
|
|
1234
|
+ }
|
|
1235
|
+
|
|
1236
|
+ // On a plus qu'a afficher les champs
|
|
1237
|
+ $('div#form_add_second_part').slideDown();
|
|
1238
|
+ $('div#form_add_first_part').slideUp();
|
|
1239
|
+ form_add_hide_errors();
|
|
1240
|
+ }
|
|
1241
|
+ else if (response.status == 'error')
|
|
1242
|
+ {
|
|
1243
|
+ form_add_display_errors(response.errors);
|
|
1244
|
+ $('#form_add_loader').hide();
|
|
1245
|
+ return false;
|
|
1246
|
+ }
|
|
1247
|
+ },
|
|
1248
|
+ dataType: 'json'
|
|
1249
|
+ });
|
|
1250
|
+
|
|
1251
|
+ });
|
|
1252
|
+
|
|
1253
|
+ /*
|
|
1254
|
+ * Formulaire d'ajout: click sur proposition de tags du a une api
|
|
1255
|
+ */
|
|
1256
|
+
|
|
1257
|
+ $('a.form_add_prop_tag').live('click', function(){
|
|
1258
|
+
|
|
1259
|
+ var form_name = "add";
|
|
1260
|
+ var tag_id = str_replace('#', '', $(this).attr('href'));
|
|
1261
|
+ var input_tag = $("div.tags_prompt ul.tagbox li.input input");
|
|
1262
|
+
|
|
1263
|
+ // Si on connait le tag id (pas un nouveau tag donc)
|
|
1264
|
+ if (tag_id)
|
|
1265
|
+ {
|
|
1266
|
+ $('input#tags_selected_tag_'+form_name).val(tag_id);
|
|
1267
|
+ input_tag.val($(this).text());
|
|
1268
|
+ // Et on execute l'évènement selectTag de l'input
|
|
1269
|
+ input_tag.trigger("selectTag");
|
|
1270
|
+ }
|
|
1271
|
+ else
|
|
1272
|
+ {
|
|
1273
|
+ // Cette var sert a rien ici, mais c'est la refactorisation qui
|
|
1274
|
+ // pose problmeme (corrigeable cela dit)
|
|
1275
|
+ var divtags = $("#search_tag_"+form_name);
|
|
1276
|
+ form_add_open_dialog_for_new_tag($(this), input_tag, form_name, divtags);
|
|
1277
|
+ }
|
|
1278
|
+
|
|
1279
|
+ // On nettoie le champs de saisie des tags
|
|
1280
|
+ $('input.form-default-value-processed').val('');
|
|
1281
|
+
|
|
1282
|
+ });
|
|
1283
|
+
|
|
1284
|
+ // #ajouter ajouter un élément (envoi du formulaire)
|
1150
|
1285
|
$('form[name="add"] input[type="submit"]').live('click', function(){
|
1151
|
1286
|
$('form[name="add"]').find('img.tag_loader').show();
|
1152
|
1287
|
});
|
|
@@ -1157,13 +1292,27 @@ $(document).ready(function(){
|
1157
|
1292
|
}
|
1158
|
1293
|
|
1159
|
1294
|
$('form[name="add"] img.tag_loader').hide();
|
1160
|
|
- element_add_proceed_json_response(response);
|
|
1295
|
+
|
|
1296
|
+ if (element_add_proceed_json_response(response))
|
|
1297
|
+ {
|
|
1298
|
+ form_add_reinit();
|
|
1299
|
+ }
|
|
1300
|
+
|
1161
|
1301
|
|
1162
|
1302
|
return false;
|
1163
|
1303
|
});
|
1164
|
1304
|
|
1165
|
|
- // Check périodique
|
1166
|
|
- // TODO.
|
|
1305
|
+
|
|
1306
|
+ function form_add_reinit()
|
|
1307
|
+ {
|
|
1308
|
+ $('div#element_add_box').slideUp();
|
|
1309
|
+ $('div#form_add_first_part').show();
|
|
1310
|
+ $('div#form_add_second_part').hide();
|
|
1311
|
+ $('ul#form_add_prop_tags').hide();
|
|
1312
|
+ $('ul#form_add_prop_tags_text').hide();
|
|
1313
|
+ $('input#element_add_url').val('');
|
|
1314
|
+ $('input#element_add_name').val('');
|
|
1315
|
+ }
|
1167
|
1316
|
|
1168
|
1317
|
/////////////////////
|
1169
|
1318
|
var tags_ids_for_filter = new Array();
|