Matthew Marshall avatar Matthew Marshall committed 6fb5534

Fixed bug in javascript on the front page.

Comments (0)

Files changed (1)


     {% endfor %}
-    <span class="more-options-placeholder"></span>
     {% if user.is_authenticated %}
         <input type='submit' name='createrepo' value='Create repository for {{user.username}}' />
     {% endif %}
 $(document).ready(function (){
         if ($(this).children('.form-row:not(.required, .errors)').hide().length) {
-            var elem = $('<a href="#" class="showmore" style="display:block;margin-bottom:12px;>Show more options</'+'a>').click(function(){
+            var elem = $('<a href="#" class="showmore" style="display:block;margin-bottom:12px;">Show more options</'+'a>').click(function(){
                 return false;
-            if ($(this).children('.more-options-placeholder')){
-                $(this).children('.more-options-placeholder').replaceWith(elem);
+            if ($(this).children("input[@type='submit']")){
+                $(this).children("input[@type='submit']").before(elem);
             } else {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.