Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- fix opera and firefox issues

  • Loading branch information...
commit b9a7f3469fd23d30f72f717a8d5321c930307ad2 1 parent c573d11
@jeremychone jeremychone authored
View
13 sample/taskmanager/css/ProjectView.css
@@ -9,8 +9,10 @@
height: 100%;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
+ -o-transform-style: preserve-3d;
-webkit-transition: -webkit-transform .5s;
-moz-transition: -moz-transform .5s;
+ -o-transition: -o-transform .5s;
}
.ProjectView .card-face{
@@ -40,12 +42,14 @@
.ProjectView .card-back{
-webkit-transform: rotateY( -180deg );
-moz-transform: rotateY( -180deg );
+ -o-transform:rotateY(-180deg); /* Opera */
transform: rotateY( -180deg );
}
.ProjectView .card.flipped {
-webkit-transform: rotateY( 180deg );
-moz-transform: rotateY( 180deg );
+ -o-transform:rotateY(-180deg); /* Opera */
transform: rotateY( 180deg );
}
@@ -211,6 +215,9 @@
.delete-controls-inner.show{
-webkit-transform: translate(-140px,0px);
+ -moz-transform: translate(-140px,0px);
+ -o-transform:translate(-140px,0px); /* Opera */
+ transform: translate(-140px,0px);
}
/* --- /delete controls --- */
@@ -242,5 +249,9 @@
/* --- /deleteMode --- */
-
+/* --------- for opera --------- */
+.is-opera .card-back{
+ display:none;
+}
+/* --------- /for opera --------- */
View
6 sample/taskmanager/index.html
@@ -49,7 +49,11 @@
<!-- Display the main screen (which will display the sub components) -->
<script type="text/javascript">
$(function(){
- brite.display("MainView","#pageBody");
+ if($.browser.opera){
+ $("body").addClass("is-opera");
+ }
+
+ brite.display("MainView","#pageBody");
});
</script>
View
23 sample/taskmanager/js/ProjectView.js
@@ -40,7 +40,7 @@
},
// User click on the delete icon
- "click; section.header .del" : startDeleteMode,
+ "click; section.heading .del" : startDeleteMode,
// Handle the task rename
"focus; [data-entity='Task'] input[data-prop='title']": startTaskRename,
@@ -77,12 +77,22 @@
console.log("projectId: " + view.projectId);
brite.display("ProjectEdit",view.$cardBack,{projectId:view.projectId}).done(function(){
view.$card.addClass("flipped");
+
+ /* --------- for opera --------- */
+ $("body.is-opera .card-front").hide();
+ $("body.is-opera .card-back").show();
+ /* --------- /for opera --------- */
});
}
function endProjectEdit(){
var view = this;
- view.$card.removeClass("flipped");
+ view.$card.removeClass("flipped");
+
+ /* --------- for opera --------- */
+ $("body.is-opera .card-front").show();
+ $("body.is-opera .card-back").hide();
+ /* --------- /for opera --------- */
}
// --------- /Event Handlers for Project Edit --------- //
@@ -182,7 +192,7 @@
// create the delete-controls element
var $controls = $($("#tmpl-ProjectView-delControls").render());
- view.$el.find("section.header").append($controls);
+ view.$el.find("section.heading").append($controls);
var $inner = $controls.find(".delete-controls-inner");
@@ -241,6 +251,13 @@
$controls.find(".delete-controls-inner").removeClass("show").on("btransitionend",function(){
$controls.remove();
});
+
+ /* --------- for opera and mozilla--------- */
+ if($.browser.opera || $.browser.mozilla){
+ $controls.find(".delete-controls-inner").removeClass("show")
+ $controls.remove();
+ }
+ /* --------- /for opera and mozilla--------- */
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.