Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing some english strings from the JS

  • Loading branch information...
commit c7c9c34dcc2b4a0a6dbf5893fc6dff4bd9e174e1 1 parent ceb387d
Adam Miller authored
View
1  .gitignore
@@ -1,6 +1,7 @@
*.py[co]
*.pot
*.mo
+*.DS_Store
ffenv
ff4/settings_local.py
View
14 ff4/templates/things/collage.html
@@ -22,6 +22,20 @@
{% block scripts %}
+ <div class="js-templates">
+ <div id="js-background-selector">
+ <div class="background-selector">{{ _('Pick a background') }}
+ <a class="up" href="#">{{ _('Up') }}</a>
+ <div class="slide-wrapper">
+ <ul></ul>
+ </div>
+ <a class="down" href="#">{{ _('Down') }}</a>
+ </div>
+ </div>
+ <div id="js-background-change-button">
+ <a class="change-background" href="#">{{ _('Change the Background?') }}</a>
+ </div>
+ </div>
<script type="text/javascript">
things.isCollageOwner = {% if is_owner %}true{% else %}false{% endif %};
View
12 static/js/collage.js
@@ -469,16 +469,8 @@ things.BackgroundSelector = function(bgData) {
}
function init() {
- buttonEl = $('<a class="change-background" href="#">Change the Background?</a>').appendTo('#header');
- selectEl = $('\
- <div class="background-selector">\
- Pick a background\
- <a class="up" href="#">Up</a>\
- <div class="slide-wrapper">\
- <ul></ul>\
- </div>\
- <a class="down" href="#">Down</a>\
- </div>').insertAfter(buttonEl).hide();
+ buttonEl = $('#js-background-change-buttom').children().clone().appendTo('#header');
+ selectEl = $('#js-background-selector' ).children().clone().insertAfter(buttonEl).hide();
var listEl = selectEl.find('.slide-wrapper ul');
for(var i = 0; i < backgroundData.length; i++) {
Please sign in to comment.
Something went wrong with that request. Please try again.