Fix for automatic group=true in Futon (2)
22 July 2009
22:30
as Diff
Now also works for all_docs
| 1 | Index: share/www/script/futon.browse.js |
|---|---|
| 2 | =================================================================== |
| 3 | --- share/www/script/futon.browse.js (revision 796895) |
| 4 | +++ share/www/script/futon.browse.js (working copy) |
| 5 | @@ -185,6 +185,7 @@ |
| 6 | .bind("textInput", updateDirtyState); |
| 7 | } |
| 8 | $("#language").change(updateDirtyState); |
| 9 | + page.updateDocumentListing(); |
| 10 | }); |
| 11 | $("#grouptruenotice").show(); |
| 12 | } else if (viewName == "_temp_view") { |
| 13 | @@ -194,6 +195,8 @@ |
| 14 | $.cookies.get(db.name + ".reduce", "") |
| 15 | ); |
| 16 | $("#grouptruenotice").show(); |
| 17 | + } else { |
| 18 | + page.updateDocumentListing(); |
| 19 | } |
| 20 | page.populateLanguagesMenu(); |
| 21 | if (this.isTempView) { |
| 22 | Index: share/www/database.html |
| 23 | =================================================================== |
| 24 | --- share/www/database.html (revision 796635) |
| 25 | +++ share/www/database.html (working copy) |
| 26 | @@ -78,9 +78,7 @@ |
| 27 | |
| 28 | page.populateViewsMenu(); |
| 29 | page.populateViewEditor(); |
| 30 | - if (!page.isTempView) { |
| 31 | - page.updateDocumentListing(); |
| 32 | - } else { |
| 33 | + if (page.isTempView) { |
| 34 | $("#viewcode").show().removeClass("collapsed").find("textarea")[0].focus(); |
| 35 | $("#documents").hide(); |
| 36 | } |
Comments
No comments so far.
