Skip to content

Commit

Permalink
Fix issue with nestedSortable
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Vetter committed Jul 25, 2013
1 parent ab5a0a3 commit 6ecb5dc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion fancypages/static/fancypages/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fancypages.editor = {

initialiseEventsOnPageContent: function () {
// Add a new tab to the selected tabbed block block
$(document).on('click', 'a[data-behaviours~=add-tab]', fancypages.eventHandlers.addNewTag);
$(document).on('click', 'a[data-behaviours~=add-tab]', fancypages.eventHandlers.addNewTab);
//load the form to select a new block to add to the container
//and display it in a modal
$("a[data-behaviours~=load-modal]").click(fancypages.eventHandlers.loadModal);
Expand Down
2 changes: 1 addition & 1 deletion fancypages/static/fancypages/js/event-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fancypages.eventHandlers = {
xhr.setRequestHeader("X-CSRFToken", fancypages.getCsrfToken());
},
success: function (data) {
parent.fancypages.editor.reloadPreview();
parent.fancypages.editor.reloadPage();
},
error: function () {
parent.fancypages.utils.messages.error(
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion fancypages/templates/fancypages/dashboard/page_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ <h1>{% trans "Page Management" %}</h1>

{% block extrascripts %}
{{ block.super }}
<script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
{% compress js %}
<script type="text/javascript" src="{% static "fancypages/libs/jquery-ui-1.10.1.custom.min.js" %}"></script>
<script type="text/javascript" src="{% static "fancypages/libs/jquery.mjs.nestedSortable.js" %}"></script>
{% endcompress %}
{% endblock %}
Expand Down

0 comments on commit 6ecb5dc

Please sign in to comment.