mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
Added a check to see if Firefox 3.7+ is being used. It is required
for css-transforms.
This commit is contained in:
parent
de1d6c1803
commit
44b3f3c637
@ -354,7 +354,11 @@ $(".tab").data('isDragging', false)
|
||||
.droppable(window.Groups.dropOptions);
|
||||
|
||||
$(".tab").click(function(){
|
||||
// ZOOM!
|
||||
// ZOOM!
|
||||
|
||||
var ffVersion = parseFloat(navigator.userAgent.match(/\d{8}.*(\d\.\d)/)[1]);
|
||||
if( ffVersion < 3.7 ) Utils.error("css-transforms require Firefox 3.7+");
|
||||
|
||||
var [w,h] = [$(this).width(), $(this).height()];
|
||||
var origPos = $(this).position();
|
||||
var scale = window.innerWidth/w;
|
||||
|
@ -32,7 +32,10 @@ var Page = {
|
||||
if( e.target.className == "close" ){
|
||||
$(this).find("canvas").data("link").tab.close(); }
|
||||
else {
|
||||
if(!$(this).data('isDragging')) {
|
||||
if(!$(this).data('isDragging')) {
|
||||
var ffVersion = parseFloat(navigator.userAgent.match(/\d{8}.*(\d\.\d)/)[1]);
|
||||
if( ffVersion < 3.7 ) Utils.error("css-transforms require Firefox 3.7+");
|
||||
|
||||
// ZOOM!
|
||||
var [w,h] = [$(this).width(), $(this).height()];
|
||||
var origPos = $(this).position();
|
||||
|
Loading…
Reference in New Issue
Block a user