Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

basic modal dialog for uploader

  • Loading branch information...
commit 6911ffb7cfce672b4fd889d5565f391dddd9e9b0 1 parent 2f9f46b
@maxogden authored
View
BIN  module/MOD-INF/classes/com/maxogden/refine/uploader/Uploader.class
Binary file not shown
View
28 module/scripts/project-injection.js
@@ -1,24 +1,36 @@
var upload = function() {
- body = {};
- updateOptions = {};
-
Refine.postProcess(
"uploader",
"uploader",
- {},
- body,
- updateOptions,
- {}
+ {},{},{},
+ {
+ "onDone": function(response) {
+ console.log(response);
+ }
+ }
);
}
+var showUploaderDialog = function() {
+ var dialog = $(DOM.loadHTML("uploader", "scripts/uploader-dialog.html"));
+
+ var elmts = DOM.bind(dialog);
+ elmts.dialogHeader.text("Data Uploader");
+
+ var level = DialogSystem.showDialog(dialog);
+
+ elmts.okButton.click(function() {
+ DialogSystem.dismissUntil(level - 1);
+ });
+};
+
MenuSystem.insertAfter(
ExporterManager.MenuItems,
[ "core/export-templating" ],
{
"id": "uploader/uploader",
"label": "Upload...",
- "click": upload
+ "click": showUploaderDialog
}
);
View
9 module/scripts/uploader-dialog.html
@@ -0,0 +1,9 @@
+<div id="uploader-dialog" class="dialog-frame" style="width: 300px;">
+ <div class="dialog-header" bind="dialogHeader">Data Uploader</div>
+ <div class="dialog-body" bind="dialogBody">
+ hello
+ </div>
+ <div class="dialog-footer" bind="dialogFooter"><div class="grid-layout layout-normal layout-full">
+ <button class="button" bind="okButton" id="uploader-ok">Ok</button>
+ </div>
+</div>

0 comments on commit 6911ffb

Please sign in to comment.
Something went wrong with that request. Please try again.