Added feedback link in modals
This commit is contained in:
commit
999583a4fb
@ -1,5 +1,5 @@
|
||||
CACHE MANIFEST
|
||||
#Date Mon Apr 21 2014 17:31:32
|
||||
#Date Mon Apr 21 2014 18:45:42
|
||||
|
||||
CACHE:
|
||||
res/worker.js
|
||||
|
File diff suppressed because one or more lines are too long
@ -1317,6 +1317,7 @@ a{-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s,
|
||||
.list-group-item{padding:10px 15px;margin-bottom:0}.list-group .list-group-item{border-radius:0}
|
||||
a.list-group-item:hover,a.list-group-item:focus{color:#036;border-top-color:rgba(0,128,255,0.1);border-bottom-color:rgba(0,128,255,0.1)}
|
||||
.bring-to-front{z-index:1050 !important}
|
||||
.dialog-header-message{position:absolute;top:12px;right:55px;font-weight:bold}
|
||||
.btn{padding:8px 11px;-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s}
|
||||
.btn-default:hover,.btn-default:focus,.btn-default:active,.open .btn-default.dropdown-toggle{color:#036;border-color:rgba(0,128,255,0.1);background-color:rgba(102,128,153,0.04) !important}
|
||||
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.open .btn-primary.dropdown-toggle{color:#036;border-color:rgba(0,128,255,0.1);background-color:#dae3eb !important}
|
||||
|
@ -1317,6 +1317,7 @@ a{-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s,
|
||||
.list-group-item{padding:10px 15px;margin-bottom:0}.list-group .list-group-item{border-radius:0}
|
||||
a.list-group-item:hover,a.list-group-item:focus{color:#343434;border-top-color:rgba(128,128,128,0.1);border-bottom-color:rgba(128,128,128,0.1)}
|
||||
.bring-to-front{z-index:1050 !important}
|
||||
.dialog-header-message{position:absolute;top:12px;right:55px;font-weight:bold}
|
||||
.btn{padding:8px 11px;-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s}
|
||||
.btn-default:hover,.btn-default:focus,.btn-default:active,.open .btn-default.dropdown-toggle{color:#343434;border-color:rgba(128,128,128,0.1);background-color:rgba(128,128,128,0.04) !important}
|
||||
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.open .btn-primary.dropdown-toggle{color:#343434;border-color:rgba(128,128,128,0.1);background-color:#e3e3e3 !important}
|
||||
|
@ -1317,6 +1317,7 @@ a{-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s,
|
||||
.list-group-item{padding:10px 15px;margin-bottom:0}.list-group .list-group-item{border-radius:0}
|
||||
a.list-group-item:hover,a.list-group-item:focus{color:#b3b3b3;border-top-color:rgba(255,255,255,0.1);border-bottom-color:rgba(255,255,255,0.1)}
|
||||
.bring-to-front{z-index:1050 !important}
|
||||
.dialog-header-message{position:absolute;top:12px;right:55px;font-weight:bold}
|
||||
.btn{padding:8px 11px;-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s}
|
||||
.btn-default:hover,.btn-default:focus,.btn-default:active,.open .btn-default.dropdown-toggle{color:#b3b3b3;border-color:rgba(255,255,255,0.1);background-color:rgba(255,255,255,0.04) !important}
|
||||
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.open .btn-primary.dropdown-toggle{color:#b3b3b3;border-color:rgba(255,255,255,0.1);background-color:#525252 !important}
|
||||
|
@ -1317,6 +1317,7 @@ a{-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s,
|
||||
.list-group-item{padding:10px 15px;margin-bottom:0}.list-group .list-group-item{border-radius:0}
|
||||
a.list-group-item:hover,a.list-group-item:focus{color:#4e4e4e;border-top-color:rgba(154,154,154,0.1);border-bottom-color:rgba(154,154,154,0.1)}
|
||||
.bring-to-front{z-index:1050 !important}
|
||||
.dialog-header-message{position:absolute;top:12px;right:55px;font-weight:bold}
|
||||
.btn{padding:8px 11px;-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s}
|
||||
.btn-default:hover,.btn-default:focus,.btn-default:active,.open .btn-default.dropdown-toggle{color:#4e4e4e;border-color:rgba(154,154,154,0.1);background-color:rgba(154,154,154,0.16) !important}
|
||||
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.open .btn-primary.dropdown-toggle{color:#4e4e4e;border-color:rgba(154,154,154,0.1);background-color:#dcdcdc !important}
|
||||
|
@ -1317,6 +1317,7 @@ a{-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s,
|
||||
.list-group-item{padding:10px 15px;margin-bottom:0}.list-group .list-group-item{border-radius:0}
|
||||
a.list-group-item:hover,a.list-group-item:focus{color:#2d2d2d;border-top-color:rgba(121,121,121,0.1);border-bottom-color:rgba(121,121,121,0.1)}
|
||||
.bring-to-front{z-index:1050 !important}
|
||||
.dialog-header-message{position:absolute;top:12px;right:55px;font-weight:bold}
|
||||
.btn{padding:8px 11px;-webkit-transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s;transition:background-color ease-in-out .15s, color ease-in-out .15s, border-color ease-in-out .15s}
|
||||
.btn-default:hover,.btn-default:focus,.btn-default:active,.open .btn-default.dropdown-toggle{color:#2d2d2d;border-color:rgba(121,121,121,0.1);background-color:rgba(143,134,104,0.04) !important}
|
||||
.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.open .btn-primary.dropdown-toggle{color:#2d2d2d;border-color:rgba(121,121,121,0.1);background-color:#dcdcdc !important}
|
||||
|
@ -139,7 +139,7 @@ define([
|
||||
utils.setInputValue("#input-settings-pdf-page-size", settings.pdfPageSize);
|
||||
// SSH proxy
|
||||
utils.setInputValue("#input-settings-ssh-proxy", settings.sshProxy);
|
||||
|
||||
|
||||
// Load extension settings
|
||||
eventMgr.onLoadSettings();
|
||||
}
|
||||
@ -196,36 +196,7 @@ define([
|
||||
storage.themeV3 = theme;
|
||||
}
|
||||
}
|
||||
/*
|
||||
var $navbarElt;
|
||||
var $leftBtnElts;
|
||||
var $rightBtnElts;
|
||||
var $btnDropdown;
|
||||
var $titleContainer;
|
||||
var marginWidth = 18 * 2 + 25 + 25;
|
||||
var titleWidth = 18 + 348;
|
||||
var leftButtonsWidth = 18 * 5 + 80 + 160 + 160 + 40 + 80;
|
||||
var rightButtonsWidth = 18 + 80;
|
||||
var buttonsDropdownWidth = 40;
|
||||
function adjustWindow() {
|
||||
if(!window.viewerMode) {
|
||||
var maxWidth = $navbarElt.width();
|
||||
if(marginWidth + titleWidth + leftButtonsWidth + rightButtonsWidth > maxWidth) {
|
||||
$btnDropdown.show().find('.dropdown-menu').append($leftBtnElts);
|
||||
if(marginWidth + titleWidth + rightButtonsWidth + buttonsDropdownWidth > maxWidth) {
|
||||
$btnDropdown.find('.dropdown-menu').append($rightBtnElts);
|
||||
}
|
||||
else {
|
||||
$titleContainer.before($rightBtnElts);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$btnDropdown.hide().after($leftBtnElts);
|
||||
$titleContainer.before($rightBtnElts);
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// Create the PageDown editor
|
||||
var pagedownEditor;
|
||||
var fileDesc;
|
||||
@ -258,7 +229,7 @@ define([
|
||||
undoManager: editor.undoMgr
|
||||
});
|
||||
|
||||
// Custom insert link dialog
|
||||
// Custom insert link dialog
|
||||
pagedownEditor.hooks.set("insertLinkDialog", function(callback) {
|
||||
core.insertLinkCallback = callback;
|
||||
utils.resetModalInputs();
|
||||
@ -275,7 +246,7 @@ define([
|
||||
$(".modal-insert-image").modal();
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
eventMgr.onPagedownConfigure(pagedownEditor);
|
||||
pagedownEditor.hooks.chain("onPreviewRefresh", eventMgr.onAsyncPreview);
|
||||
pagedownEditor.run();
|
||||
@ -314,10 +285,10 @@ define([
|
||||
else {
|
||||
document.body.innerHTML = bodyIndexHTML;
|
||||
}
|
||||
|
||||
|
||||
// Initialize utils library
|
||||
utils.init();
|
||||
|
||||
|
||||
// listen to online/offline events
|
||||
$(window).on('offline', core.setOffline);
|
||||
$(window).on('online', setOnline);
|
||||
@ -328,9 +299,9 @@ define([
|
||||
// Detect user activity
|
||||
$(document).mousemove(setUserActive).keypress(setUserActive);
|
||||
|
||||
layout.init();
|
||||
layout.init();
|
||||
editor.init();
|
||||
|
||||
|
||||
// Do periodic tasks
|
||||
intervalId = window.setInterval(function() {
|
||||
utils.updateCurrentTime();
|
||||
@ -346,7 +317,7 @@ define([
|
||||
|
||||
// Other initialization that are not prioritary
|
||||
eventMgr.addListener("onReady", function() {
|
||||
|
||||
|
||||
$('.modal').on('shown.bs.modal', function() {
|
||||
var $elt = $(this);
|
||||
setTimeout(function() {
|
||||
@ -368,7 +339,7 @@ define([
|
||||
$(this).find(".modal-footer a:last").click();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Click events on "insert link" and "insert image" dialog buttons
|
||||
$(".action-insert-link").click(function(e) {
|
||||
var value = utils.getInputTextValue($("#input-insert-link"), e);
|
||||
@ -567,6 +538,8 @@ define([
|
||||
}, '');
|
||||
document.getElementById('input-settings-theme').innerHTML = themeOptions;
|
||||
}
|
||||
|
||||
$('.modal-header').append('<a class="dialog-header-message" href="https://github.com/benweet/stackedit/issues/385" target="_blank">Give your feedback <i class="icon-megaphone"></i></a>');
|
||||
});
|
||||
|
||||
return core;
|
||||
|
@ -268,6 +268,13 @@ a {
|
||||
z-index: 1050 !important;
|
||||
}
|
||||
|
||||
.dialog-header-message {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 55px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
/*******************
|
||||
* Buttons
|
||||
|
Loading…
Reference in New Issue
Block a user