Skip to content

Commit

Permalink
fix the remote css and js urls in demo/date.html and tab.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkni committed Jul 30, 2014
1 parent b81a66f commit 6115ea2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
21 changes: 18 additions & 3 deletions demo/date.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<script type="text/javascript" src="../dist/js/bootstrapValidator.js"></script>

<!-- Support datetime picker plugin: http://eonasdan.github.io/bootstrap-datetimepicker/ -->
<link rel="stylesheet" href="//eonasdan.github.io/bootstrap-datetimepicker/content/bootstrap-datetimepicker.css"/>
<script type="text/javascript" src="//eonasdan.github.io/bootstrap-datetimepicker/scripts/moment.js"></script>
<script type="text/javascript" src="//eonasdan.github.io/bootstrap-datetimepicker/scripts/bootstrap-datetimepicker.js"></script>
<link rel="stylesheet" href="http://eonasdan.github.io/bootstrap-datetimepicker/content/bootstrap-datetimepicker.css"/>
<script type="text/javascript" src="http://eonasdan.github.io/bootstrap-datetimepicker/scripts/moment.js"></script>
<script type="text/javascript" src="http://eonasdan.github.io/bootstrap-datetimepicker/scripts/bootstrap-datetimepicker.js"></script>

<style type="text/css">
/* Override to make the feedback icons shown properly */
Expand Down Expand Up @@ -110,20 +110,29 @@ <h2>Date validator</h2>
fields: {
monthDayYear: {
validators: {
notEmpty: {
message: 'The date is required and cannot be empty'
},
date: {
format: 'MM/DD/YYYY'
}
}
},
yearDayMonth: {
validators: {
notEmpty: {
message: 'The date is required and cannot be empty'
},
date: {
format: 'YYYY-DD-MM'
}
}
},
yearMonthDay: {
validators: {
notEmpty: {
message: 'The date is required and cannot be empty'
},
date: {
format: 'YYYY.MM.DD',
separator: '.'
Expand All @@ -132,13 +141,19 @@ <h2>Date validator</h2>
},
monthDayYearTime: {
validators: {
notEmpty: {
message: 'The date is required and cannot be empty'
},
date: {
format: 'MM/DD/YYYY h:m A'
}
}
},
yearDayMonthTime: {
validators: {
notEmpty: {
message: 'The date is required and cannot be empty'
},
date: {
format: 'YYYY-DD-MM h:m A'
}
Expand Down
16 changes: 15 additions & 1 deletion demo/tab.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<link rel="stylesheet" href="../vendor/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="../dist/css/bootstrapValidator.css"/>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" />
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" />

<script type="text/javascript" src="../vendor/jquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../vendor/bootstrap/js/bootstrap.min.js"></script>
Expand Down Expand Up @@ -114,6 +114,13 @@ <h2>Tab example</h2>
}
}
},
jobTitle: {
validators: {
notEmpty: {
message: 'The company name is required'
}
}
},
address: {
validators: {
notEmpty: {
Expand All @@ -127,6 +134,13 @@ <h2>Tab example</h2>
message: 'The city is required'
}
}
},
country: {
validators: {
notEmpty: {
message: 'The city is required'
}
}
}
}
})
Expand Down

0 comments on commit 6115ea2

Please sign in to comment.