Closes #193 - inline components work

This commit is contained in:
James Brooks
2015-01-01 14:09:14 +00:00
parent fa6bbd52fd
commit 47a3702c98
4 changed files with 87 additions and 67 deletions

View File

@@ -71,6 +71,7 @@ $(function() {
// Sortable components.
var componentList = document.getElementById("component-list");
if (componentList) {
new Sortable(componentList, {
group: "omega",
handle: ".drag-handle",
@@ -94,6 +95,7 @@ $(function() {
});
}
});
}
// Toggle inline component statuses.
$('form.component-inline').on('click', 'input[type=radio]', function() {

View File

@@ -12433,6 +12433,7 @@ $(function() {
// Sortable components.
var componentList = document.getElementById("component-list");
if (componentList) {
new Sortable(componentList, {
group: "omega",
handle: ".drag-handle",
@@ -12456,6 +12457,7 @@ $(function() {
});
}
});
}
// Toggle inline component statuses.
$('form.component-inline').on('click', 'input[type=radio]', function() {
@@ -12475,4 +12477,11 @@ $(function() {
}
});
});
// Banner removal JS
$('#remove-banner').click(function(){
$('#banner-view').remove();
$('input[name=remove_banner]').val('1');
$('#settings-form').submit();
});
});

View File

@@ -12433,6 +12433,7 @@ $(function() {
// Sortable components.
var componentList = document.getElementById("component-list");
if (componentList) {
new Sortable(componentList, {
group: "omega",
handle: ".drag-handle",
@@ -12456,6 +12457,7 @@ $(function() {
});
}
});
}
// Toggle inline component statuses.
$('form.component-inline').on('click', 'input[type=radio]', function() {
@@ -12475,4 +12477,11 @@ $(function() {
}
});
});
// Banner removal JS
$('#remove-banner').click(function(){
$('#banner-view').remove();
$('input[name=remove_banner]').val('1');
$('#settings-form').submit();
});
});

View File

@@ -1,4 +1,4 @@
{
"css/all.css": "css/all-c5b65085.css",
"js/all.js": "js/all-337c2216.js"
"js/all.js": "js/all-215df44c.js"
}