Follow leaflet-storage rename

This commit is contained in:
Yohan Boniface 2012-12-12 18:15:02 +01:00
parent e4339ff9d4
commit 0ab9d471ff
5 changed files with 9 additions and 8 deletions

1
fabfile.py vendored
View file

@ -254,6 +254,7 @@ def collect_remote_statics():
'leaflet': "git://github.com/CloudMade/Leaflet.git", 'leaflet': "git://github.com/CloudMade/Leaflet.git",
'draw': "git://github.com/jacobtoye/Leaflet.draw.git", 'draw': "git://github.com/jacobtoye/Leaflet.draw.git",
'hash': "git://github.com/mlevans/leaflet-hash.git", 'hash': "git://github.com/mlevans/leaflet-hash.git",
'storage': 'git://github.com/yohanboniface/leaflet-storage.git',
} }
with cd(remote_static_dir): with cd(remote_static_dir):
for subdir, repository in remote_repositories.iteritems(): for subdir, repository in remote_repositories.iteritems():

View file

@ -41,7 +41,7 @@
{% block bottom_js %} {% block bottom_js %}
<script type="text/javascript"> <script type="text/javascript">
$(document).foundationAlerts(); $(document).foundationAlerts();
L.Chickpea.on('modal_ready', function (e) { L.Storage.on('modal_ready', function (e) {
var $div = $('#reveal-container'); var $div = $('#reveal-container');
// reset class // reset class
$div.attr("class", ""); $div.attr("class", "");
@ -53,13 +53,13 @@
$div.unbind('.reveal'); $div.unbind('.reveal');
return $div.empty().html(e.data.html).append('<a class="close-reveal-modal">&#215;</a>').reveal(); return $div.empty().html(e.data.html).append('<a class="close-reveal-modal">&#215;</a>').reveal();
}); });
L.Chickpea.on('modal_close', function (e) { L.Storage.on('modal_close', function (e) {
var $div = $('#reveal-container') var $div = $('#reveal-container')
if ($div) { if ($div) {
$div.trigger('reveal:close'); $div.trigger('reveal:close');
} }
}); });
L.Chickpea.on('alert', function (e) { L.Storage.on('alert', function (e) {
var level_class = e.level && e.level == "info"? "success": "alert"; var level_class = e.level && e.level == "info"? "success": "alert";
$div = $('<div>').addClass('alert-box global').addClass(level_class).html(e.content); $div = $('<div>').addClass('alert-box global').addClass(level_class).html(e.content);
$div.append('<a href="#" class="close">&times;</a>'); $div.append('<a href="#" class="close">&times;</a>');
@ -68,7 +68,7 @@
$('a.reveal').click(function(e) { $('a.reveal').click(function(e) {
e.preventDefault(); e.preventDefault();
var $this = $(this); var $this = $(this);
L.Util.Xhr.get($this.attr('href')); L.Storage.Xhr.get($this.attr('href'));
}); });
</script> </script>
{% endblock %} {% endblock %}

View file

@ -19,5 +19,5 @@
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
L.Util.Xhr.listen_form('map_edit'); L.Storage.Xhr.listen_form('map_edit');
</script> </script>

View file

@ -19,5 +19,5 @@
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
L.Util.Xhr.listen_form('map_edit'); L.Storage.Xhr.listen_form('map_edit');
</script> </script>

View file

@ -127,14 +127,14 @@
$('a.login_button').click(function (e) { $('a.login_button').click(function (e) {
e.preventDefault(); e.preventDefault();
var $this = $(this); var $this = $(this);
L.Util.Xhr.login({"login_required": $this.attr('href')}); L.Storage.Xhr.login({"login_required": $this.attr('href')});
}); });
}); });
$(document).ready(function(e){ $(document).ready(function(e){
$('a.logout_button').click(function (e) { $('a.logout_button').click(function (e) {
e.preventDefault(); e.preventDefault();
var $this = $(this); var $this = $(this);
L.Util.Xhr.logout($this.attr('href')); L.Storage.Xhr.logout($this.attr('href'));
}); });
}); });
</script> </script>