Ejemplo n.º 1
0
 .on("click", "a", function (e) {
     var $target = $(e.target);
     if ($target.hasClass("undo-remove")) {
         ExtensionManager.markForRemoval($target.attr("data-extension-id"), false);
     } else if ($target.hasClass("remove")) {
         ExtensionManager.markForRemoval($target.attr("data-extension-id"), true);
     } else if ($target.hasClass("undo-update")) {
         ExtensionManager.removeUpdate($target.attr("data-extension-id"));
     } else if ($target.hasClass("undo-disable")) {
         ExtensionManager.markForDisabling($target.attr("data-extension-id"), false);
     } else if ($target.data("toggle-desc") === "expand-desc") {
         this._toggleDescription($target.attr("data-extension-id"), $target, true);
     } else if ($target.data("toggle-desc") === "trunc-desc") {
         this._toggleDescription($target.attr("data-extension-id"), $target, false);
     }
 }.bind(this))
Ejemplo n.º 2
0
 .on("click", "button.disable", function (e) {
     ExtensionManager.markForDisabling($(e.target).attr("data-extension-id"), true);
 })