You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
<?xml version="1.0" encoding="utf-8" ?>
|
|
<jsml xmlns="http://cutesoft.net/jsml"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../core/jsml.xsd">
|
|
|
|
|
|
<panel jsml-class="insertdate_dialog" dock="fill" margin="2" padding="2" overflow="visible">
|
|
<attach name="keydown" arguments="je,e">
|
|
if(e.keyCode==27)dialog.close();
|
|
</attach>
|
|
<initialize>
|
|
<![CDATA[
|
|
|
|
var d=new Date();
|
|
|
|
var arr=[];
|
|
|
|
arr.push(editor._config.command_insertdatetime())
|
|
arr.push(d.toString());
|
|
arr.push(d.toDateString());
|
|
arr.push(d.toGMTString());
|
|
arr.push(d.toLocaleString());
|
|
arr.push(d.toLocaleDateString());
|
|
arr.push(d.toLocaleTimeString());
|
|
arr.push(d.toTimeString());
|
|
|
|
for(var i=0;i<arr.length;i++)
|
|
{
|
|
var item=self.createitem(arr[i]);
|
|
self.append_child(item);
|
|
}
|
|
|
|
]]>
|
|
</initialize>
|
|
<method name="createitem">
|
|
var item=jsml.class_create_instance("rtemenuitem");
|
|
item.set_text(value);
|
|
item.attach_event("click",function()
|
|
{
|
|
editor.InsertHTML(value,true);
|
|
});
|
|
return item;
|
|
</method>
|
|
</panel>
|
|
|
|
<panel jsml-base="insertdate_dialog" />
|
|
|
|
|
|
</jsml>
|