Create childscope only when required and destroy it after use. https://github.com/openstf/stf/issues/124

This commit is contained in:
Vishal Banthia
2015-11-14 00:17:37 +09:00
parent 466890777d
commit 3f32cee984
4 changed files with 142 additions and 56 deletions

View File

@@ -1,17 +1,52 @@
a.editable-click {
text-decoration: none;
color: #167FFC;
border-bottom: none;
/*
Currently angular-xeditable does not support popover
This is a work around to make angular-xeditable look like
popover
*/
.xeditable-wrapper {
position: relative;
}
a.editable-click:hover {
color: #808080;
.xeditable-wrapper form {
background: #FFF;
border: 1px solid #AAA;
border-radius: 5px;
display: inline-block;
left: 50%;
margin-left: -190px;
padding: 7px;
position: absolute;
top: -55px;
width: 380px;
z-index: 101;
}
a.editable-empty {
color: transparent;
.xeditable-wrapper form:before {
content: '';
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #AAA;
position: absolute;
bottom: -10px;
left: 190px;
}
a.editable-empty:focus {
color: #808080;
.xeditable-wrapper form:after {
content: '';
width: 0;
height: 0;
border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-top: 9px solid #FFF;
position: absolute;
bottom: -9px;
left: 191px;
}
.xeditable-wrapper .editable-buttons .btn {
margin-left: 6px !important;
cursor: pointer;
}