hooking up open/close logic for modal and menus
This commit is contained in:
parent
11a036a2b0
commit
770210a45b
@ -19,6 +19,7 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="menu-overlay" style="display: none; z-index: 101; "> </div>
|
||||
<ul class="menu">
|
||||
<li><a class="transform" href="JavaScript:void(0);">Transform...</a></li>
|
||||
</ul>
|
||||
@ -39,7 +40,7 @@
|
||||
<div class="dialog-overlay" style="display: none; z-index: 101; "> </div>
|
||||
<div class="dialog-container ui-draggable" style="display: none; z-index: 102; top: 101px; ">
|
||||
<div class="dialog-frame" style="width: 700px; visibility: visible; ">
|
||||
<div class="dialog-border">
|
||||
<div id="dialog-content" class="dialog-border">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@ -200,9 +201,9 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dialog-footer" bind="dialogFooter">
|
||||
<button class="button" bind="okButton"> OK </button>
|
||||
<button class="button" bind="cancelButton">Cancel</button>
|
||||
<div class="dialog-footer">
|
||||
<button class="okButton button"> OK </button>
|
||||
<button class="cancelButton button">Cancel</button>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
||||
@ -21,6 +21,18 @@ app.routes = {
|
||||
e.preventDefault();
|
||||
}))
|
||||
|
||||
$( '.transform' ).live('click', ( function( e ) {
|
||||
$('.dialog-overlay').show();
|
||||
$('.dialog-container').show();
|
||||
util.render('bulkEdit', 'dialog-content');
|
||||
$('.cancelButton').click(function(e) {
|
||||
$('.dialog-overlay').hide();
|
||||
$('.dialog-container').hide();
|
||||
})
|
||||
$('.menu').hide();
|
||||
$('.menu-overlay').hide();
|
||||
e.preventDefault();
|
||||
}))
|
||||
},
|
||||
page: function(id) {
|
||||
removalist.getPageSize();
|
||||
@ -34,6 +46,10 @@ app.after = {
|
||||
dataTable: function() {
|
||||
$('.column-header-menu').click(function(e) {
|
||||
var offset = $(e.target).offset();
|
||||
$('.menu-overlay').show().click(function(e) {
|
||||
$(e.target).hide();
|
||||
$('.menu').hide();
|
||||
});
|
||||
$('.menu').show().css({top: offset.top + 20, left: offset.left});
|
||||
})
|
||||
}
|
||||
|
||||
@ -43,6 +43,15 @@
|
||||
.loading { background-image: url(../images/loader.gif); background-repeat: no-repeat; padding-left: 15px; background-position: 0px 3px;}
|
||||
a.button:hover span.icon.loading { background-image: url(../images/loader-blue.gif); }
|
||||
#couchLogo {float: left; margin-right: 5px; margin-top: 3px}
|
||||
|
||||
.menu-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
ul.menu {
|
||||
display: none;
|
||||
outline-style: none;
|
||||
|
||||
@ -20,8 +20,7 @@ After you install it, visit this link to open Removalist:
|
||||
|
||||
Copy these utilities to the new db:
|
||||
|
||||
|
||||
curl -X POST http://user:pass@YOURCOUCH/\_replicate -d '{"source":"http://max.couchone.com/apps","target":"YOURDB", "doc\_ids":["_design/removalist"]}' -H "Content-type: application/json"
|
||||
curl -X POST http://user:pass@YOURCOUCH/_replicate -d '{"source":"http://max.couchone.com/apps","target":"YOURDB", "doc_ids":["_design/removalist"]}' -H "Content-type: application/json"
|
||||
|
||||
### In-depth install
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user