1
0
Fork 0

Stuff for draggables

master
Matthieu Lalonde 12 years ago committed by xSmurf
parent 819af90b48
commit 3caab92099

@ -446,4 +446,51 @@ div#screen canvas#processcanvas {
background-repeat: no-repeat;
background-position: 0 0;
background-image: url(data:image/gif;base64,R0lGODlhDgAOAKUAADQyNJyanGxqbNTW1ExKTOzu7LS2tDw+PFRWVHx+fOTi5Pz+/MTCxDw6PKyqrHR2dFRSVPT29ERGRFxeXOzq7DQ2NGxubNze3ExOTPTy9Ly+vERCRFxaXIyOjOTm5MzKzLSytP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBwAhACwAAAAADgAOAAAGYcCQcEgsGo/CDwICoYQSjGMCAPAsJIDOgjhoHCrOCwdgIE4/IGfI00AQMZItUVCJDDEE+dACsAsfAANCCwYZBxB6HwAICiELGxAADkUBABUZj4t6QxoTmAReIEiDC6WjR0EAIfkECQcAIwAsAAAAAA4ADgCFNDI0nJqcbGps1NbUTE5M7O7sjIqMREJEtLa0dHZ05OLkPDo8XFpc/Pr8xMbErKqsdHJ0lJKUTEpM7OrsNDY0bG5s3N7cVFJU9Pb0jI6MREZEvLq8fH585ObkPD48ZGJk/P78zMrMrK6s////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmnAkXBUaAyPSIUkMEEiBwcAAQRyjkQUACAwQmSqw8FCEyI0OQDEER0aDYSdxeVI0ICHAgpmSJDchRUAe0IQAG8jCkQHU0MhFAwjIAwKAgAPSAEGIw4AWQl/QkaBFA9GVogZBw6nRw0WR0EAIfkECQcAIAAsAAAAAA4ADgCFNDI0nJ6c1NbUXFpcvL68REZ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RERkTMysw0NjSkpqRsamzc3txMTky8urx8fnz08vREQkTExsRcWlyMjoz8/vx0dnTk5uT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGa0CTcEgsFkcjI5FhmlQaiSKjIBCZQBEAQJQ0MRYXwIci1IQABaIBUIEMS5cQcVMZaYiZC1m4IXRNByMNAHsmJAADQxYRDxF/FgARdyYjCgAXEx5DAZcCHCYYHyIORRICFwojDIVGDExKsERBADs=);
}
.ui-draggable-dragging {
z-index: 50000;
}
@-webkit-keyframes pulse {
0% {opacity: 0;color: #000;}
25% {opacity: 0.25;}
50% {opacity: 0.50;}
75% {opacity: 0.75;}
100% {opacity: 1;color: #fff;}
}
.droppable {
-webkit-animation: pulse 1s infinite alternate;
-moz-animation: pulse 1s infinite alternate;
opacity: 0;
color: #FFF;
background-color: #4966B1;/* Old browsers */
background: -moz-linear-gradient(top, #6086e5 0%, #6086e5 39%, #4966b1 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6086e5), color-stop(39%,#6086e5), color-stop(100%,#4966b1)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #6086e5 0%,#6086e5 39%,#4966b1 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #6086e5 0%,#6086e5 39%,#4966b1 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #6086e5 0%,#6086e5 39%,#4966b1 100%); /* IE10+ */
background: linear-gradient(to bottom, #6086e5 0%,#6086e5 39%,#4966b1 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6086e5', endColorstr='#4966b1',GradientType=0 ); /* IE6-9 */
}
@-webkit-keyframes pulse-btn {
0% {opacity: 0.75;}
100% {opacity: 1;}
}
.btn-primary {
-webkit-animation: pulse-btn 2s infinite alternate;
-moz-animation: pulse-btn 2s infinite alternate;
}
.btn-primary:hover,
.btn-primary.hover,
.btn-primary:active,
.btn-primary.active {
-webkit-animation: none;
-moz-animation: none;
opacity: 1;
}

@ -347,7 +347,11 @@ _
that._modalAbout = $(tmplModalAbout);
that._modalAbout.on("hidden", function __fnEventAppModalAboutClosed(event) {
// FIXME: Doesn't seem to work
// FIXME: Doesn't seem to work after 50 >_<
if (window.history.length === 50) {
window.history.length = 0;
that.historyStart = 1;
}
console.log(window.history.length, that.historyStart);
if (window.history.length === that.historyStart) {
that.navigate("", false);

@ -119,6 +119,8 @@ _
that._initLayout();
}
that.Layout.panes.north.show();
that.Layout.panes.center.show();
that.Views.List.show();
this.$el.show();
//console.debug(that.Server.client.collections.databases[that.Server.client.collections.databasesInfo.get("dmap_listing").at(0).id].get("dmap_listing"));
@ -128,6 +130,8 @@ _
var that = this
;
that.Layout.panes.north.hide();
that.Layout.panes.center.hide();
that.Views.List.hide();
this.$el.hide();
}

@ -293,6 +293,8 @@ _
//this.$el.find("table:first").html("<tr><td><h1>" + this.type + "</h1></td></tr>");
this.$el.find("tr").draggable();
this.$el.find("td").draggable();
return this;
}
@ -321,6 +323,7 @@ _
, bDeferRender: true
, bStateSave: false//true
, bScrollCollapse: true
, bJQueryUI: true
, sHeightMatch: "auto"
, sEmptyTable: ""
//, bProcessing: true
@ -394,6 +397,8 @@ _
}
that.$el.show();
that.resize();
}
, hide: function () {

@ -75,6 +75,10 @@ _
$(event.target).parents("ul:first").find("> li:first-child").addClass("selected");
}, 10);
});
this.$el.find("> ul > li:first").droppable({
activeClass: "droppable"
});
}
, select: function (serverModel) {

Loading…
Cancel
Save