[extensions-web] Allow editing the extension URL
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Allow editing the extension URL
- Date: Fri, 25 Nov 2011 01:12:07 +0000 (UTC)
commit f2b6e5d9882dcff7bdef3582b1758554e5aa22a8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Nov 24 00:19:40 2011 -0500
Allow editing the extension URL
.../extensions/templates/extensions/detail.html | 2 +-
.../templates/extensions/detail_edit.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/detail.html b/sweettooth/extensions/templates/extensions/detail.html
index 8c4aacd..4f5fb08 100644
--- a/sweettooth/extensions/templates/extensions/detail.html
+++ b/sweettooth/extensions/templates/extensions/detail.html
@@ -52,7 +52,7 @@
<dl>
{% if extension.url %}
<dt>Extension Homepage</dt>
- <dd><a href="{{ extension.url }}">{{ extension.url }}</a></dd>
+ <dd><a href="{{ extension.url }}" id="extension_url">{{ extension.url }}</a></dd>
{% endif %}
</dl>
diff --git a/sweettooth/extensions/templates/extensions/detail_edit.html b/sweettooth/extensions/templates/extensions/detail_edit.html
index 70305e3..c10ff93 100644
--- a/sweettooth/extensions/templates/extensions/detail_edit.html
+++ b/sweettooth/extensions/templates/extensions/detail_edit.html
@@ -72,7 +72,7 @@
{% endblock %}
{% block document-ready %}{{ block.super }}
- $("h3, p.description").csrfEditable("{% url extensions-ajax-inline pk=extension.pk %}");
+ $("#extension_name, #extension_description, #extension_url").csrfEditable("{% url extensions-ajax-inline pk=extension.pk %}");
require(['uploader'], function() {
$(".screenshot.upload").uploadify("{% url extensions-ajax-screenshot pk=extension.pk %}?geometry=300x200");
$(".icon.upload").uploadify("{% url extensions-ajax-icon pk=extension.pk %}");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]