3
Copyright (C) 2006-2008 Eric H. Jung and LeahScape, Inc.
4
http://foxyproxy.mozdev.org/
7
This source code is released under the GPL license,
8
available in the LICENSE file at the root of this installation
9
and also online at http://www.gnu.org/licenses/gpl.txt
15
var r = document.getElementById("regex").selected;
16
var p = foxyproxy_common.validatePattern(window, r, document.getElementById("pattern").value);
18
window.arguments[0].out = {name:document.getElementById("name").value,
20
isBlackList:document.getElementById("black").selected,
21
isEnabled:document.getElementById("enabled").checked,
22
caseSensitive:document.getElementById("caseSensitive").checked};
29
overlay = window.arguments[0].inn.overlay;
30
document.getElementById("name").value = window.arguments[0].inn.name;
31
document.getElementById("pattern").value = window.arguments[0].inn.pattern;
32
document.getElementById("matchtype").selectedIndex = window.arguments[0].inn.regex ? 1 : 0;
33
document.getElementById("whiteblacktype").selectedIndex = window.arguments[0].inn.black ? 1 : 0;
34
document.getElementById("enabled").checked = window.arguments[0].inn.enabled;
35
document.getElementById("caseSensitive").checked = window.arguments[0].inn.caseSensitive;