mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-12-27 17:19:05 +01:00
[bug] fix search not clearing before link render on load
This commit is contained in:
parent
6998637efc
commit
340fad2656
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nighttab",
|
"name": "nighttab",
|
||||||
"version": "4.3.0",
|
"version": "4.4.1",
|
||||||
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -5,6 +5,7 @@ state.init();
|
|||||||
bookmarks.init();
|
bookmarks.init();
|
||||||
theme.init();
|
theme.init();
|
||||||
menu.init();
|
menu.init();
|
||||||
|
search.init();
|
||||||
link.init();
|
link.init();
|
||||||
control.init();
|
control.init();
|
||||||
greeting.init();
|
greeting.init();
|
||||||
@ -14,7 +15,6 @@ clock.init();
|
|||||||
keyboard.init();
|
keyboard.init();
|
||||||
layout.init();
|
layout.init();
|
||||||
background.init();
|
background.init();
|
||||||
search.init();
|
|
||||||
header.init();
|
header.init();
|
||||||
modal.init();
|
modal.init();
|
||||||
shade.init();
|
shade.init();
|
||||||
|
@ -1744,10 +1744,10 @@ var link = (function() {
|
|||||||
render.clear.item();
|
render.clear.item();
|
||||||
render.clear.group();
|
render.clear.group();
|
||||||
render.all();
|
render.all();
|
||||||
bind.sort.group();
|
|
||||||
bind.sort.item();
|
|
||||||
render.group.tabindex();
|
render.group.tabindex();
|
||||||
render.item.tabindex();
|
render.item.tabindex();
|
||||||
|
bind.sort.group();
|
||||||
|
bind.sort.item();
|
||||||
};
|
};
|
||||||
|
|
||||||
var init = function() {
|
var init = function() {
|
||||||
|
@ -5,7 +5,7 @@ var search = (function() {
|
|||||||
bind.input = function() {
|
bind.input = function() {
|
||||||
var searchInput = helper.e(".search-input");
|
var searchInput = helper.e(".search-input");
|
||||||
searchInput.addEventListener("input", function() {
|
searchInput.addEventListener("input", function() {
|
||||||
mod.searching.set();
|
mod.searching.open();
|
||||||
render.clear.button();
|
render.clear.button();
|
||||||
render.searching();
|
render.searching();
|
||||||
link.groupAndItems();
|
link.groupAndItems();
|
||||||
@ -16,7 +16,7 @@ var search = (function() {
|
|||||||
var searchClear = helper.e(".search-clear");
|
var searchClear = helper.e(".search-clear");
|
||||||
searchClear.addEventListener("click", function() {
|
searchClear.addEventListener("click", function() {
|
||||||
render.clear.input();
|
render.clear.input();
|
||||||
mod.searching.set();
|
mod.searching.close();
|
||||||
render.clear.button();
|
render.clear.button();
|
||||||
render.searching();
|
render.searching();
|
||||||
link.groupAndItems();
|
link.groupAndItems();
|
||||||
@ -26,11 +26,18 @@ var search = (function() {
|
|||||||
var mod = {};
|
var mod = {};
|
||||||
|
|
||||||
mod.searching = {
|
mod.searching = {
|
||||||
set: function() {
|
open: function() {
|
||||||
helper.setObject({
|
helper.setObject({
|
||||||
object: state.get.current(),
|
object: state.get.current(),
|
||||||
path: "search",
|
path: "search",
|
||||||
newValue: helper.e(".search-input").value != ""
|
newValue: true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
close: function() {
|
||||||
|
helper.setObject({
|
||||||
|
object: state.get.current(),
|
||||||
|
path: "search",
|
||||||
|
newValue: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -123,7 +130,7 @@ var search = (function() {
|
|||||||
var init = function() {
|
var init = function() {
|
||||||
bind.input();
|
bind.input();
|
||||||
bind.clear();
|
bind.clear();
|
||||||
mod.searching.set();
|
mod.searching.close();
|
||||||
render.engine();
|
render.engine();
|
||||||
render.focus();
|
render.focus();
|
||||||
render.searching();
|
render.searching();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
var version = (function() {
|
var version = (function() {
|
||||||
|
|
||||||
var current = "4.4.0";
|
var current = "4.4.1";
|
||||||
|
|
||||||
var name = "Enchanting Aardvark";
|
var name = "Enchanting Aardvark";
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "nightTab",
|
"name": "nightTab",
|
||||||
"short_name": "nightTab",
|
"short_name": "nightTab",
|
||||||
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
|
||||||
"version": "4.4.0",
|
"version": "4.4.1",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"chrome_url_overrides": {
|
"chrome_url_overrides": {
|
||||||
"newtab": "index.html"
|
"newtab": "index.html"
|
||||||
|
Loading…
Reference in New Issue
Block a user