forked from 0x2620/oxjs
some work on Ox.Editable
This commit is contained in:
parent
925aa8d627
commit
a58dc765d9
7 changed files with 58 additions and 33 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<title>OxJS Editable Demo</title
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<script type="text/javascript" src="../../build/Ox.js"></script>
|
||||
<script type="text/javascript" src="../../dev/Ox.js"></script>
|
||||
<script type="text/javascript" src="js/editable.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
|||
|
|
@ -2,21 +2,6 @@ Ox.load('UI', {debug: true}, function() {
|
|||
|
||||
var $box = Ox.Element()
|
||||
.css({width: '512px', height: '512px', margin: '8px'})
|
||||
.bind({
|
||||
click: function(e) {
|
||||
if ($(e.target).is('a')) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
})
|
||||
.bindEvent({
|
||||
singleclick: function(e) {
|
||||
var $target = $(e.target);
|
||||
if ($target.is('a')) {
|
||||
Ox.print('href=' + $target.attr('href'));
|
||||
}
|
||||
}
|
||||
})
|
||||
.appendTo(Ox.UI.$body);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue