Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2015-05-31 17:50:50 +0300
committerChaoyi Zha <summermontreal@gmail.com>2015-05-31 17:50:50 +0300
commitcfdb0b97b2fe856efc32e56cd8cb4bb56cb8aa91 (patch)
tree3ce9732634ae777515d8b174b17e1512d61c62d5
parentc389f46d7dc8725425db9205ff91f2173fded9ea (diff)
Add direct disable JS handler
-rw-r--r--js/ucp.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/js/ucp.js b/js/ucp.js
index bc812e1..c14fac5 100644
--- a/js/ucp.js
+++ b/js/ucp.js
@@ -10,7 +10,16 @@ $(document).ready(function() {
window.location.hash = e.target.hash;
});
});
-
+function customDisableLink() {
+ var baseval = $("#linkAction").val();
+ dodisable(baseval);
+ window.alert("Disabled.");
+}
+function customEnableLink() {
+ var baseval = $("#linkAction").val();
+ doenable(baseval);
+ window.alert("Enabled.");
+}
function dodisable(baseval) {
//var baseval = $(this).attr('id');
var basevalr = baseval;