[Commits] r1824 - in sandbox/cmoullet/ux/LayerManager/ux: data downloadify/js widgets

commits at geoext.org commits at geoext.org
Wed Jan 27 09:38:09 CET 2010


Author: asaunier
Date: 2010-01-27 09:38:09 +0100 (Wed, 27 Jan 2010)
New Revision: 1824

Modified:
   sandbox/cmoullet/ux/LayerManager/ux/data/Export.js
   sandbox/cmoullet/ux/LayerManager/ux/downloadify/js/downloadify.min.js
   sandbox/cmoullet/ux/LayerManager/ux/widgets/LayerManagerExportPanel.js
Log:
added missing @include in LayerManager UX


Modified: sandbox/cmoullet/ux/LayerManager/ux/data/Export.js
===================================================================
--- sandbox/cmoullet/ux/LayerManager/ux/data/Export.js	2010-01-27 05:58:54 UTC (rev 1823)
+++ sandbox/cmoullet/ux/LayerManager/ux/data/Export.js	2010-01-27 08:38:09 UTC (rev 1824)
@@ -16,6 +16,8 @@
  * @include OpenLayers/Projection.js
  * @include OpenLayers/Util.js
  * @include LayerManager/ux/data/FormatStore.js
+ * @include LayerManager/ux/utils/flash.js
+ * @include LayerManager/ux/widgets/LayerManagerExportWindow.js
  */
 
 /** static: method[GeoExt.ux.data.Export]

Modified: sandbox/cmoullet/ux/LayerManager/ux/downloadify/js/downloadify.min.js
===================================================================
--- sandbox/cmoullet/ux/LayerManager/ux/downloadify/js/downloadify.min.js	2010-01-27 05:58:54 UTC (rev 1823)
+++ sandbox/cmoullet/ux/LayerManager/ux/downloadify/js/downloadify.min.js	2010-01-27 08:38:09 UTC (rev 1824)
@@ -1,8 +1,11 @@
 /* Downloadify 0.1 (c) 2009 by Douglas Neiner. Licensed under the MIT license */
 /* See http://github.com/dcneiner/Downloadify for license and more info */
+/**
+ * @include LayerManager/ux/downloadify/js/swfobject.js
+ */
 (function(){Downloadify=window.Downloadify={queue:{},uid:(new Date).getTime(),getTextForSave:function(b){if(b=Downloadify.queue[b])return b.getData();return""},getFileNameForSave:function(b){if(b=Downloadify.queue[b])return b.getFilename();return""},saveComplete:function(b){(b=Downloadify.queue[b])&&b.complete();return true},saveCancel:function(b){(b=Downloadify.queue[b])&&b.cancel();return true},saveError:function(b){(b=Downloadify.queue[b])&&b.error();return true},addToQueue:function(b){Downloadify.queue[b.queue_name]=
 b},getUID:function(b){if(b.id=="")b.id="downloadify_"+Downloadify.uid++;return b.id}};Downloadify.create=function(b,c){b=typeof b=="string"?document.getElementById(b):b;return new Downloadify.Container(b,c)};Downloadify.Container=function(b,c){var a=this;a.el=b;a.enabled=true;a.dataCallback=null;a.filenameCallback=null;a.data=null;a.filename=null;function f(){a.options=c;if(!a.options.append)a.el.innerHTML="";a.flashContainer=document.createElement("span");a.el.appendChild(a.flashContainer);a.queue_name=
 Downloadify.getUID(a.flashContainer);if(typeof a.options.filename==="function")a.filenameCallback=a.options.filename;else if(a.options.filename)a.filename=a.options.filename;if(typeof a.options.data==="function")a.dataCallback=a.options.data;else if(a.options.data)a.data=a.options.data;var d={queue_name:a.queue_name,width:a.options.width,height:a.options.height},e={allowScriptAccess:"always"},g={id:a.flashContainer.id,name:a.flashContainer.id};if(a.options.enabled===false)a.enabled=false;if(a.options.transparent===
 true)e.wmode="transparent";if(a.options.downloadImage)d.downloadImage=a.options.downloadImage;swfobject.embedSWF(a.options.swf,a.flashContainer.id,a.options.width,a.options.height,"10",null,d,e,g);Downloadify.addToQueue(a)}a.enable=function(){var d=document.getElementById(a.flashContainer.id);d.setEnabled(true);a.enabled=true};a.disable=function(){var d=document.getElementById(a.flashContainer.id);d.setEnabled(false);a.enabled=false};a.getData=function(){if(!a.enabled)return"";return a.dataCallback?
 a.dataCallback():a.data?a.data:""};a.getFilename=function(){return a.filenameCallback?a.filenameCallback():a.filename?a.filename:""};a.complete=function(){typeof a.options.onComplete==="function"&&a.options.onComplete()};a.cancel=function(){typeof a.options.onCancel==="function"&&a.options.onCancel()};a.error=function(){typeof a.options.onError==="function"&&a.options.onError()};f()};Downloadify.defaultOptions={swf:"media/downloadify.swf",downloadImage:"images/download.png",width:100,height:30,transparent:true,
-append:false}})();typeof jQuery!="undefined"&&function(b){b.fn.downloadify=function(c){return this.each(function(){c=b.extend({},Downloadify.defaultOptions,c);var a=Downloadify.create(this,c);b(this).data("Downloadify",a)})}}(jQuery);
\ No newline at end of file
+append:false}})();typeof jQuery!="undefined"&&function(b){b.fn.downloadify=function(c){return this.each(function(){c=b.extend({},Downloadify.defaultOptions,c);var a=Downloadify.create(this,c);b(this).data("Downloadify",a)})}}(jQuery);

Modified: sandbox/cmoullet/ux/LayerManager/ux/widgets/LayerManagerExportPanel.js
===================================================================
--- sandbox/cmoullet/ux/LayerManager/ux/widgets/LayerManagerExportPanel.js	2010-01-27 05:58:54 UTC (rev 1823)
+++ sandbox/cmoullet/ux/LayerManager/ux/widgets/LayerManagerExportPanel.js	2010-01-27 08:38:09 UTC (rev 1824)
@@ -9,7 +9,10 @@
 Ext.namespace('GeoExt.ux');
 
 /**
+ * @include OpenLayers/Lang.js
  * @include LayerManager/ux/data/Export.js
+ * @include LayerManager/ux/data/FormatStore.js
+ * @include LayerManager/ux/utils/flash.js
  */
 
 /** api: (define)



More information about the Commits mailing list