Made the recon service list collapsible to have more space for services
configuration
This commit is contained in:
parent
f69f4b0c80
commit
505857fc11
BIN
main/webapp/modules/core/images/menu-opener.png
Normal file
BIN
main/webapp/modules/core/images/menu-opener.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 337 B |
@ -364,7 +364,8 @@
|
|||||||
"fb-key": "a Freebase key in",
|
"fb-key": "a Freebase key in",
|
||||||
"fb-en-ns": "the Wikipedia English namespace",
|
"fb-en-ns": "the Wikipedia English namespace",
|
||||||
"this-ns": "this namespace:",
|
"this-ns": "this namespace:",
|
||||||
"max-candidates" : "Maximum number of candidates to return"
|
"max-candidates" : "Maximum number of candidates to return",
|
||||||
|
"service-title": "Services"
|
||||||
},
|
},
|
||||||
"core-util-enc": {
|
"core-util-enc": {
|
||||||
"select-enc": "Select Encoding",
|
"select-enc": "Select Encoding",
|
||||||
|
@ -364,8 +364,8 @@
|
|||||||
"fb-key": "a Freebase key in",
|
"fb-key": "a Freebase key in",
|
||||||
"fb-en-ns": "the Wikipedia English namespace",
|
"fb-en-ns": "the Wikipedia English namespace",
|
||||||
"this-ns": "this namespace:",
|
"this-ns": "this namespace:",
|
||||||
"max-candidates" : "Maximum number of candidates to return"
|
"max-candidates" : "Maximum number of candidates to return",
|
||||||
|
"service-title": "Services"
|
||||||
},
|
},
|
||||||
"core-util-enc": {
|
"core-util-enc": {
|
||||||
"select-enc": "Select Encoding",
|
"select-enc": "Select Encoding",
|
||||||
|
@ -365,6 +365,7 @@
|
|||||||
"fb-en-ns": "namespace di Wikipedia inglese",
|
"fb-en-ns": "namespace di Wikipedia inglese",
|
||||||
"this-ns": "questo namespace:",
|
"this-ns": "questo namespace:",
|
||||||
"max-candidates" : "Maximum number of candidates to return [TODO - translate]",
|
"max-candidates" : "Maximum number of candidates to return [TODO - translate]",
|
||||||
|
"service-title": "Servizi"
|
||||||
},
|
},
|
||||||
"core-util-enc": {
|
"core-util-enc": {
|
||||||
"select-enc": "Seleziona la codifica",
|
"select-enc": "Seleziona la codifica",
|
||||||
|
@ -3,7 +3,13 @@
|
|||||||
<div class="dialog-body" bind="dialogBody">
|
<div class="dialog-body" bind="dialogBody">
|
||||||
<div class="grid-layout layout-normal layout-full grid-layout-for-ui">
|
<div class="grid-layout layout-normal layout-full grid-layout-for-ui">
|
||||||
<div class="recon-dialog-service">
|
<div class="recon-dialog-service">
|
||||||
<div class="recon-dialog-service-list" bind="serviceList"></div>
|
<div class="recon-dialog-service-list-container">
|
||||||
|
<div class="recon-dialog-service-opener">
|
||||||
|
<div class="recon-dialog-service-opener-title" bind="serviceListTitle"></div>
|
||||||
|
<img class="recon-dialog-service-opener-img" src="images/menu-opener.png" />
|
||||||
|
</div>
|
||||||
|
<div class="recon-dialog-service-list" bind="serviceList"></div>
|
||||||
|
</div>
|
||||||
<div class="recon-dialog-service-panel-container"
|
<div class="recon-dialog-service-panel-container"
|
||||||
bind="servicePanelContainer">
|
bind="servicePanelContainer">
|
||||||
<div class="recon-dialog-service-panel-message"
|
<div class="recon-dialog-service-panel-message"
|
||||||
|
@ -47,6 +47,7 @@ ReconDialog.prototype._createDialog = function() {
|
|||||||
this._elmts.dialogHeader.text($.i18n._('core-recon')["recon-col"]+' "' + this._column.name + '"');
|
this._elmts.dialogHeader.text($.i18n._('core-recon')["recon-col"]+' "' + this._column.name + '"');
|
||||||
|
|
||||||
this._elmts.servicePanelMessage.html($.i18n._('core-recon')["pick-service"]);
|
this._elmts.servicePanelMessage.html($.i18n._('core-recon')["pick-service"]);
|
||||||
|
this._elmts.serviceListTitle.html($.i18n._('core-recon')["service-title"]);
|
||||||
this._elmts.addStandardServiceButton.html($.i18n._('core-buttons')["add-std-svc"]+"...");
|
this._elmts.addStandardServiceButton.html($.i18n._('core-buttons')["add-std-svc"]+"...");
|
||||||
this._elmts.addNamespacedServiceButton.html($.i18n._('core-buttons')["add-named-svc"]+"...");
|
this._elmts.addNamespacedServiceButton.html($.i18n._('core-buttons')["add-named-svc"]+"...");
|
||||||
this._elmts.reconcileButton.html($.i18n._('core-buttons')["start-recon"]);
|
this._elmts.reconcileButton.html($.i18n._('core-buttons')["start-recon"]);
|
||||||
@ -113,6 +114,7 @@ ReconDialog.prototype._populateDialog = function() {
|
|||||||
.text(service.name)
|
.text(service.name)
|
||||||
.appendTo(self._elmts.serviceList)
|
.appendTo(self._elmts.serviceList)
|
||||||
.click(function() {
|
.click(function() {
|
||||||
|
self._toggleServices();
|
||||||
self._selectService(record);
|
self._selectService(record);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -132,9 +134,32 @@ ReconDialog.prototype._populateDialog = function() {
|
|||||||
for (var i = 0; i < services.length; i++) {
|
for (var i = 0; i < services.length; i++) {
|
||||||
renderService(services[i]);
|
renderService(services[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$('.recon-dialog-service-opener').click(function() {
|
||||||
|
self._toggleServices();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ReconDialog.prototype._toggleServices = function() {
|
||||||
|
var self = this;
|
||||||
|
self._toggleServiceTitle(500);
|
||||||
|
self._toggleServiceList(500);
|
||||||
|
};
|
||||||
|
|
||||||
|
ReconDialog.prototype._toggleServiceTitle = function(duration) {
|
||||||
|
var title = $('.recon-dialog-service-opener-title');
|
||||||
|
title.animate({
|
||||||
|
width : 'toggle'
|
||||||
|
}, duration, 'swing', function() {
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
ReconDialog.prototype._toggleServiceList = function(duration) {
|
||||||
|
$(".recon-dialog-service-list").toggle("slide", duration);
|
||||||
|
};
|
||||||
|
|
||||||
ReconDialog.prototype._selectService = function(record) {
|
ReconDialog.prototype._selectService = function(record) {
|
||||||
for (var i = 0; i < this._serviceRecords.length; i++) {
|
for (var i = 0; i < this._serviceRecords.length; i++) {
|
||||||
if (record === this._serviceRecords[i]) {
|
if (record === this._serviceRecords[i]) {
|
||||||
|
@ -35,20 +35,57 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
.recon-dialog-service {
|
.recon-dialog-service {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
padding: 5px 0;
|
padding: 0 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.recon-dialog-service-list-container {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
.recon-dialog-service-list {
|
.recon-dialog-service-list {
|
||||||
border: 1px solid #aaa;
|
background: none repeat scroll 0 0 #FFFFFF;
|
||||||
padding: 1px;
|
border: 1px solid #AAAAAA;
|
||||||
|
height: 470px;
|
||||||
|
margin-left: 10px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
padding: 1px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 500px;
|
}
|
||||||
|
|
||||||
|
.recon-dialog-service-opener {
|
||||||
|
height: 25px;
|
||||||
|
margin-left: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recon-dialog-service-opener:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recon-dialog-service-opener-title {
|
||||||
|
background: none repeat scroll 0 0 #E0EDFE;
|
||||||
float: left;
|
float: left;
|
||||||
|
font-size: 18px;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
width: 220px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recon-dialog-service-opener-img {
|
||||||
|
background: none repeat scroll 0 0 #E0EDFE;
|
||||||
|
border-bottom-right-radius: 12px;
|
||||||
|
border-top-right-radius: 12px;
|
||||||
|
padding: 4px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recon-dialog-service-opener-img:hover {
|
||||||
|
background: none repeat scroll 0 0 #BFDBFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recon-dialog-service-panel-container {
|
.recon-dialog-service-panel-container {
|
||||||
float: left;
|
float: left;
|
||||||
|
height: 500px;
|
||||||
|
margin-left: 20px;
|
||||||
|
width: 850px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.recon-dialog-service-selector {
|
a.recon-dialog-service-selector {
|
||||||
|
Loading…
Reference in New Issue
Block a user