Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

143 ui improvements #94

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/views/dataview/widgetSpecTable.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,10 @@

function setWidgetRowClickable(row) {
row.css('cursor', 'pointer');
row.dblclick(function (event) {
showEditModal($(this))
row.click(function (event) {
if (event.target === this || [...this.children].includes(event.target)) {
showEditModal($(this))
}
});
}

Expand Down
8 changes: 4 additions & 4 deletions public/javascripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ function populateTypeahead(element, source, displayFun, suggestionFun, updateVal
element.typeahead({
hint: true,
highlight: true,
minLength: 0
minLength: 2
sherzinger marked this conversation as resolved.
Show resolved Hide resolved
}, {
source: source,
display: displayFun,
templates: {
suggestion: suggestionFun
},
limit: 25
limit: 100
});

element.on("focus", function () {
Expand Down Expand Up @@ -636,10 +636,10 @@ function loadNewTableContent(element, url, data, callType) {

function activateRowClickable() {
$(function() {
$(".clickable-row").dblclick(function () {
$(".clickable-row").click(function () {
window.document.location = $(this).data("href");
});
$(".no-rowClicked").dblclick(function (event) {
$(".no-rowClicked").click(function (event) {
event.stopPropagation();
});
});
Expand Down
7 changes: 7 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -637,4 +637,11 @@ a.carousel-control.right{
.alert-very-light {
background-color: #f5f5f5;
padding-bottom: 0px;
}

.glyphicon-chevron-down > a,.glyphicon-chevron-up > a {
font-family: "Ubuntu",Tahoma,"Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
font-weight: bold;
color: #2c8d3a;
}
5 changes: 3 additions & 2 deletions public/stylesheets/typeahead.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@

.tt-menu {
width: 300px;
max-height: 155px;
overflow-y: auto;
margin: 12px 0;
padding: 8px 0;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
Expand Down Expand Up @@ -65,4 +66,4 @@

.tt-suggestion p {
margin: 0;
}
}