Cookies helfen uns bei der Bereitstellung von Open Source Ecology (OSE) Germany - Entwicklungsplattform. Durch die Nutzung von Open Source Ecology (OSE) Germany - Entwicklungsplattform erklärst du dich damit einverstanden, dass wir Cookies speichern.

MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Open Source Ecology (OSE) Germany - Entwicklungsplattform
Wechseln zu:Navigation, Suche
 
(11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 6: Zeile 6:
 
$(".showGralComment").click(function(){
 
$(".showGralComment").click(function(){
 
   $(".generalCommentsBox").toggle(500);
 
   $(".generalCommentsBox").toggle(500);
   var grhtml = $(".generalCommentsBox").html();
+
   var grhtml = $(".showGralComment").html();
 
   if (grhtml.indexOf('+') > -1) {
 
   if (grhtml.indexOf('+') > -1) {
     grhtml.replace('+', '-');
+
     grhtml = grhtml.replace('+', '-');
 
   }else{
 
   }else{
     grhtml.replace('-', '+');
+
     grhtml = grhtml.replace('-', '+');
 
   }
 
   }
 +
  $(".showGralComment").html(grhtml);
 
});
 
});
  
Zeile 19: Zeile 20:
 
   if (txt=='Show All Comments') {
 
   if (txt=='Show All Comments') {
 
     $(".project_material_table .materialCommandsBox").addClass("openComments");
 
     $(".project_material_table .materialCommandsBox").addClass("openComments");
     $(".project_material_table .commentRow").show(500);
+
     $(".project_material_table .commentRow").not(".notFoundComment").show(500);
 
     $(this).html('Hide All Comments');
 
     $(this).html('Hide All Comments');
 
   }else{
 
   }else{
 
     $(".project_material_table .materialCommandsBox").removeClass("openComments");
 
     $(".project_material_table .materialCommandsBox").removeClass("openComments");
     $(".project_material_table .commentRow").hide(500);
+
     $(".project_material_table .commentRow").not(".notFoundComment").hide(500);
 
     $(this).html('Show All Comments');
 
     $(this).html('Show All Comments');
 
   }
 
   }
 +
});
 +
 +
$(".searchMatCol").keyup(function(e){
 +
  findRowsByCol($(".searchMatCol"));
 
});
 
});
  

Aktuelle Version vom 13. Mai 2020, 03:51 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */
$(".materialRow .showComment").click(function(){
  $(this).parent().toggleClass("openComments");
  $(this).parent().parent().next().toggle(500);
});
$(".showGralComment").click(function(){
  $(".generalCommentsBox").toggle(500);
  var grhtml = $(".showGralComment").html();
  if (grhtml.indexOf('+') > -1) {
    grhtml = grhtml.replace('+', '-');
  }else{
    grhtml = grhtml.replace('-', '+');
  }
  $(".showGralComment").html(grhtml);
});

$(".project_material_table .showAllComments").click(function(e){
  e.preventDefault();
  var txt = $(this).html();
  if (txt=='Show All Comments') {
    $(".project_material_table .materialCommandsBox").addClass("openComments");
    $(".project_material_table .commentRow").not(".notFoundComment").show(500);
    $(this).html('Hide All Comments');
  }else{
    $(".project_material_table .materialCommandsBox").removeClass("openComments");
    $(".project_material_table .commentRow").not(".notFoundComment").hide(500);
    $(this).html('Show All Comments');
  }
});

$(".searchMatCol").keyup(function(e){
  findRowsByCol($(".searchMatCol"));
});

if (window.initJSFuncts!==undefined) {
  for(ijsf=0; ijsf<window.initJSFuncts.length; ijsf++) {
    try {window.initJSFuncts[ijsf]();}catch(e){console.log(e);}
  }
}

function getUrlParameter(sParam) {
    var sPageURL = window.location.search.substring(1);
    var sURLVariables = sPageURL.split('&');
    for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');
        if (sParameterName[0] === sParam) {
            return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
        }
    }
}

$(".newtablinks a, .newtablink").attr("target", "_blank");
CC 2019 open hardware observatory
|
  • Impressum
  • |
  • Legal