mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-26 07:01:38 +00:00
added basic sortable to workout creation
This commit is contained in:
@@ -37,8 +37,7 @@ $("#newexercise").validate({
|
||||
required: true,
|
||||
maxlength: 24
|
||||
},
|
||||
type: {
|
||||
notEqual: "notselected",
|
||||
keywords: {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -27,6 +27,9 @@ $(document).ready(function() {
|
||||
cancel: ':input, button' ,
|
||||
placeholder: "ui-state-highlight",
|
||||
revert: true,
|
||||
start: function(e, ui){
|
||||
ui.placeholder.height(ui.item.height());
|
||||
},
|
||||
stop: function(event, ui) {
|
||||
$('#newworkout').trigger('sortupdate');
|
||||
}
|
||||
@@ -78,6 +81,9 @@ $(document).ready(function() {
|
||||
cancel: ':input, button' ,
|
||||
placeholder: "ui-state-highlight",
|
||||
revert: true,
|
||||
start: function(e, ui){
|
||||
ui.placeholder.height(ui.item.height());
|
||||
},
|
||||
stop: function(event, ui) {
|
||||
$('#newworkout').trigger('sortupdate');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user