Permalink
Browse files

upgraded scripts, adding in sorting functionality

  • Loading branch information...
viveleroi committed Jul 20, 2010
1 parent 4385598 commit 9fa0def8a0d6a8b8828e2979f500362b426f7287
Showing with 287 additions and 7 deletions.
  1. +1 −0 .gitignore
  2. +7 −4 index.html
  3. +154 −0 js/jquery-1.4.2.min.js
  4. +122 −0 js/jquery-ui-1.8.2.custom.min.js
  5. +3 −3 js/jquery.scrollTo-min.js
View
@@ -1,3 +1,4 @@
.DS_Store
*.tmproj
nbproject
+.ftpssh_settings
View
@@ -5,7 +5,8 @@
<title>jQuery FormBuilder Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
+ <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
+ <script type="text/javascript" src="js/jquery-ui-1.8.2.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.scrollTo-min.js"></script>
<script type="text/javascript" src="js/jquery.formbuilder.js"></script>
<script type="text/javascript">
@@ -14,15 +15,17 @@
'save_url': 'example-save.php',
'load_url': 'example-load.php'
});
+ $(function() {
+ $("#form-wrap ul").sortable({ opacity: 0.6, cursor: 'move'});
+ });
});
</script>
-
<style type="text/css">
/* Demo css for jQuery form builder plugin */
a, body { font-family: "Tahoma", "Verdana", sans-serif; font-size: 12px; }
#form-wrap { width: 600px; }
- #form-builder li { background-color: #CFCFCF; margin-bottom: 5px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
- #form-builder .legend { padding: 5px;}
+ #form-builder li { list-style: none; background-color: #CFCFCF; margin-bottom: 5px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
+ #form-builder .legend { padding: 5px; cursor: move;}
.field_control { margin-left: 40px; }
.frm-elements { background-color: rgba(255,255,255,0.70); margin: 0 4px 4px 4px; padding: 9px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
.frm-elements label { width: 120px; float: left; margin: 0 15px; line-height: 24px; }
Oops, something went wrong.

0 comments on commit 9fa0def

Please sign in to comment.