2 Commits
0.7 ... 0.7.1

Author SHA1 Message Date
Matt Good
d87e7fc347 Fix version number in docs 2012-05-19 18:22:18 -07:00
Matt Good
80eb747816 Release 0.7.1 to fix the in-place loading of the template editor 2012-05-18 18:20:28 -07:00
5 changed files with 21 additions and 14 deletions

View File

@@ -1,6 +1,14 @@
Changes
=======
0.7.1 (2012-05-18)
------------------
Fixes:
- loading template editor in-place over current page
0.7 (2012-05-18)
----------------

View File

@@ -48,9 +48,9 @@ copyright = u'2012, Matt Good'
# built documents.
#
# The short X.Y version.
version = '0.6'
version = '0.7'
# The full version, including alpha/beta/rc tags.
release = '0.6.1'
release = '0.7.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@@ -175,10 +175,19 @@
var uarr = String.fromCharCode(0x25b6);
var darr = String.fromCharCode(0x25bc);
elem.html(elem.html() == uarr ? darr : uarr);
},
load_href: function(href) {
$.get(href, function(data, status, xhr) {
document.open();
document.write(xhr.responseText);
document.close();
});
return false;
}
};
$(document).ready(function() {
fldt.init();
});
window.fldt = fldt;
})(jQuery.noConflict(true));

View File

@@ -1,16 +1,6 @@
{% if templates %}
{% if editable %}
<script>
function loadHref() {
$.get(this.href, function(data, status, xhr) {
document.open();
document.write(xhr.responseText);
document.close();
});
return false;
}
</script>
<a href="/_debug_toolbar/views/template/{{ key }}" onclick="return loadHref.apply(this);">Edit templates</a>
<a href="/_debug_toolbar/views/template/{{ key }}" onclick="return fldt.load_href(this.href);">Edit templates</a>
{% endif %}
{% for template in templates %}
<h4>{{ template.template.name }}</h4>

View File

@@ -14,7 +14,7 @@ except:
setup(
name='Flask-DebugToolbar',
version='0.7',
version='0.7.1',
url='http://github.com/mgood/flask-debugtoolbar',
license='BSD',
author='Michael van Tellingen',