Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
hslbetto committed Nov 22, 2016
1 parent b11680b commit 7b96aff
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 53 deletions.
58 changes: 8 additions & 50 deletions dist/css/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,28 +57,12 @@
margin: 5px 0 10px 0;
}

input:hover:after + .hintHelp,
textarea:hover:after + .hintHelp,
select:hover:after + .hintHelp {
content: attr(title);
padding: 4px 8px;
color: #888;
position: absolute;
left: 0;
top: 100%;
white-space: wrap;
z-index: 20px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0px 0px 4px #222;
-webkit-box-shadow: 0px 0px 4px #222;
box-shadow: 0px 0px 4px #222;
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #dfdf),color-stop(1, #efefdf));
background-image: -webkit-linear-gradient(top, #dfdf, #efefdf);
background-image: -moz-linear-gradient(top, #dfdf, #efefdf);
background-image: -ms-linear-gradient(top, #dfdf, #efefdf);
background-image: -o-linear-gradient(top, #dfdf, #efefdf);
.form-help {
cursor: help;
}

.form-msg {
cursor: pointer;
}

#login .form-control {
Expand All @@ -91,28 +75,9 @@ select:hover:after + .hintHelp {
border-radius: 3px !important;
}

.input-group ul, .input-form ul {
list-style: none;
max-width: 400px;
min-width: 250px;
padding: 4px 8px;
.input-group ul.input-message, .input-form ul.input-message {
padding: 0px 10px;
color: #b03535;
position: absolute;
left: 3%;
top: 100%;
white-space: wrap;
z-index: 20px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0px 0px 4px #222;
-webkit-box-shadow: 0px 0px 4px #222;
box-shadow: 0px 0px 4px #222;
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #fff),color-stop(1, #efefdf));
background-image: -webkit-linear-gradient(top, #fff, #efefdf);
background-image: -moz-linear-gradient(top, #fff, #efefdf);
background-image: -ms-linear-gradient(top, #fff, #efefdf);
background-image: -o-linear-gradient(top, #fff, #efefdf);
}

#login .input-group ul, #login .input-form ul {
Expand All @@ -138,13 +103,6 @@ select:hover:after + .hintHelp {
top:60%;
}

input:required + .requiredMark::after,
textarea:required + .requiredMark::after,
select:required + .requiredMark::after {
content: "*";
color: #b03535;
}

input:focus:invalid,
textarea:focus:invalid,
select:focus:invalid {
Expand Down
7 changes: 6 additions & 1 deletion dist/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,12 @@ $(document).ready(function() {
if($('#push').length)
{
$(this).debug('stop push');
managerPush.close();

if (managerPush != null)
{
managerPush.close();
}

managerPush = null;
}
});
Expand Down
7 changes: 5 additions & 2 deletions dist/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
*/

$(document).ready(function() {
$('[data-toggle="popover"]').popover();
$('[data-toggle="tooltip"]').tooltip()

$("#generatePasswordBtn").unbind('click').bind('click', function() {

$.ajaxSetup({async:true});
Expand Down Expand Up @@ -136,10 +139,10 @@ $(document).ready(function() {
$("input[type=submit], button[type=submit]").unbind('click').bind('click', function() {
if ($('form').attr('novalidate') != 'novalidate')
{
$(this).addClass('disabled');
$(this).button('loading');

if (!$('form').checkValidate()) {
$(this).removeClass('disabled');
$(this).button('reset');
}
}
});
Expand Down

0 comments on commit 7b96aff

Please sign in to comment.