Improved SweetAlert window size
This commit is contained in:
parent
b7776bf060
commit
42269c22b4
|
@ -4,8 +4,8 @@ Easy Session Manager allows you to manage your Firefox session by backing up or
|
||||||
# Download
|
# Download
|
||||||
https://addons.mozilla.org/en-US/firefox/addon/easy-session-manager/
|
https://addons.mozilla.org/en-US/firefox/addon/easy-session-manager/
|
||||||
|
|
||||||
# Version: 0.2.1.2
|
# Version: 0.2.1.3
|
||||||
Updating for Firefox AMO
|
Improved width of SweetAlert windows.
|
||||||
|
|
||||||
# Images
|
# Images
|
||||||
![1 Default interface with no sessions. ](images/pic1.png)
|
![1 Default interface with no sessions. ](images/pic1.png)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": " Easy Session Manager",
|
"name": " Easy Session Manager",
|
||||||
"version": "0.2.1.2",
|
"version": "0.2.1.3",
|
||||||
"description": " Easy Session Manager allows you to manage your Firefox session by backing up or loading your saved sessions.",
|
"description": " Easy Session Manager allows you to manage your Firefox session by backing up or loading your saved sessions.",
|
||||||
|
|
||||||
"applications": {
|
"applications": {
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
<label for="selectiveOpen">Selective Open</label>
|
<label for="selectiveOpen">Selective Open</label>
|
||||||
|
|
||||||
<div id="savedSessions">
|
<div id="savedSessions">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<input type="image" name="import" src="../images/icons/import.png" title="Import..." alt="Import" />
|
<input type="image" name="import" src="../images/icons/import.png" title="Import..." alt="Import" />
|
||||||
|
|
|
@ -9,6 +9,7 @@ const processor = (obj, enteryName = '',
|
||||||
swal(message, {
|
swal(message, {
|
||||||
content: inputTag,
|
content: inputTag,
|
||||||
buttons: true,
|
buttons: true,
|
||||||
|
customClass: 'swal-modal',
|
||||||
}).then((value) => {
|
}).then((value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
enteryName = inputTag.value.replace(/ /g, "_");
|
enteryName = inputTag.value.replace(/ /g, "_");
|
||||||
|
|
|
@ -3,7 +3,7 @@ const windowSys = browser.windows;
|
||||||
const regexp = /^[a-zA-Z0-9-_]+$/; // Alphanumeric, dash, underscore
|
const regexp = /^[a-zA-Z0-9-_]+$/; // Alphanumeric, dash, underscore
|
||||||
|
|
||||||
|
|
||||||
const saveSession = (elm = null, message = "Session Name\nAllowed: a-z, A-Z, 0-9, -, _") => {
|
const saveSession = (elm = null, message = "[ Session Name ] Allowed: a-z, A-Z, 0-9, -, _") => {
|
||||||
let inputTag = document.createElement("INPUT");
|
let inputTag = document.createElement("INPUT");
|
||||||
inputTag.value = new Date().toLocaleString().split(',')[0].replace(/\//g, '-');
|
inputTag.value = new Date().toLocaleString().split(',')[0].replace(/\//g, '-');
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ const saveSession = (elm = null, message = "Session Name\nAllowed: a-z, A-Z, 0-9
|
||||||
swal(message, {
|
swal(message, {
|
||||||
content: container,
|
content: container,
|
||||||
buttons: true,
|
buttons: true,
|
||||||
|
customClass: 'swal-modal',
|
||||||
}).then((value) => {
|
}).then((value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
let enteryName = inputTag.value.replace(/ /g, "_");
|
let enteryName = inputTag.value.replace(/ /g, "_");
|
||||||
|
@ -82,6 +83,7 @@ const editSession = (elm = null, message = "Editing selected session...\nAllowed
|
||||||
swal(message, {
|
swal(message, {
|
||||||
content: container,
|
content: container,
|
||||||
buttons: true,
|
buttons: true,
|
||||||
|
customClass: 'swal-modal',
|
||||||
}).then((value) => {
|
}).then((value) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
let newName = inputTag.value.replace(/ /g, "_");
|
let newName = inputTag.value.replace(/ /g, "_");
|
||||||
|
@ -157,6 +159,7 @@ const downloadSession = (elm = null) => {
|
||||||
swal("Download Session?", {
|
swal("Download Session?", {
|
||||||
content: pTag,
|
content: pTag,
|
||||||
buttons: true,
|
buttons: true,
|
||||||
|
customClass: 'swal-modal',
|
||||||
}).then((willDl) => {
|
}).then((willDl) => {
|
||||||
if (willDl) {
|
if (willDl) {
|
||||||
if (chkBoxTag.checked) {
|
if (chkBoxTag.checked) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
body {
|
body {
|
||||||
width: 450px;
|
width: 800px;
|
||||||
height: 520px;
|
height: 600px;
|
||||||
overflow-x: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, li { list-style: none; }
|
ul, li { list-style: none; }
|
||||||
|
@ -21,19 +21,18 @@ input[type=image]:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
#savedSessions {
|
#savedSessions {
|
||||||
height: 365px;
|
width: 85%;
|
||||||
min-height: 365x;
|
height: 450px;
|
||||||
max-height: 365px;
|
min-height: 450px;
|
||||||
|
max-height: 450px;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
margin-bottom: 0.6em;
|
margin: 0em auto;
|
||||||
margin-top: 0.6em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#editSelectionContainer {
|
#editSelectionContainer {
|
||||||
height: 315px;
|
width: 100%;
|
||||||
min-height: 315px;
|
height: auto;
|
||||||
max-height: 315px;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
display: block;
|
display: block;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
@ -62,6 +61,13 @@ input[type=image]:hover {
|
||||||
color: rgba(255, 255, 255, 0.5);
|
color: rgba(255, 255, 255, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Overide sweetalert modal size */
|
||||||
|
.swal-modal{
|
||||||
|
top: 2em !important;
|
||||||
|
width: 650px !important;
|
||||||
|
height: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
.collection {
|
.collection {
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue