Import xinha so we can switch from htmlarea and fix a bunch of in-browser issues that htmlarea has
This commit is contained in:
60
xinha/plugins/InsertAnchor/popups/insert_anchor.html
Normal file
60
xinha/plugins/InsertAnchor/popups/insert_anchor.html
Normal file
@@ -0,0 +1,60 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Insert Anchor</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
|
||||
<script type="text/javascript" src="../../../popups/popup.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.resizeTo(300, 150);
|
||||
|
||||
function Init() {
|
||||
__dlg_translate("InsertAnchor");
|
||||
__dlg_init();
|
||||
window.resizeTo(400, 180);
|
||||
var param = window.dialogArguments;
|
||||
if (param) {
|
||||
document.getElementById("name").value = param["name"];
|
||||
}
|
||||
document.getElementById("name").focus();
|
||||
};
|
||||
|
||||
function onOK() {
|
||||
// pass data back to the calling window
|
||||
var param = new Object();
|
||||
param["name"] = document.getElementById("name").value;
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onDelete() {
|
||||
// pass data back to the calling window
|
||||
var param = new Object();
|
||||
param["name"] = "";
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="dialog" onload="Init()">
|
||||
<div class="title">Insert Anchor</div>
|
||||
<form>
|
||||
<table border="0" style="width: 100%;">
|
||||
<tr>
|
||||
<td class="label">Anchor name</td>
|
||||
<td><input type="text" id="name" style="width: 100%" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div id="buttons">
|
||||
<button type="submit" name="ok" onclick="return onOK();">OK</button>
|
||||
<button type="button" name="delete" onclick="return onDelete();">Delete</button>
|
||||
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user