upload file with big mamufas at the beggining

2.0
Javier Alvarez 12 years ago committed by David Arango
parent ac76c8da6e
commit a388419a1e

@ -57,11 +57,6 @@
<aside class="right">
<div class="head">
<a href="#create_new" class="button green create_new">Create a new table</a>
<div class="drag_mamufas">
<span class="file"></span>
<p class="bigger strong">Drop here your file to create a new table with it</p>
<div class="mask"></div>
</div>
</div>
<div class="content">
<ul></ul>
@ -72,3 +67,9 @@
</div>
</article>
<div class="drag_mamufas">
<span class="file"></span>
<p class="bigger strong">Drop here your file to create a new table with it</p>
<div class="mask"></div>
</div>

@ -489,208 +489,6 @@ cdb.admin.CreateTableDialog = cdb.ui.common.Dialog.extend({
},
// _changeState: function(mode) {
// /* Change scenario depending on the app mode */
// switch (mode) {
// case "reset":
// // Remove additional and error info
// this._hideUploadError();
// // Change title
// this.$importation
// .find("h3")
// .text("New table");
// // Change description
// this.$importation
// .find("div.head p")
// .text("Choose between the following options to create a new table.");
// // Hide close
// this.$importation.find("a.close").fadeIn();
// // Remove foot description
// this.$importation.find("div.foot p").remove();
// // Enable ok button and enable dialog
// this.enable = true;
// this.option = 0;
// this.$importation.find("div.foot a.ok").addClass("disabled green").removeClass("grey");
// // Show options list
// this.$list.stop().animate({
// marginTop: "0px",
// height: "100%",
// opacity: 1
// }, 500);
// // Customize the loader
// var pos = this.$list.position();
// this.$loader
// .animate({
// top: (pos.top - 20) + "px",
// opacity: 0
// })
// .removeClass("creating uploading");
// // Show the loader
// this._hideLoader();
// break;
// case "creating":
// // Remove additional and error info
// this._hideUploadError();
// // Change title
// this.$importation
// .find("h3")
// .text("Creating your table...");
// // Change description
// this.$importation
// .find("div.head p")
// .text("Give us some second to create it and then you will be redirected...");
// // Hide close
// this.$importation.find("a.close").fadeOut();
// // Disable ok button and disabled dialog
// this.enable = false;
// this.$importation.find("div.foot a.ok").addClass("disabled");
// // Hide options list
// this.$list.animate({
// marginTop: "-30px",
// height: 0,
// opacity: 0
// }, {duration: 800, queue: true});
// // Customize the loader
// this.$loader.find("span").width("100%");
// this.$loader.find("p").text("Creating your table...")
// var pos = this.$list.position();
// this.$loader
// .css({
// top: pos.top + "px"
// })
// .addClass("creating");
// // Show the loader
// this._showLoader();
// break;
// case "uploading":
// // Change title
// this.$importation
// .find("h3")
// .text("Uploading your data");
// // Change description
// this.$importation
// .find("div.head p")
// .text("It will take us some time...");
// // Hide close
// this.$importation.find("a.close").fadeOut();
// // Disable ok button and disabled dialog
// this.enable = false;
// this.$importation.find("div.foot a.ok").addClass("disabled");
// // Hide options list
// this.$list.animate({
// marginTop: "-10px",
// height: 0,
// opacity: 0
// }, {duration: 800, queue: true});
// // Customize the loader
// var pos = this.$list.position();
// this.$loader.find("span").width("4%");
// this.$loader.find("p").text("Uploading your table...");
// this.$loader
// .css({top: '40px', opacity: '0'})
// .removeClass("creating")
// .addClass("uploading")
// .animate({
// opacity: 1,
// top: pos.top
// },300)
// // Show the loader
// this._showLoader();
// break;
// case "importing":
// // Change title
// this.$importation
// .find("h3")
// .text("Creating your table...");
// // Changing head description
// this.$importation
// .find("div.head p")
// .text("Now, you can hide this window and your table creation will continue.");
// // Adding foot description
// var $desc_f = $("<p>").addClass("margin5 left small").text("When hiding this window, follow the progress in the bottom left corner of your screen.");
// this.$importation
// .find("div.foot")
// .append($desc_f);
// // Hide close
// this.$importation.find("a.close").fadeOut();
// // Ok button now hides the dialog
// this.enable = true;
// this.option = 3;
// this.$importation.find("div.foot a.ok")
// .addClass("grey")
// .removeClass("green disabled")
// .text("Hide this window");
// // Hide options list
// this.$list.animate({
// marginTop: "-10px",
// height: 0,
// opacity: 0
// }, {duration: 800, queue: true});
// // Customize the loader
// this.$loader.find("span").width("100%");
// this.$loader.find("p").text("Creating your table...")
// var pos = this.$list.position();
// this.$loader
// .removeClass("uploading")
// .addClass("creating")
// .animate({
// left: "40px",
// top: pos.top
// },300);
// // Show the loader
// this._showLoader();
// break;
// default:
// }
// },
/**
* Proper dialog bindings (ok, close, hide, keydown,...)
*/

Loading…
Cancel
Save