summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
diff options
context:
space:
mode:
authorLutty Yang <lutty@wcan.in>2015-09-20 12:08:44 +0800
committerLutty Yang <lutty@wcan.in>2015-09-20 12:08:44 +0800
commit5a0c3bbfa96ea7b4845402e1f776744a86df6cb7 (patch)
treead13b31d5fc579f660ffb159a0dc9c2f00211d7c /themes/luci-theme-material/htdocs/luci-static/material/js/script.js
parentfea55f75c75859856cc607fe619449a8c549f180 (diff)
luci-theme-material: add button select input theme
add button select input theme Signed-off-by: Lutty Yang <lutty@wcan.in>
Diffstat (limited to 'themes/luci-theme-material/htdocs/luci-static/material/js/script.js')
-rwxr-xr-xthemes/luci-theme-material/htdocs/luci-static/material/js/script.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
index dcf8a03d43..604c4da8a8 100755
--- a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
+++ b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
@@ -180,6 +180,7 @@
if (currentNode.indexOf(getUrlNode(href)) != -1){
ulNode.click();
+ ulNode.next(".slide-menu").stop(true,true);
lastNode = that.parent();
tree = [trimText(ulNode.data("title")), trimText(that.data("title"))];
lastNode.addClass("active");
@@ -215,7 +216,7 @@
$(".main > .main-left > .nav > .slide > .slide-menu > li > a").click(function () {
if (lastNode != undefined) lastNode.removeClass("active");
$(this).parent().addClass("active");
- $(".main > .loading").fadeIn();
+ $(".main > .loading").fadeIn("fast");
return true;
});
@@ -225,7 +226,7 @@
$(".main > .main-left > .nav > .slide > .slide-menu > li").click(function () {
if (lastNode != undefined) lastNode.removeClass("active");
$(this).addClass("active");
- $(".main > .loading").fadeIn();
+ $(".main > .loading").fadeIn("fast");
window.location = $($(this).find("a")[0]).attr("href");
return;
});
@@ -260,7 +261,7 @@
that.click(function () {
var href = that.attr("href");
if (href.indexOf("#") == -1){
- $(".main > .loading").fadeIn();
+ $(".main > .loading").fadeIn("fast");
return true;
}
});
@@ -318,6 +319,7 @@
$(".main-right").focus();
$(".main-right").blur();
+ $("input").attr("size", "0");
if (mainNodeName != undefined){
console.log(mainNodeName);
@@ -330,6 +332,14 @@
$(".main-right").blur();
});
break;
+ case "node-status-firewall":
+ var button = $(".node-status-firewall > .main fieldset li > a");
+ button.addClass("cbi-button cbi-button-reset a-to-btn");
+ break;
+ case "node-system-reboot":
+ var button = $(".node-system-reboot > .main > .main-right p > a");
+ button.addClass("cbi-button cbi-input-reset a-to-btn");
+ break;
}
}
})(jQuery);