[extensions-web] extensions: Don't disable an extension on submit
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensions: Don't disable an extension on submit
- Date: Tue, 6 Dec 2011 03:01:30 +0000 (UTC)
commit 72ff22259b2154da4ee685a6fe6779889bac39c1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Dec 5 21:55:29 2011 -0500
extensions: Don't disable an extension on submit
We used to lock an extension's details so that it wouldn't be editable,
but this is too difficult and error-prone to do correctly, so just remove
the code that disables the editability of this
sweettooth/static/js/main.js | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index bf79f90..9de56cd 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -82,8 +82,6 @@ require(['jquery', 'messages', 'extensions',
type: 'POST' });
df.done(function() {
messages.addInfo("Your extension has been submitted.").hide().slideDown();
- $elem.attr('disabled', true);
- $('h3, p.description').csrfEditable('disable').removeClass('editable');
});
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]