Added a check to see if Firefox 3.7+ is being used. It is required

for css-transforms.
This commit is contained in:
aza@More-Better-Internet.local 2010-03-19 13:46:22 -07:00
parent de1d6c1803
commit 44b3f3c637
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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();