source: trunk/plugins/ImageManager/newFolder.html @ 943

Last change on this file since 943 was 799, checked in by ray, 13 years ago

Ticket #908 Prompts broken in IE7: fixed for EFM & ImageManager?

File size: 2.2 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html>
3<head>
4<title>New Folder</title>
5 <script type="text/javascript" src="../../popups/popup.js"></script>
6 <style type="text/css">
7 /*<![CDATA[*/
8 html, body {  background-color: ButtonFace;  color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0; padding: 0;}
9body { padding: 5px; }
10 .title { background-color: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; border-bottom: 1px  solid black; letter-spacing: 2px;}
11select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
12.buttons { width: 70px; text-align: center; }
13form { padding: 0px;  margin: 0;}
14form .elements{
15        padding: 10px; text-align: center;
16}
17 /*]]>*/
18 </style>
19<script type="text/javascript" src="assets/popup.js"></script>
20<script type="text/javascript">
21/*<![CDATA[*/
22        window.resizeTo(300, 160);
23
24    if(window.opener)
25        HTMLArea = window.opener.HTMLArea;
26
27        init = function ()
28        {
29                __dlg_init();
30                __dlg_translate('ImageManager');
31                document.getElementById("f_foldername").focus();
32        };
33
34        function onCancel()
35        {
36                __dlg_close(null);
37                return false;
38        }
39
40        function onOK()
41        {
42                 // pass data back to the calling window
43          var fields = ["f_foldername"];
44          var param = new Object();
45          for (var i in fields) {
46                var id = fields[i];
47                var el = document.getElementById(id);
48                param[id] = el.value;
49          }
50          __dlg_close(param);
51          return false;
52        }
53
54        function addEvent(obj, evType, fn)
55        {
56                if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; }
57                else if (obj.attachEvent) {  var r = obj.attachEvent("on"+evType, fn);  return r;  }
58                else {  return false; }
59        }
60
61        addEvent(window, 'load', init);
62//-->
63</script>
64</head>
65<body >
66<div class="title">New Folder</div>
67<form action="">
68<div class="elements">
69        <label for="f_foldername">Folder Name:</label>
70        <input type="text" id="f_foldername" />
71</div>
72<div style="text-align: right;">
73          <hr />
74          <button type="button" class="buttons" onclick="return onOK();">OK</button>
75          <button type="button" class="buttons" onclick="return onCancel();">Cancel</button>
76</div>
77</form>
78</body>
79</html>
Note: See TracBrowser for help on using the repository browser.