Skip to content

Commit

Permalink
Added option that display errors as inline
Browse files Browse the repository at this point in the history
  • Loading branch information
hsnaydd committed Feb 16, 2014
1 parent d56eb79 commit ea218cf
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 49 deletions.
3 changes: 3 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
realTime : true
});
$('#exm2').validetta({
display : 'inline',
errorClass : 'validetta-inline',
errorClose : false,
ajax : {
call : true,
type : 'POST',
Expand Down
4 changes: 2 additions & 2 deletions validetta-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions validetta.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.validetta-error{display:block; font:12px/14px Arial, Helvetica, sans-serif; position:absolute; background-color:#CD2E26; max-width:325px; border-radius:5px; color:white; padding:5px 12px;}
.validetta-error:before{content:''; display:block; position:absolute; top:7px; left:-5px; width:0px; height:0px; border-right:5px solid #CD2E26; border-bottom: 5px solid transparent; border-top:5px solid transparent; }
.validetta-errorClose{display:block; cursor:pointer; position:absolute; top:-1px; right:3px; color:white; font-weight:bold;}
.validetta-bubble { position:absolute; background-color:#CD2E26; max-width:325px; border-radius:5px; color:white; padding:5px 12px; }
.validetta-bubble:before { content:''; display:block; position:absolute; top:7px; left:-5px; width:0; height:0; border-right:5px solid #CD2E26; border-bottom: 5px solid transparent; border-top:5px solid transparent; }
.validetta-bubbleClose { display:block; cursor:pointer; position:absolute; top:-1px; right:3px; color:white; font-weight:bold; }
.validetta-inline, .validetta-bubble { display:block; font:12px/14px Arial, Helvetica, sans-serif; }
.validetta-inline { color:#CD2E26; }
4 changes: 2 additions & 2 deletions validetta.jquery.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name" : "validetta",
"version" : "0.8.0",
"version" : "0.9.0",
"title" : "Validetta - A tiny jquery plugin for validate your forms",
"description" : "Validetta is a tiny jQuery plugin which you can do client-side validation of your forms. It aims to decrease your burden with easy usage and flexible structure.",
"keywords" : ["validetta", "form", "forms", "jquery", "javascript", "validation", "validate"],
"homepage" : "http://lab.hasanaydogdu.com/validetta/",
"docs" : "http://lab.hasanaydogdu.com/validetta/",
"demo" : "http://lab.hasanaydogdu.com/validetta/#examples",
"bugs" : "http://github.com/hsnayd/validetta/issues",
"download" : "http://github.com/hsnayd/validetta/archive/v0.8.0.zip",
"download" : "http://github.com/hsnayd/validetta/archive/v0.9.0.zip",
"author" : {
"name": "Hasan Aydoğdu",
"url" : "http://github.com/hsnayd"
Expand Down
Loading

0 comments on commit ea218cf

Please sign in to comment.