]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Merge pull request #1588 from Georeactor/master
[rails.git] / app / assets / javascripts / user.js
index 7e7e7c8032a6cbab6d9018d7d0ee888eb0dd0df2..44872a78c6f12c2432df5fa40f268406b0109c30 100644 (file)
@@ -103,4 +103,20 @@ $(document).ready(function () {
   } else {
     enableAuth();
   }
+
+  $("#user_all").change(function () {
+    $("#user_list input[type=checkbox]").prop("checked", $("#user_all").prop("checked"));
+  });
+
+  $("#content.user_confirm").each(function () {
+    $(this).hide();
+    $(this).find("#confirm").submit();
+  });
+
+  $("input[name=legale]").change(function () {
+    var url = $(this).data("url");
+
+    $("#contributorTerms").html("<img src='" + OSM.SEARCHING + "' />");
+    $("#contributorTerms").load(url);
+  });
 });