Commit faf0fc90 authored by Lukasz Waskiewicz's avatar Lukasz Waskiewicz
Browse files

refs #1478 poprawa UI

poprawa przesuwania "sendNotification"
poprawa zaznaczania z Ctrl
parent c5764646
......@@ -157,4 +157,7 @@
cursor: pointer;
}
#queryExecute.masked {
overflow: visible !important;
}
......@@ -6,64 +6,58 @@
*
*/
var QueryFormDisplay = (function() {
var scope = {},
boxVisibility = true,
settings = {
buttonId: "",
boxId: "",
cookieName: "COCOS_QUERY_FORM"
};
scope.init = function(options) {
if (typeof options !== 'undefined') {
settings = options;
}
//Get cookie
boxVisibility = convertStringToBoolean(Cookies.read(settings.cookieName));
scope.bindUI();
};
scope.bindUI = function() {
$(settings.buttonId).click(function() {
boxVisibility = !boxVisibility;
$(settings.boxId).slideToggle("300", function() {
Cookies.create(settings.cookieName, boxVisibility, 60 * 24 * 365);
});
});
};
return scope;
var scope = {},
//------------------------ PRIVATE --------------------------
function hideBox() {
$(settings.boxId).css({display: "none"});
}
function convertStringToBoolean(string) {
switch (string) {
case "false":
return false;
case "true":
return true;
default:
return new Boolean(string);
}
}
}());
boxVisibility = true,
settings = {
buttonId : "",
boxId : "",
cookieName : "COCOS_QUERY_FORM"
};
scope.init = function(options) {
if (typeof options !== 'undefined') {
settings = options;
}
// Get cookie
boxVisibility = convertStringToBoolean(Cookies.read(settings.cookieName));
scope.bindUI();
};
scope.bindUI = function() {
$(settings.buttonId).click(function() {
boxVisibility = !boxVisibility;
$(settings.boxId).slideToggle("300", function() {
Cookies.create(settings.cookieName, boxVisibility, 60 * 24 * 365);
});
});
};
return scope;
// ------------------------ PRIVATE --------------------------
function hideBox() {
$(settings.boxId).css({
display : "none"
});
}
function convertStringToBoolean(string) {
switch (string) {
case "false":
return false;
case "true":
return true;
default:
return new Boolean(string);
}
}
}());
......@@ -24,7 +24,10 @@ QueryResultsWidget.prototype.bindUiActions = function() {
QueryTable.prototype.bindUiActions.call(this);
page.tableWrapper.find(".resultElement").on("click", function(e) {
page.loadQueryContext($(this).data('queryid'));
var evt = e || window.event
if(!evt.ctrlKey){
page.loadQueryContext($(this).data('queryid'));
}
});
$('a[href="#queriesResults"]').on('show.bs.tab', function() {
......
......@@ -123,13 +123,4 @@ QueryTable.prototype.mayOnlyOneRowBeRefreshed = function(message){
}
QueryTable.prototype.bindUiActions = function() {
this.tableWrapper.find(".resultElement").on("click", function(e) {
query = $(this).data('query');
// console.debug(query);
if (window.editor) {
window.editor.setValue(query);
} else {
$("#submitingQueryContent").val(query);
}
});
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment