Skip to content

Commit

Permalink
Merge pull request #15 from YetiForceCompany/developer
Browse files Browse the repository at this point in the history
Developer
  • Loading branch information
mariuszkrzaczkowski authored Aug 24, 2018
2 parents ee45bb0 + 26a0d48 commit 0b7ddee
Show file tree
Hide file tree
Showing 11 changed files with 2,133 additions and 266 deletions.
133 changes: 132 additions & 1 deletion plugins/yetiforce/preview.css
Original file line number Diff line number Diff line change
@@ -1 +1,132 @@
.pull-right{float:right !important}#ytActionBarContent select{padding:0}#ytActionBarContent .col{padding-left:4px}#ytActionBarContent .col-3{width:25%;min-height:1px;float:left;position:relative}#ytActionBarContent .row:before{display:table;content:" "}#ytActionBarContent .row:after{clear:both;display:table;content:" "}#ytActionBarContent .ytHeader{position:relative;border-bottom:1px solid #69a3cb}#ytActionBarContent .head{color:#fff;background-color:#4979aa;height:20px;padding-top:2px}#ytActionBarContent .data{color:#000;background:#ecf6ff}#ytActionBarContent .rowReletedRecord .rowActions{display:none}#ytActionBarContent .rowReletedRecord:hover .rowActions{display:block}#ytActionBarContent .noRecords{background:#70a8cb;text-align:center;color:#fff;padding:2px 0}#ytActionBarContent .noRecords a.importMail{color:#ecf6ff;cursor:pointer;font-weight:800}#ytActionBarContent .rowReletedRecord{margin:3px 0 6px 0}#ytActionBarContent .rowReletedRecord{margin:3px 0 6px 0}#ytActionBarContent .pull-right button{line-height:11px;margin-left:3px;padding:0 6px;height:14px}#ytActionBarContent .head .pull-right button{height:18px}#ytActionBarContent .pull-right button .glyphicon{top:0}#ytActionBarContent .data a{text-decoration:none;color:#000;font-size:14px;line-height:14px}#ytActionBarContent .relatedModuleIcon{margin-right:5px}
.pull-right {
float: right !important
}

#ytActionBarContent select {
padding: 0
}

#ytActionBarContent .row:before {
display: table;
content: " "
}

#ytActionBarContent .row:after {
clear: both;
display: table;
content: " "
}

#ytActionBarContent .ytHeader {
position: relative;
border-bottom: 1px solid #dfdfdf;
}

#ytActionBarContent .rowReletedRecord .rowActions {
display: none
}

#ytActionBarContent .rowReletedRecord:hover .rowActions {
display: block
}

#ytActionBarContent .noRecords {
background: #70a8cb;
text-align: center;
color: #fff;
padding: 2px 0
}

#ytActionBarContent .noRecords a.importMail {
color: #ecf6ff;
cursor: pointer;
font-weight: 800
}

#ytActionBarContent .rowReletedRecord {
margin: 3px 0 6px 0
}

#ytActionBarContent .rowReletedRecord {
margin: 3px 0 6px 0
}

#ytActionBarContent .pull-right button {
line-height: 10px;
margin-left: 3px;
padding: 0 6px;
height: 14px
}

#ytActionBarContent .relatedModuleIcon {
margin-right: 5px
}

#messageheader.previewheader {
padding: 0 0 3px 30px;
}

.rcmaddcontact {
display: none;
}

.mr-5px {
margin-right: 5px;
}

.ml-5px {
margin-left: 5px;
}

.w-100 {
width: 100%;
}

.flex-wrap {
display: flex;
flex-wrap: wrap;
}

.rowRelatedRecord {
padding: 2px;
}

.action-bar__head__container {
display: flex;
flex-wrap: nowrap;
}

.action-bar__data a {
text-decoration: none;
color: #000;
font-size: 14px;
line-height: 14px
}

.action-bar__header {
font-size: 14px;
min-width: 90px;
}

.action-bar__head {
background-color: #4a5364;
height: 20px;
color: #fff;
padding: 2px;
}

.action-bar__col {
width: 100%;
}

@media only screen and (min-width: 600px) {
#ytActionBarContent .action-bar__col {
width: 50%;
}
}

@media only screen and (min-width: 1200px) {
#ytActionBarContent .action-bar__col {
width: 25%;
}
}
14 changes: 8 additions & 6 deletions plugins/yetiforce/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function registerEvents(content) {
registerRemoveRecord(content);
registerImportMail(content);

var block = content.find('.ytHeader .data');
var block = content.find('.ytHeader .js-data');
content.find('.hideBtn').click(function () {
var button = $(this);
var icon = button.find('.glyphicon');
Expand Down Expand Up @@ -102,7 +102,7 @@ function registerSelectRecord(content) {
mailId: id
};
if ($(this).data('type') == 0) {
var module = $(this).closest('.col').find('.module').val();
var module = $(this).closest('.js-head-container').find('.module').val();
} else {
var module = $(this).data('module');
relParams.crmid = $(this).closest('.rowRelatedRecord').data('id');
Expand Down Expand Up @@ -130,7 +130,7 @@ function registerAddReletedRecord(content) {
function registerAddRecord(content) {
var id = content.find('#mailActionBarID').val();
content.find('button.addRecord').click(function (e) {
var col = $(e.currentTarget).closest('.col');
var col = $(e.currentTarget).closest('.js-head-container');
showQuickCreateForm(col.find('.module').val(), id);
});
}
Expand Down Expand Up @@ -272,12 +272,14 @@ function showQuickCreateForm(moduleName, record, params) {
}

function getCrmWindow() {
if (opener !== null) {
if (opener !== null && opener.parent.CONFIG == "object") {
return opener.parent;
} else if (typeof parent.app == "object") {
} else if (typeof parent.CONFIG == "object") {
return parent;
} else if (typeof parent.parent.app == "object") {
} else if (typeof parent.parent.CONFIG == "object") {
return parent.parent;
} else if (typeof opener.crm.CONFIG == "object") {
return opener.crm;
}
return false;
}
158 changes: 104 additions & 54 deletions plugins/yetiforce/preview.min.css
Original file line number Diff line number Diff line change
@@ -1,82 +1,132 @@
.pull-right{
float: right!important;
.pull-right {
float: right !important
}
#ytActionBarContent select{
padding: 0;

#ytActionBarContent select {
padding: 0
}
#ytActionBarContent .col{
padding-left: 4px;
}
#ytActionBarContent .col-3{
width: 25%;
min-height: 1px;
float: left;
position: relative;
}
#ytActionBarContent .row:before{

#ytActionBarContent .row:before {
display: table;
content: " ";
content: " "
}

#ytActionBarContent .row:after {
clear: both;
clear: both;
display: table;
content: " ";
content: " "
}
#ytActionBarContent .ytHeader{

#ytActionBarContent .ytHeader {
position: relative;
border-bottom: 1px solid #69a3cb;
border-bottom: 1px solid #dfdfdf;
}
#ytActionBarContent .head{
color: #fff;
background-color: #4979aa;
height: 20px;
padding-top: 2px;

#ytActionBarContent .rowReletedRecord .rowActions {
display: none
}
#ytActionBarContent .data{
color: #000;
background: #ecf6ff;

#ytActionBarContent .rowReletedRecord:hover .rowActions {
display: block
}
#ytActionBarContent .rowReletedRecord .rowActions{
display: none;
}
#ytActionBarContent .rowReletedRecord:hover .rowActions{
display: block;
}
#ytActionBarContent .noRecords{

#ytActionBarContent .noRecords {
background: #70a8cb;
text-align: center;
color: #fff;
padding: 2px 0px;
padding: 2px 0
}
#ytActionBarContent .noRecords a.importMail{

#ytActionBarContent .noRecords a.importMail {
color: #ecf6ff;
cursor: pointer;
font-weight: 800;
font-weight: 800
}
#ytActionBarContent .rowReletedRecord{
margin: 3px 0 6px 0;

#ytActionBarContent .rowReletedRecord {
margin: 3px 0 6px 0
}
#ytActionBarContent .rowReletedRecord{
margin: 3px 0 6px 0;

#ytActionBarContent .rowReletedRecord {
margin: 3px 0 6px 0
}
#ytActionBarContent .pull-right button{
line-height: 11px;

#ytActionBarContent .pull-right button {
line-height: 10px;
margin-left: 3px;
padding: 0px 6px;
height: 14px;
padding: 0 6px;
height: 14px
}

#ytActionBarContent .relatedModuleIcon {
margin-right: 5px
}

#messageheader.previewheader {
padding: 0 0 3px 30px;
}
#ytActionBarContent .head .pull-right button{
height: 18px;

.rcmaddcontact {
display: none;
}

.mr-5px {
margin-right: 5px;
}

.ml-5px {
margin-left: 5px;
}

.w-100 {
width: 100%;
}

.flex-wrap {
display: flex;
flex-wrap: wrap;
}
#ytActionBarContent .pull-right button .glyphicon{
top: 0;

.rowRelatedRecord {
padding: 2px;
}
#ytActionBarContent .data a{

.action-bar__head__container {
display: flex;
flex-wrap: nowrap;
}

.action-bar__data a {
text-decoration: none;
color: #000;
font-size: 14px;
line-height: 14px;
font-size: 14px;
line-height: 14px
}
#ytActionBarContent .relatedModuleIcon{
margin-right: 5px;

.action-bar__header {
font-size: 14px;
min-width: 90px;
}

.action-bar__head {
background-color: #4a5364;
height: 20px;
color: #fff;
padding: 2px;
}

.action-bar__col {
width: 100%;
}

@media only screen and (min-width: 600px) {
#ytActionBarContent .action-bar__col {
width: 50%;
}
}

@media only screen and (min-width: 1200px) {
#ytActionBarContent .action-bar__col {
width: 25%;
}
}
1 change: 0 additions & 1 deletion skins/yetiforce/includes/links.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<roundcube:if condition="in_array(env:task, array('mail','settings'))" />
<link rel="stylesheet" type="text/css" href="/../larry/<roundcube:var name="env:task" />.css" />
<roundcube:endif />
<!--[if IE 9]><link rel="stylesheet" type="text/css" href="/../larry/svggradients.css" /><![endif]-->
<link rel="stylesheet" type="text/css" href="/yetiforce.css" />
<script type="text/javascript" src="/ui.js"></script>
<roundcube:add_label name="errortitle" />
Expand Down
Loading

0 comments on commit 0b7ddee

Please sign in to comment.