mirror of
https://github.com/bodyrep/DemoApp.git
synced 2026-01-25 14:43:00 +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');
|
||||
}
|
||||
|
||||
@@ -7,23 +7,22 @@ a {
|
||||
color: #00B7FF;
|
||||
}
|
||||
|
||||
li {
|
||||
ul, menu, dir {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#sortable ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
|
||||
#sortable li {
|
||||
/*#sortable li {
|
||||
margin: 0 3px 3px 3px;
|
||||
padding: 0.4em;
|
||||
padding-left: 1.5em;
|
||||
height: 24px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
*/
|
||||
label {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
|
||||
Reference in New Issue
Block a user