Permalink
Browse files

added support for forms

  • Loading branch information...
Daniel Kwiecinski
Daniel Kwiecinski committed Jul 11, 2009
1 parent bbb6d71 commit d150a2d815b3d0433cea02566843d7b519543207
Showing with 1,241 additions and 233 deletions.
  1. +1 −1 RakeFile
  2. +47 −0 css/style.css
  3. +1 −1 dist/vanadium-min.js
  4. +221 −84 dist/vanadium.js
  5. +643 −0 lib/jquery.form.js
  6. +25 −35 src/vanadium-base.js
  7. +8 −6 src/vanadium-element.js
  8. +105 −0 src/vanadium-form.js
  9. +51 −8 src/vanadium-hashmap.js
  10. +5 −3 src/vanadium-types.js
  11. +58 −0 src/vanadium-utils.js
  12. +32 −46 test-dev.html
  13. +32 −47 test.html
  14. +10 −0 test_submit.json
  15. +2 −2 user_exists.json
View
@@ -24,7 +24,7 @@ LP_VERSION = get_version_string
-SOURCE_LIST = file_list SRC, 'vanadium-hashmap.js', 'vanadium-jquery.js', 'vanadium-container.js', 'vanadium-base.js', 'vanadium-dom.js', 'vanadium-element.js', 'vanadium-instance.js', 'vanadium-types.js', 'vanadium-init.js'
+SOURCE_LIST = file_list SRC, 'vanadium-jquery.js', 'vanadium-hashmap.js', 'vanadium-container.js', 'vanadium-form.js', 'vanadium-base.js', 'vanadium-utils.js', 'vanadium-dom.js', 'vanadium-element.js', 'vanadium-instance.js', 'vanadium-types.js', 'vanadium-init.js'
DIST_LIST = file_list DIST, 'vanadium.js', 'README', 'LICENSE'
View
@@ -0,0 +1,47 @@
+ * {
+ margin: 10px;
+ }
+
+ div.vanadium-invalid {
+ border-color: #F00 !important;
+ border-style: solid !important;
+ }
+
+ div.vanadium-valid {
+ border-color: #0F0 !important;
+ border-style: solid !important;
+ }
+
+ .vanadium-message-value {
+ font-style: italic;
+ text-decoration: underline;
+ }
+
+ .vanadium-advice.vanadium-invalid, .vanadium-advice.vanadium-invalid * {
+ color: #F00;
+ }
+
+ div {
+ margin: 10px;
+ padding: 10px;
+ border-color: #00F;
+ border-style: solid;
+ }
+
+ input.vanadium-valid {
+ background-color: greenyellow;
+ }
+
+ #messages {
+ height: 70px;
+ padding: 0;
+ border-color: yellow;
+ }
+
+ /*TODO siblings*/
+ input.vanadium-valid
+
+ -
+ div {
+ display: block !important;
+ }
View

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit d150a2d

Please sign in to comment.