]> source.dussan.org Git - sonarqube.git/commitdiff
Remove dead javascript code
authorDavid Gageot <david@gageot.net>
Tue, 9 Oct 2012 08:07:51 +0000 (10:07 +0200)
committerDavid Gageot <david@gageot.net>
Tue, 9 Oct 2012 12:58:34 +0000 (14:58 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb

index 1dd4fffea75c7df75e3a81eb92cf533e11061de4..56646fcaca3ead6b7434cbe0542eef7188648a60 100644 (file)
 
 <script>
   $j('.delete').live('click', function () {
-    var value_count = $j(this).parents('.property').find('.delete').size() - 2;
-    //if (0 == value_count) {
-    //  var template = $j(this).parents('.property').find('.template').last();
-    //  template.clone().insertBefore(template).show();
-    //}
     $j(this).parents('.multi_value').remove();
     return false;
   });
 
   $j('.add_value').live('click', function () {
-    //$j(this).parents('.property').find('.delete').show();
-
     var template = $j(this).parents('.property').find('.template').last();
     template.clone().insertBefore(template).show();
-
     return false;
   });
 </script>