themengruppeverwalten
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
alert('sd<%= escape_javascript(@params['themen'].to_s) %>');
|
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<ul id="themen" class="sort" >
|
<ul id="themen" class="sort" >
|
||||||
<% @themen.each do |thema| %>
|
<% @themen.each do |thema| %>
|
||||||
<li id="themen_<%= thema.id %>" class="sort" style="background:white;display:block;" ><%= thema.title %>-<%= thema.priority %></li>
|
<li id="themen_<%= thema.id %>" class="sort" ><div class="contentbox" ><h2><%= thema.title %></h2> </div></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -19,13 +19,14 @@ $( document ).ready(function(){
|
|||||||
url: '<%= themengruppe_sort_themen_path(@themengruppe) %>',
|
url: '<%= themengruppe_sort_themen_path(@themengruppe) %>',
|
||||||
type: 'post',
|
type: 'post',
|
||||||
data: $('#themen').sortable('serialize'),
|
data: $('#themen').sortable('serialize'),
|
||||||
|
handle: ".contentbox",
|
||||||
dataType: 'script',
|
dataType: 'script',
|
||||||
complete: function(request){
|
complete: function(request){
|
||||||
alert("complete");
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user