Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

widget positioning

  • Loading branch information...
commit 400682b317d25634c8770d34957401ba0d5708bc 1 parent c0b63fa
Martin Halamíček authored
2  greypages.js
@@ -64,7 +64,7 @@
64 64
 					#goodDataGreyPagesBookmarlet { \
65 65
 						position: absolute; \
66 66
 						z-index: 9999; \
67  
-						left: 50%; \
  67
+						right: 0; \
68 68
 					} \
69 69
 					"
70 70
 		}));
2  greypages.min.js
... ...
@@ -1,4 +1,4 @@
1 1
 (function(c){function f(e){if(void 0===c.jQuery){var a=!1,d=document.createElement("script");d.src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js";d.onload=d.onreadystatechange=function(){if(!a&&(!this.readyState||"loaded"==this.readyState||"complete"==this.readyState))a=!0,c.jQuery.noConflict(),e(c.jQuery)};document.getElementsByTagName("head")[0].appendChild(d)}else e(c.jQuery)}var a=document.location.hash.match(/\/gdc\/projects\/([a-z0-9]+)/i);if(!a||!a[1])alert("GD project id not found.");
2  
-else{var a=a[1],a="/gdc/md/"+a,g=[{title:"Go to grey pages",url:a},{title:"Validate project",url:a+"/validate"},{title:"Export project",url:a+"/maintenance/export"},{title:"Import project",url:a+"/maintenance/import"},{title:"Execute MAQL",url:a+"/ldm/manage"}];f(function(a){if(a(c).data("goodDataGreyPagesBookmarletLoaded"))a("#goodDataGreyPagesBookmarlet").show();else{a("head").append(a("<style></style>",{type:"text/css",text:"#goodDataGreyPagesBookmarlet { position: absolute; z-index: 9999; left: 50%; } "}));
  2
+else{var a=a[1],a="/gdc/md/"+a,g=[{title:"Go to grey pages",url:a},{title:"Validate project",url:a+"/validate"},{title:"Export project",url:a+"/maintenance/export"},{title:"Import project",url:a+"/maintenance/import"},{title:"Execute MAQL",url:a+"/ldm/manage"}];f(function(a){if(a(c).data("goodDataGreyPagesBookmarletLoaded"))a("#goodDataGreyPagesBookmarlet").show();else{a("head").append(a("<style></style>",{type:"text/css",text:"#goodDataGreyPagesBookmarlet { position: absolute; z-index: 9999; right: 0; } "}));
3 3
 var b=a('<div id="goodDataGreyPagesBookmarlet" class="gdc-menu-dark"><ul></ul></div>'),d=b.find("ul");d.append('<li class="mi label noHover"><a><span title="Project maintenace">Project maintenance</span></a></li>');a.each(g,function(c,b){d.append(a('<li><a href="'+b.url+'" target="_blank">'+b.title+"</a></li>"))});a("body").prepend(b);a("body").click(function(){b.hide()});b.click(function(a){a.stopPropagation()});b.delegate("a","click",function(){b.hide()});a(c).data("goodDataGreyPagesBookmarletLoaded",
4 4
 !0)}})}})(window);

0 notes on commit 400682b

Please sign in to comment.
Something went wrong with that request. Please try again.