mirror of
https://github.com/MatMoul/quickdial-webext.git
synced 2025-12-16 17:03:12 +00:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ce82a4c67e | |||
| 72ab3e5f6b | |||
| beb52273a2 | |||
| 2e5bbce72f | |||
| ddbd2f40c8 | |||
| 63569851d8 | |||
| 88b6a8d45d | |||
|
|
7b6e112038 | ||
| ee310a9546 | |||
|
|
e400d07f01 |
72
src/_locales/pt_BR/messages.json
Normal file
72
src/_locales/pt_BR/messages.json
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"extensionDescription": {
|
||||||
|
"message": "Quick Dial, uma página de discagem inspirada no Fast Dial.",
|
||||||
|
"description": "Descrição da extensão."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuAddToQuickDial": {
|
||||||
|
"message": "Adicionar ao Quick Dial",
|
||||||
|
"description": "Texto do iten de menu adicionar ao Quick Dial."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuNew": {
|
||||||
|
"message": "Novo",
|
||||||
|
"description": "Texto do item de menu novo."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuNewBookmark": {
|
||||||
|
"message": "Favorito",
|
||||||
|
"description": "Texto do iten de menu adicionar favorito."
|
||||||
|
},
|
||||||
|
|
||||||
|
"AddBookmarkPrompt": {
|
||||||
|
"message": "Entre com a url do novo favorito :",
|
||||||
|
"description": "Texto do rótulo adicionar favorito."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuNewFolder": {
|
||||||
|
"message": "Pasta",
|
||||||
|
"description": "Texto do item de menu adicionar pasta."
|
||||||
|
},
|
||||||
|
|
||||||
|
"AddFolderPrompt": {
|
||||||
|
"message": "Entre com o nome da nova pasta :",
|
||||||
|
"description": "Texto do rótulo adicionar pasta."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuProperties": {
|
||||||
|
"message": "Propriedades",
|
||||||
|
"description": "Texto do item de menu propriedades."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuRefreshItem": {
|
||||||
|
"message": "Atualizar",
|
||||||
|
"description": "Texto do item de menu atualizar."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuCaptureHere": {
|
||||||
|
"message": "Capturar aqui",
|
||||||
|
"description": "Texto do item de menu capturar aqui."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuCapturePage": {
|
||||||
|
"message": "Capturar em uma nova guia",
|
||||||
|
"description": "Texto do item de menu capturar em uma nova guia."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuDeleteItem": {
|
||||||
|
"message": "Excluir",
|
||||||
|
"description": "Texto do item de menu excluir."
|
||||||
|
},
|
||||||
|
|
||||||
|
"deleteItemConfimation": {
|
||||||
|
"message": "Excluir $1 ?",
|
||||||
|
"description": "Texto de confirmação da exclusão."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuSettings": {
|
||||||
|
"message": " Configurações do Quick Dial",
|
||||||
|
"description": "Texto do item de menu configurações."
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
72
src/_locales/sr/messages.json
Normal file
72
src/_locales/sr/messages.json
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"extensionDescription": {
|
||||||
|
"message": "Quick Dial, страница брзог бирања коју инспириса fast dial.",
|
||||||
|
"description": "Description of the extension."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuAddToQuickDial": {
|
||||||
|
"message": "Додај у брзо бирање",
|
||||||
|
"description": "Text of add bookmark menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuNew": {
|
||||||
|
"message": "Нова",
|
||||||
|
"description": "Text of new menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuNewBookmark": {
|
||||||
|
"message": "Забелешка",
|
||||||
|
"description": "Text of add bookmark menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"AddBookmarkPrompt": {
|
||||||
|
"message": "Унесите УРЛ нове забелешке :",
|
||||||
|
"description": "Text of the add bookmark prompt."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuNewFolder": {
|
||||||
|
"message": "Фасцикла",
|
||||||
|
"description": "Text of add folder menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"AddFolderPrompt": {
|
||||||
|
"message": "Унесите име нове фасцикле :",
|
||||||
|
"description": "Text of the add folder prompt."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuProperties": {
|
||||||
|
"message": "Својства",
|
||||||
|
"description": "Text of properties menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuRefreshItem": {
|
||||||
|
"message": "Обнови",
|
||||||
|
"description": "Text of refresh menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuCaptureHere": {
|
||||||
|
"message": "Ухвати овде",
|
||||||
|
"description": "Text of capture here menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuCapturePage": {
|
||||||
|
"message": "Ухвати у новом језичку",
|
||||||
|
"description": "Text of capture menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuDeleteItem": {
|
||||||
|
"message": "Обриши",
|
||||||
|
"description": "Text of delete menu item."
|
||||||
|
},
|
||||||
|
|
||||||
|
"deleteItemConfimation": {
|
||||||
|
"message": "Обрисати $1 ?",
|
||||||
|
"description": "Text of delete confirmation."
|
||||||
|
},
|
||||||
|
|
||||||
|
"menuSettings": {
|
||||||
|
"message": "Подешавање брзог бирања",
|
||||||
|
"description": "Text of settings menu item."
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><span>Image :</span></td>
|
<td><span>Image :</span></td>
|
||||||
<td colspan="2">
|
<td>
|
||||||
<select id="ImageMode">
|
<select id="ImageMode">
|
||||||
<option value="-1">Default</option>
|
<option value="-1">Default</option>
|
||||||
<option value="0">Stretch</option>
|
<option value="0">Stretch</option>
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
<button class="hidden" id="ImageCapture">Capture</button>
|
<button class="hidden" id="ImageCapture">Capture</button>
|
||||||
<input id="ImageFile" type="file" style="width:180px;">
|
<input id="ImageFile" type="file" style="width:180px;">
|
||||||
</td>
|
</td>
|
||||||
|
<td style="width:20px"><input id="ImageLocked" type="checkbox" title="Lock image"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
|
|||||||
@@ -58,6 +58,10 @@
|
|||||||
<td>Preview :</td>
|
<td>Preview :</td>
|
||||||
<td><div id="BackgroundPreview" style="width: 300px; height: 180px;"></div></td>
|
<td><div id="BackgroundPreview" style="width: 300px; height: 180px;"></div></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Show "Add to ..." :</td>
|
||||||
|
<td><input id="MenuShowAdd" type="checkbox"></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ app.Messages.init = function(){ // Init Messages Listeners
|
|||||||
} else {
|
} else {
|
||||||
browser.runtime.sendMessage( { cmd: app.Messages.Commands.gridNodesLoaded } );
|
browser.runtime.sendMessage( { cmd: app.Messages.Commands.gridNodesLoaded } );
|
||||||
}
|
}
|
||||||
|
app.ContextMenus.updateMenu();
|
||||||
break;
|
break;
|
||||||
case app.Messages.Commands.getNodeByID:
|
case app.Messages.Commands.getNodeByID:
|
||||||
var nodes = app.GridNodes.getNodeWithParents(request.id);
|
var nodes = app.GridNodes.getNodeWithParents(request.id);
|
||||||
@@ -107,6 +108,7 @@ app.Settings.init = function(callback){ // Load settings and nodes
|
|||||||
backgroundColor: '#3c4048',
|
backgroundColor: '#3c4048',
|
||||||
backgroundImage: null,
|
backgroundImage: null,
|
||||||
backgroundMode: 0,
|
backgroundMode: 0,
|
||||||
|
menuShowAdd: true,
|
||||||
grid: {
|
grid: {
|
||||||
margin: 10,
|
margin: 10,
|
||||||
rows: 4,
|
rows: 4,
|
||||||
@@ -211,6 +213,9 @@ app.Settings.init = function(callback){ // Load settings and nodes
|
|||||||
data.settings.grid.ratioX = 4;
|
data.settings.grid.ratioX = 4;
|
||||||
data.settings.grid.ratioY = 3;
|
data.settings.grid.ratioY = 3;
|
||||||
}
|
}
|
||||||
|
if(!(data.settings.menuShowAdd == true) && !(data.settings.menuShowAdd == false)){
|
||||||
|
data.settings.menuShowAdd = true;
|
||||||
|
}
|
||||||
//app.Settings.save();
|
//app.Settings.save();
|
||||||
}
|
}
|
||||||
app.settings = data.settings;
|
app.settings = data.settings;
|
||||||
@@ -229,25 +234,32 @@ app.Settings.save = function(callback){ // Save settings
|
|||||||
browser.storage.local.set(data).then(function(){
|
browser.storage.local.set(data).then(function(){
|
||||||
if(callback) callback();
|
if(callback) callback();
|
||||||
}, function(){ console.log('Error saving settings'); });
|
}, function(){ console.log('Error saving settings'); });
|
||||||
}
|
};
|
||||||
|
|
||||||
app.init();
|
app.init();
|
||||||
|
|
||||||
app.ContextMenus = {} // ContextMenu helper Object
|
app.ContextMenus = {} // ContextMenu helper Object
|
||||||
app.ContextMenus.initMenu = function(){ // (Called from app.init) Init context menu in all pages
|
app.ContextMenus.menuItemClicked = function(info, tab){
|
||||||
browser.contextMenus.create({ // Create Context menu
|
if (info.menuItemId == "AddToQuickDial") app.GridNodes.createBookmark(app.node, info.pageUrl, tab.title, function(){
|
||||||
id: 'AddToQuickDial',
|
browser.runtime.sendMessage( { cmd: app.Messages.Commands.gridNodesLoaded } );
|
||||||
title: browser.i18n.getMessage("menuAddToQuickDial"),
|
|
||||||
contexts: ["all"],
|
|
||||||
documentUrlPatterns: [ 'http://*/*', 'https://*/*', 'file://*/*', 'ftp://*/*' ]
|
|
||||||
}, function(){});
|
|
||||||
browser.contextMenus.onClicked.addListener(function(info, tab) { // Context menu click event
|
|
||||||
if (info.menuItemId == "AddToQuickDial")
|
|
||||||
app.GridNodes.createBookmark(app.node, info.pageUrl, tab.title, function(){
|
|
||||||
browser.runtime.sendMessage( { cmd: app.Messages.Commands.gridNodesLoaded } );
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
app.ContextMenus.initMenu = function(){ // (Called from app.init) Init context menu in all pages
|
||||||
|
if(app.settings.menuShowAdd){
|
||||||
|
browser.contextMenus.create({ // Create Context menu
|
||||||
|
id: 'AddToQuickDial',
|
||||||
|
title: browser.i18n.getMessage("menuAddToQuickDial"),
|
||||||
|
contexts: ["all"],
|
||||||
|
documentUrlPatterns: [ 'http://*/*', 'https://*/*', 'file://*/*', 'ftp://*/*' ]
|
||||||
|
}, function(){});
|
||||||
|
browser.contextMenus.onClicked.addListener(app.ContextMenus.menuItemClicked);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
app.ContextMenus.updateMenu = function(){
|
||||||
|
browser.contextMenus.onClicked.removeListener(app.ContextMenus.menuItemClicked);
|
||||||
|
browser.contextMenus.removeAll();
|
||||||
|
app.ContextMenus.initMenu();
|
||||||
|
};
|
||||||
|
|
||||||
app.Bookmarks = {} // Bookmarks helper object
|
app.Bookmarks = {} // Bookmarks helper object
|
||||||
app.Bookmarks._onCreated = function(){ app.GridNodes.sync(app.node, app.settings.grid.root, function(){ browser.runtime.sendMessage({ cmd: app.Messages.Commands.gridNodesLoaded }); }); }
|
app.Bookmarks._onCreated = function(){ app.GridNodes.sync(app.node, app.settings.grid.root, function(){ browser.runtime.sendMessage({ cmd: app.Messages.Commands.gridNodesLoaded }); }); }
|
||||||
@@ -424,56 +436,60 @@ app.GridNodes.sync = function(gridNode, rootPath, callback){ // Sync GridNodes w
|
|||||||
function syncNode(gridNode, bookmarkItem){
|
function syncNode(gridNode, bookmarkItem){
|
||||||
gridNode.id = bookmarkItem.id;
|
gridNode.id = bookmarkItem.id;
|
||||||
gridNode.title = bookmarkItem.title;
|
gridNode.title = bookmarkItem.title;
|
||||||
if(bookmarkItem.url){
|
switch(bookmarkItem.type){
|
||||||
gridNode.type = app.GridNodes.GridNodeType.bookmark;
|
case 'bookmark':
|
||||||
if(gridNode.url != bookmarkItem.url){
|
gridNode.type = app.GridNodes.GridNodeType.bookmark;
|
||||||
gridNode.url = bookmarkItem.url;
|
if(gridNode.url != bookmarkItem.url){
|
||||||
delete gridNode.image;
|
gridNode.url = bookmarkItem.url;
|
||||||
}
|
delete gridNode.image;
|
||||||
} else if(bookmarkItem.children){
|
}
|
||||||
gridNode.type = app.GridNodes.GridNodeType.folder;
|
break;
|
||||||
var EmptyNodes = [];
|
case 'folder':
|
||||||
if(! gridNode.children) gridNode.children = [];
|
gridNode.type = app.GridNodes.GridNodeType.folder;
|
||||||
else {
|
var EmptyNodes = [];
|
||||||
for(var i=gridNode.children.length-1; i>=0; i--){
|
if(! gridNode.children) gridNode.children = [];
|
||||||
if(!gridNode.children[i]) gridNode.children[i] = { type: app.GridNodes.GridNodeType.empty };
|
else {
|
||||||
if(gridNode.children[i].type==app.GridNodes.GridNodeType.empty){
|
for(var i=gridNode.children.length-1; i>=0; i--){
|
||||||
EmptyNodes.unshift(gridNode.children[i]);
|
if(!gridNode.children[i]) gridNode.children[i] = { type: app.GridNodes.GridNodeType.empty };
|
||||||
} else {
|
if(gridNode.children[i].type==app.GridNodes.GridNodeType.empty){
|
||||||
var found = false;
|
EmptyNodes.unshift(gridNode.children[i]);
|
||||||
for(var child of bookmarkItem.children){
|
} else {
|
||||||
if(child.id==gridNode.children[i].id){
|
var found = false;
|
||||||
found = true;
|
for(var child of bookmarkItem.children){
|
||||||
break;
|
if(child.id==gridNode.children[i].id){
|
||||||
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
if(! found){
|
||||||
if(! found){
|
if(i<gridNode.children.length - 1){
|
||||||
if(i<gridNode.children.length - 1){
|
gridNode.children[i] = { type: app.GridNodes.GridNodeType.empty };
|
||||||
gridNode.children[i] = { type: app.GridNodes.GridNodeType.empty };
|
EmptyNodes.unshift(gridNode.children[i]);
|
||||||
EmptyNodes.unshift(gridNode.children[i]);
|
} else {
|
||||||
} else {
|
gridNode.children.pop();
|
||||||
gridNode.children.pop();
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
for(var child of bookmarkItem.children){
|
||||||
for(var child of bookmarkItem.children){
|
var childGridNode = app.GridNodes.getChildNode(gridNode, child.id);
|
||||||
var childGridNode = app.GridNodes.getChildNode(gridNode, child.id);
|
if(!childGridNode){
|
||||||
if(!childGridNode){
|
if(EmptyNodes.length>0){
|
||||||
if(EmptyNodes.length>0){
|
childGridNode = EmptyNodes[0];
|
||||||
childGridNode = EmptyNodes[0];
|
EmptyNodes.shift();
|
||||||
EmptyNodes.shift();
|
}else {
|
||||||
}else {
|
childGridNode = {};
|
||||||
childGridNode = {};
|
gridNode.children.push(childGridNode)
|
||||||
gridNode.children.push(childGridNode)
|
}
|
||||||
}
|
}
|
||||||
|
syncNode(childGridNode, child);
|
||||||
}
|
}
|
||||||
syncNode(childGridNode, child);
|
EmptyNodes.length = 0;
|
||||||
}
|
break;
|
||||||
EmptyNodes.length = 0;
|
default:
|
||||||
} else {
|
gridNode.type = app.GridNodes.GridNodeType.empty;
|
||||||
gridNode.type = app.GridNodes.GridNodeType.empty;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -532,8 +548,14 @@ app.GridNodes.updateNode = function(gridNode, value, callback){
|
|||||||
if(value){
|
if(value){
|
||||||
if(value.title) gridNode.title = value.title;
|
if(value.title) gridNode.title = value.title;
|
||||||
if(value.titleLocked!=null) gridNode.titleLocked = value.titleLocked;
|
if(value.titleLocked!=null) gridNode.titleLocked = value.titleLocked;
|
||||||
if(value.image) gridNode.image = value.image;
|
if(value.imageLocked!=null){
|
||||||
else delete gridNode.image;
|
gridNode.imageLocked = value.imageLocked;
|
||||||
|
if(value.image) gridNode.image = value.image;
|
||||||
|
else delete gridNode.image;
|
||||||
|
} else if(gridNode.imageLocked != true){
|
||||||
|
if(value.image) gridNode.image = value.image;
|
||||||
|
else delete gridNode.image;
|
||||||
|
}
|
||||||
if(value.imageMode || value.imageMode == 0) {
|
if(value.imageMode || value.imageMode == 0) {
|
||||||
if(value.imageMode == -1) delete gridNode.imageMode;
|
if(value.imageMode == -1) delete gridNode.imageMode;
|
||||||
else gridNode.imageMode = value.imageMode;
|
else gridNode.imageMode = value.imageMode;
|
||||||
@@ -676,12 +698,15 @@ app.GridNodes.refreshNode = function(gridNode, callback){ // Refresh content of
|
|||||||
break;
|
break;
|
||||||
case app.GridNodes.GridNodeType.bookmark:
|
case app.GridNodes.GridNodeType.bookmark:
|
||||||
app.SiteInfos.fromFrame(gridNode.url, function(infos){
|
app.SiteInfos.fromFrame(gridNode.url, function(infos){
|
||||||
if(infos){
|
if(gridNode.imageLocked!=true){
|
||||||
if(gridNode.titleLocked!=true) gridNode.title = infos.title;
|
if(infos){
|
||||||
gridNode.image = infos.screenshot;
|
if(gridNode.titleLocked!=true) gridNode.title = infos.title;
|
||||||
} else {
|
gridNode.image = infos.screenshot;
|
||||||
gridNode.image = '0';
|
} else {
|
||||||
|
gridNode.image = '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete gridNode.__isLoading;
|
delete gridNode.__isLoading;
|
||||||
app.GridNodes.saveNode(gridNode);
|
app.GridNodes.saveNode(gridNode);
|
||||||
if(callback) callback(infos);
|
if(callback) callback(infos);
|
||||||
@@ -716,11 +741,13 @@ app.GridNodes.capturePage = function(gridNode, callback){
|
|||||||
break;
|
break;
|
||||||
case app.GridNodes.GridNodeType.bookmark:
|
case app.GridNodes.GridNodeType.bookmark:
|
||||||
app.SiteInfos.fromNewTab(gridNode.url, function(infos){
|
app.SiteInfos.fromNewTab(gridNode.url, function(infos){
|
||||||
if(infos){
|
if(gridNode.imageLocked!=true){
|
||||||
if(gridNode.titleLocked!=true) gridNode.title = infos.title;
|
if(infos){
|
||||||
gridNode.image = infos.screenshot;
|
if(gridNode.titleLocked!=true) gridNode.title = infos.title;
|
||||||
} else {
|
gridNode.image = infos.screenshot;
|
||||||
gridNode.image = '0';
|
} else {
|
||||||
|
gridNode.image = '0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
delete gridNode.__isLoading;
|
delete gridNode.__isLoading;
|
||||||
app.GridNodes.saveNode(gridNode);
|
app.GridNodes.saveNode(gridNode);
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ app.init = function(){
|
|||||||
switch(node.type){
|
switch(node.type){
|
||||||
case app.GridNodes.GridNodeType.folder:
|
case app.GridNodes.GridNodeType.folder:
|
||||||
TitleLocked.parentNode.style.display = 'none';
|
TitleLocked.parentNode.style.display = 'none';
|
||||||
|
ImageLocked.parentNode.style.display = 'none';
|
||||||
Url.parentNode.parentNode.style.display = 'none';
|
Url.parentNode.parentNode.style.display = 'none';
|
||||||
if(node.image){
|
if(node.image){
|
||||||
if(node.image.indexOf('url(')>=0) Image = node.image;
|
if(node.image.indexOf('url(')>=0) Image = node.image;
|
||||||
@@ -36,6 +37,7 @@ app.init = function(){
|
|||||||
break;
|
break;
|
||||||
case app.GridNodes.GridNodeType.bookmark:
|
case app.GridNodes.GridNodeType.bookmark:
|
||||||
TitleLocked.checked = (node.titleLocked==true);
|
TitleLocked.checked = (node.titleLocked==true);
|
||||||
|
ImageLocked.checked = (node.imageLocked==true);
|
||||||
ImageDefault.style.display = 'none';
|
ImageDefault.style.display = 'none';
|
||||||
Url.value = node.url;
|
Url.value = node.url;
|
||||||
if(node.image.indexOf('url(')>=0) Image = node.image;
|
if(node.image.indexOf('url(')>=0) Image = node.image;
|
||||||
@@ -102,7 +104,7 @@ app.init = function(){
|
|||||||
app.Messages.updateNode(app.node.id, { title: Title.value, image: Image, imageMode: +(ImageMode.value) })
|
app.Messages.updateNode(app.node.id, { title: Title.value, image: Image, imageMode: +(ImageMode.value) })
|
||||||
break;
|
break;
|
||||||
case app.GridNodes.GridNodeType.bookmark:
|
case app.GridNodes.GridNodeType.bookmark:
|
||||||
app.Messages.updateNode(app.node.id, { title: Title.value, titleLocked: TitleLocked.checked, url: Url.value, image: Image, imageMode: +(ImageMode.value) })
|
app.Messages.updateNode(app.node.id, { title: Title.value, titleLocked: TitleLocked.checked, imageLocked: ImageLocked.checked, url: Url.value, image: Image, imageMode: +(ImageMode.value) })
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ app.init = function(){
|
|||||||
});
|
});
|
||||||
app.Messages.getSettings(function(settings){
|
app.Messages.getSettings(function(settings){
|
||||||
app.settings = settings;
|
app.settings = settings;
|
||||||
|
MenuShowAdd.checked = app.settings.menuShowAdd;
|
||||||
BackgroundColor.value = app.settings.backgroundColor;
|
BackgroundColor.value = app.settings.backgroundColor;
|
||||||
BackgroundImage = app.settings.backgroundImage;
|
BackgroundImage = app.settings.backgroundImage;
|
||||||
BackgroundMode.value = app.settings.backgroundMode;
|
BackgroundMode.value = app.settings.backgroundMode;
|
||||||
@@ -79,6 +80,7 @@ app.init = function(){
|
|||||||
window.frameElement.popup.close();
|
window.frameElement.popup.close();
|
||||||
}
|
}
|
||||||
BtnApply.onclick = function(){
|
BtnApply.onclick = function(){
|
||||||
|
app.settings.menuShowAdd = MenuShowAdd.checked;
|
||||||
app.settings.backgroundColor = BackgroundColor.value;
|
app.settings.backgroundColor = BackgroundColor.value;
|
||||||
app.settings.backgroundImage = BackgroundImage;
|
app.settings.backgroundImage = BackgroundImage;
|
||||||
app.settings.backgroundMode = +(BackgroundMode.value);
|
app.settings.backgroundMode = +(BackgroundMode.value);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Quick Dial",
|
"name": "Quick Dial",
|
||||||
"version": "0.1.10",
|
"version": "0.1.12",
|
||||||
"author": "MatMoul",
|
"author": "MatMoul",
|
||||||
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
"homepage_url": "https://github.com/MatMoul/quickdial-webext",
|
||||||
"developer": {
|
"developer": {
|
||||||
|
|||||||
Reference in New Issue
Block a user