[extensions-web] Remove the document-ready handler for the local view
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Remove the document-ready handler for the local view
- Date: Mon, 14 Nov 2011 14:39:37 +0000 (UTC)
commit ef7e1b1becdd3c63eea24617cd1799aa0efe3edd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Nov 13 22:55:44 2011 -0500
Remove the document-ready handler for the local view
.../extensions/templates/extensions/local.html | 9 +--------
sweettooth/static/js/main.js | 6 +++++-
2 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/sweettooth/extensions/templates/extensions/local.html b/sweettooth/extensions/templates/extensions/local.html
index e6ccb97..4758e92 100644
--- a/sweettooth/extensions/templates/extensions/local.html
+++ b/sweettooth/extensions/templates/extensions/local.html
@@ -2,15 +2,8 @@
{% block title %}Installed Extensions — {{ block.super }}{% endblock %}
{% block body %}
<h2> Installed Extensions </h2>
-<div id="extensions">
+<div id="local_extensions">
</div>
{% endblock %}
-
-{% block document-ready %}
-require(['jquery', 'extensions'], function($) {
- $("#extensions").addLocalExtensions();
-});
-{% endblock %}
-
{% block navclass %}local{% endblock %}
diff --git a/sweettooth/static/js/main.js b/sweettooth/static/js/main.js
index af3fc00..76397b7 100644
--- a/sweettooth/static/js/main.js
+++ b/sweettooth/static/js/main.js
@@ -1,6 +1,8 @@
"use strict";
-require(['jquery', 'messages', 'jquery.cookie', 'jquery.jeditable', 'jquery.timeago'], function($, messages) {
+require(['jquery', 'messages',
+ 'jquery.cookie', 'jquery.jeditable',
+ 'jquery.timeago', 'extensions'], function($, messages) {
if (!$.ajaxSettings.headers)
$.ajaxSettings.headers = {};
@@ -87,6 +89,8 @@ require(['jquery', 'messages', 'jquery.cookie', 'jquery.jeditable', 'jquery.time
return false;
});
+ $('#local_extensions').addLocalExtensions();
+
if (window._SW)
try {
window._SW();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]