wheels 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +20 -0
- data/VERSION +1 -1
- data/app/controllers/app_configs_controller.rb +12 -0
- data/app/controllers/application_controller.rb +39 -0
- data/app/helpers/application_helper.rb +24 -2
- data/app/models/sitemap.rb +7 -0
- data/app/views/app_configs/css.css.haml +2 -0
- data/app/views/layouts/application.html.haml +21 -15
- data/app/views/pages/_form_fields.html.haml +2 -0
- data/app/views/sitemaps/index.html.haml +68 -76
- data/db/migrate/0000_devise_create_users.rb +26 -0
- data/db/migrate/0180_acts_as_taggable_on_migration.rb +28 -0
- data/lib/generators/app_layout/app_layout_generator.rb +1 -1
- data/lib/generators/{wheels/core_extensions.rb → core_extensions.rb} +42 -1
- data/lib/generators/recipes/wheels.rb +46 -0
- data/lib/generators/recipes/wheels_update.rb +18 -0
- data/lib/generators/wheels/wheels_generator.rb +3 -1
- data/lib/generators/wheels_checkout_assets/USAGE +8 -0
- data/lib/generators/wheels_checkout_assets/wheels_checkout_assets_generator.rb +9 -0
- data/lib/generators/wheels_checkout_assets_readonly/USAGE +8 -0
- data/lib/generators/wheels_checkout_assets_readonly/wheels_checkout_assets_readonly_generator.rb +10 -0
- data/lib/generators/wheels_controller/USAGE +8 -0
- data/lib/generators/wheels_controller/wheels_controller_generator.rb +14 -0
- data/lib/generators/{wheels_views → wheels_model}/USAGE +1 -1
- data/lib/generators/wheels_model/wheels_model_generator.rb +14 -0
- data/lib/generators/{update_wheels/update_wheels_generator.rb → wheels_update/wheels_update_generator.rb} +7 -13
- data/lib/generators/wheels_view/USAGE +8 -0
- data/lib/generators/wheels_view/wheels_view_generator.rb +14 -0
- data/lib/wheels/routes.rb +7 -1
- data/wheels.gemspec +44 -218
- metadata +44 -218
- data/lib/generators/app_layout/core_extensions.rb +0 -51
- data/lib/generators/update_wheels/core_extensions.rb +0 -51
- data/lib/generators/update_wheels/recipes/wheels.rb +0 -11
- data/lib/generators/update_wheels/templates/haml/app/views/layouts/application.html.haml +0 -9
- data/lib/generators/wheels/install_generator.rb +0 -25
- data/lib/generators/wheels/recipes/wheels.rb +0 -66
- data/lib/generators/wheels/templates/cancan/ability.rb +0 -13
- data/lib/generators/wheels/templates/database/postgresql.yml +0 -19
- data/lib/generators/wheels/templates/git/gitignore +0 -8
- data/lib/generators/wheels/templates/mongoid/features/step_definitions/mongoid_steps.rb +0 -4
- data/lib/generators/wheels/templates/mongoid/features/support/hooks.rb +0 -3
- data/lib/generators/wheels/views_generator.rb +0 -15
- data/lib/generators/wheels_views/LICENCE +0 -20
- data/lib/generators/wheels_views/wheels_views_generator.rb +0 -15
- data/lib/wheels/base.rb +0 -7
- data/public/404.html +0 -26
- data/public/422.html +0 -26
- data/public/500.html +0 -26
- data/public/favicon.ico +0 -0
- data/public/images/dreamy/Thumbs.db +0 -0
- data/public/images/dreamy/bg-ad-top.png +0 -0
- data/public/images/dreamy/bg-body.png +0 -0
- data/public/images/dreamy/bg-feed.gif +0 -0
- data/public/images/dreamy/bg-footer.jpg +0 -0
- data/public/images/dreamy/bg-header.jpg +0 -0
- data/public/images/dreamy/bg-menu-hover.png +0 -0
- data/public/images/dreamy/bg-menu.png +0 -0
- data/public/images/dreamy/bg-sidebar-bottom.gif +0 -0
- data/public/images/dreamy/button-feed.png +0 -0
- data/public/images/dreamy/icon-comment.png +0 -0
- data/public/images/growl/error.png +0 -0
- data/public/images/growl/growl_bottom.png +0 -0
- data/public/images/growl/growl_repeat.png +0 -0
- data/public/images/growl/growl_top.png +0 -0
- data/public/images/growl/info.png +0 -0
- data/public/images/menu/item-pointer-mover.gif +0 -0
- data/public/images/menu/item-pointer.gif +0 -0
- data/public/images/menu/lava.gif +0 -0
- data/public/images/menu/lava.png +0 -0
- data/public/images/menu/main-bg.png +0 -0
- data/public/images/menu/main-delimiter.png +0 -0
- data/public/javascripts/galleries/configure_ckeditor.js +0 -8
- data/public/javascripts/jqUrl.js +0 -28
- data/public/javascripts/jquery-validate/additional-methods.js +0 -259
- data/public/javascripts/jquery-validate/changelog.txt +0 -239
- data/public/javascripts/jquery-validate/jquery.validate.js +0 -1146
- data/public/javascripts/jquery-validate/jquery.validate.min.js +0 -16
- data/public/javascripts/jquery-validate/jquery.validate.pack.js +0 -15
- data/public/javascripts/jquery-validate/lib/jquery-1.4.2.js +0 -6240
- data/public/javascripts/jquery-validate/lib/jquery.form.js +0 -660
- data/public/javascripts/jquery-validate/lib/jquery.js +0 -4376
- data/public/javascripts/jquery-validate/lib/jquery.metadata.js +0 -122
- data/public/javascripts/jquery-validate/localization/messages_ar.js +0 -24
- data/public/javascripts/jquery-validate/localization/messages_bg.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_cn.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_cs.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_da.js +0 -20
- data/public/javascripts/jquery-validate/localization/messages_de.js +0 -20
- data/public/javascripts/jquery-validate/localization/messages_el.js +0 -24
- data/public/javascripts/jquery-validate/localization/messages_es.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_fa.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_fi.js +0 -21
- data/public/javascripts/jquery-validate/localization/messages_fr.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_he.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_hu.js +0 -20
- data/public/javascripts/jquery-validate/localization/messages_it.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_kk.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_lt.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_lv.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_nl.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_no.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_pl.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_ptbr.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_ptpt.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_ro.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_ru.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_se.js +0 -21
- data/public/javascripts/jquery-validate/localization/messages_sk.js +0 -20
- data/public/javascripts/jquery-validate/localization/messages_tr.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_tw.js +0 -23
- data/public/javascripts/jquery-validate/localization/messages_ua.js +0 -23
- data/public/javascripts/jquery-validate/localization/methods_de.js +0 -12
- data/public/javascripts/jquery-validate/localization/methods_nl.js +0 -9
- data/public/javascripts/jquery-validate/localization/methods_pt.js +0 -9
- data/public/javascripts/jquery-validate/todo +0 -172
- data/public/javascripts/jquery.cookie.js +0 -96
- data/public/javascripts/jquery.filedrop.js +0 -253
- data/public/javascripts/jquery.growl.js +0 -143
- data/public/javascripts/jquery.hotkeys.js +0 -99
- data/public/javascripts/jquery.js +0 -6240
- data/public/javascripts/jquery.jstree.js +0 -3510
- data/public/javascripts/jquery.uploadify.js +0 -26
- data/public/javascripts/jquery.validate.js +0 -1147
- data/public/javascripts/loadbehind.js +0 -0
- data/public/javascripts/menu.js +0 -247
- data/public/javascripts/sitemap_jstree.js +0 -329
- data/public/javascripts/swfobject.js +0 -4
- data/public/jstree/_demo/_dump.sql +0 -20
- data/public/jstree/_demo/_inc/__mysql_errors.log +0 -0
- data/public/jstree/_demo/_inc/class._database.php +0 -146
- data/public/jstree/_demo/_inc/class._database_i.php +0 -152
- data/public/jstree/_demo/_inc/class.tree.php +0 -602
- data/public/jstree/_demo/_install.txt +0 -6
- data/public/jstree/_demo/config.php +0 -14
- data/public/jstree/_demo/index.html +0 -262
- data/public/jstree/_demo/server.php +0 -69
- data/public/jstree/_docs/!style.css +0 -37
- data/public/jstree/_docs/_drive.png +0 -0
- data/public/jstree/_docs/_html_data.html +0 -2
- data/public/jstree/_docs/_json_data.json +0 -4
- data/public/jstree/_docs/_search_data.json +0 -6
- data/public/jstree/_docs/_search_result.json +0 -1
- data/public/jstree/_docs/_xml_flat.xml +0 -12
- data/public/jstree/_docs/_xml_nest.xml +0 -18
- data/public/jstree/_docs/checkbox.html +0 -148
- data/public/jstree/_docs/contextmenu.html +0 -120
- data/public/jstree/_docs/cookies.html +0 -96
- data/public/jstree/_docs/core.html +0 -622
- data/public/jstree/_docs/crrm.html +0 -315
- data/public/jstree/_docs/dnd.html +0 -197
- data/public/jstree/_docs/hotkeys.html +0 -81
- data/public/jstree/_docs/html_data.html +0 -174
- data/public/jstree/_docs/index.html +0 -75
- data/public/jstree/_docs/json_data.html +0 -240
- data/public/jstree/_docs/languages.html +0 -138
- data/public/jstree/_docs/search.html +0 -114
- data/public/jstree/_docs/sort.html +0 -84
- data/public/jstree/_docs/syntax/!script.js +0 -2232
- data/public/jstree/_docs/syntax/!style.css +0 -511
- data/public/jstree/_docs/syntax/clipboard.swf +0 -0
- data/public/jstree/_docs/syntax/help.png +0 -0
- data/public/jstree/_docs/syntax/magnifier.png +0 -0
- data/public/jstree/_docs/syntax/page_white_code.png +0 -0
- data/public/jstree/_docs/syntax/page_white_copy.png +0 -0
- data/public/jstree/_docs/syntax/printer.png +0 -0
- data/public/jstree/_docs/syntax/wrapping.png +0 -0
- data/public/jstree/_docs/themeroller.html +0 -98
- data/public/jstree/_docs/themes.html +0 -126
- data/public/jstree/_docs/types.html +0 -173
- data/public/jstree/_docs/ui.html +0 -188
- data/public/jstree/_docs/unique.html +0 -70
- data/public/jstree/_docs/xml_data.html +0 -214
- data/public/jstree/_lib/jquery.cookie.js +0 -96
- data/public/jstree/_lib/jquery.hotkeys.js +0 -99
- data/public/jstree/_lib/jquery.js +0 -6240
- data/public/jstree/jquery.jstree.js +0 -3510
- data/public/jstree/jstree.html +0 -237
- data/public/jstree/themes/apple/bg.jpg +0 -0
- data/public/jstree/themes/apple/d.png +0 -0
- data/public/jstree/themes/apple/dot_for_ie.gif +0 -0
- data/public/jstree/themes/apple/style.css +0 -60
- data/public/jstree/themes/apple/throbber.gif +0 -0
- data/public/jstree/themes/classic/d.png +0 -0
- data/public/jstree/themes/classic/dot_for_ie.gif +0 -0
- data/public/jstree/themes/classic/style.css +0 -59
- data/public/jstree/themes/classic/throbber.gif +0 -0
- data/public/jstree/themes/default/d.gif +0 -0
- data/public/jstree/themes/default/d.png +0 -0
- data/public/jstree/themes/default/style.css +0 -73
- data/public/jstree/themes/default/throbber.gif +0 -0
- data/public/jstree/themes/default-rtl/d.gif +0 -0
- data/public/jstree/themes/default-rtl/d.png +0 -0
- data/public/jstree/themes/default-rtl/dots.gif +0 -0
- data/public/jstree/themes/default-rtl/style.css +0 -83
- data/public/jstree/themes/default-rtl/throbber.gif +0 -0
- data/public/stylesheets/dreamy.css +0 -183
- data/public/stylesheets/menu.css +0 -101
- data/public/stylesheets/sass/dreamy.sass +0 -165
- data/public/stylesheets/sass/menu.sass +0 -139
- data/public/stylesheets/sass/uploadify.sass +0 -52
- data/public/stylesheets/sass/wheels.sass +0 -25
- data/public/stylesheets/scaffold.css +0 -56
- data/public/stylesheets/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css +0 -359
- data/public/stylesheets/ui-lightness/jquery-ui-1.8.4.custom.css +0 -549
- data/public/test.html +0 -18
- /data/lib/generators/{wheels/recipes → recipes}/cancan.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/cucumber.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/default.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/design.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/devise.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/factory_girl.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/haml.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/jquery.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/mongoid.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/postgresql.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/recipes.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/remarkable.rb +0 -0
- /data/lib/generators/{wheels/recipes → recipes}/rspec.rb +0 -0
- /data/lib/generators/{wheels/snippets → snippets}/cucumber/database_config +0 -0
- /data/lib/generators/{update_wheels/templates → templates}/cancan/ability.rb +0 -0
- /data/lib/generators/{update_wheels/templates → templates}/database/postgresql.yml +0 -0
- /data/lib/generators/{update_wheels/templates → templates}/git/gitignore +0 -0
- /data/lib/generators/{wheels/templates → templates}/haml/app/views/layouts/application.html.haml +0 -0
- /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
- /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/support/hooks.rb +0 -0
- /data/lib/generators/{update_wheels → wheels_update}/LICENCE +0 -0
- /data/lib/generators/{update_wheels → wheels_update}/USAGE +0 -0
@@ -1,26 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Uploadify v2.1.0
|
3
|
-
Release Date: August 24, 2009
|
4
|
-
|
5
|
-
Copyright (c) 2009 Ronnie Garcia, Travis Nickels
|
6
|
-
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
9
|
-
in the Software without restriction, including without limitation the rights
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
12
|
-
furnished to do so, subject to the following conditions:
|
13
|
-
|
14
|
-
The above copyright notice and this permission notice shall be included in
|
15
|
-
all copies or substantial portions of the Software.
|
16
|
-
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
-
THE SOFTWARE.
|
24
|
-
*/
|
25
|
-
|
26
|
-
if(jQuery){(function(a){a.extend(a.fn,{uploadify:function(b){a(this).each(function(){settings=a.extend({id:a(this).attr("id"),uploader:"uploadify.swf",script:"uploadify.php",expressInstall:null,folder:"",height:30,width:110,cancelImg:"cancel.png",wmode:"opaque",scriptAccess:"sameDomain",fileDataName:"Filedata",method:"POST",queueSizeLimit:999,simUploadLimit:1,queueID:false,displayData:"percentage",onInit:function(){},onSelect:function(){},onQueueFull:function(){},onCheck:function(){},onCancel:function(){},onError:function(){},onProgress:function(){},onComplete:function(){},onAllComplete:function(){}},b);var e=location.pathname;e=e.split("/");e.pop();e=e.join("/")+"/";var f={};f.uploadifyID=settings.id;f.pagepath=e;if(settings.buttonImg){f.buttonImg=escape(settings.buttonImg)}if(settings.buttonText){f.buttonText=escape(settings.buttonText)}if(settings.rollover){f.rollover=true}f.script=settings.script;f.folder=escape(settings.folder);if(settings.scriptData){var g="";for(var d in settings.scriptData){g+="&"+d+"="+settings.scriptData[d]}f.scriptData=escape(g.substr(1))}f.width=settings.width;f.height=settings.height;f.wmode=settings.wmode;f.method=settings.method;f.queueSizeLimit=settings.queueSizeLimit;f.simUploadLimit=settings.simUploadLimit;if(settings.hideButton){f.hideButton=true}if(settings.fileDesc){f.fileDesc=settings.fileDesc}if(settings.fileExt){f.fileExt=settings.fileExt}if(settings.multi){f.multi=true}if(settings.auto){f.auto=true}if(settings.sizeLimit){f.sizeLimit=settings.sizeLimit}if(settings.checkScript){f.checkScript=settings.checkScript}if(settings.fileDataName){f.fileDataName=settings.fileDataName}if(settings.queueID){f.queueID=settings.queueID}if(settings.onInit()!==false){a(this).css("display","none");a(this).after('<div id="'+a(this).attr("id")+'Uploader"></div>');swfobject.embedSWF(settings.uploader,settings.id+"Uploader",settings.width,settings.height,"9.0.24",settings.expressInstall,f,{quality:"high",wmode:settings.wmode,allowScriptAccess:settings.scriptAccess});if(settings.queueID==false){a("#"+a(this).attr("id")+"Uploader").after('<div id="'+a(this).attr("id")+'Queue" class="uploadifyQueue"></div>')}}if(typeof(settings.onOpen)=="function"){a(this).bind("uploadifyOpen",settings.onOpen)}a(this).bind("uploadifySelect",{action:settings.onSelect,queueID:settings.queueID},function(j,h,i){if(j.data.action(j,h,i)!==false){var k=Math.round(i.size/1024*100)*0.01;var l="KB";if(k>1000){k=Math.round(k*0.001*100)*0.01;l="MB"}var m=k.toString().split(".");if(m.length>1){k=m[0]+"."+m[1].substr(0,2)}else{k=m[0]}if(i.name.length>20){fileName=i.name.substr(0,20)+"..."}else{fileName=i.name}queue="#"+a(this).attr("id")+"Queue";if(j.data.queueID){queue="#"+j.data.queueID}a(queue).append('<div id="'+a(this).attr("id")+h+'" class="uploadifyQueueItem"><div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+h+'\')"><img src="'+settings.cancelImg+'" border="0" /></a></div><span class="fileName">'+fileName+" ("+k+l+')</span><span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+h+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});if(typeof(settings.onSelectOnce)=="function"){a(this).bind("uploadifySelectOnce",settings.onSelectOnce)}a(this).bind("uploadifyQueueFull",{action:settings.onQueueFull},function(h,i){if(h.data.action(h,i)!==false){alert("The queue is full. The max size is "+i+".")}});a(this).bind("uploadifyCheckExist",{action:settings.onCheck},function(m,l,k,j,o){var i=new Object();i=k;i.folder=e+j;if(o){for(var h in k){var n=h}}a.post(l,i,function(r){for(var p in r){if(m.data.action(m,l,k,j,o)!==false){var q=confirm("Do you want to replace the file "+r[p]+"?");if(!q){document.getElementById(a(m.target).attr("id")+"Uploader").cancelFileUpload(p,true,true)}}}if(o){document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(n,true)}else{document.getElementById(a(m.target).attr("id")+"Uploader").startFileUpload(null,true)}},"json")});a(this).bind("uploadifyCancel",{action:settings.onCancel},function(l,h,k,m,j){if(l.data.action(l,h,k,m,j)!==false){var i=(j==true)?0:250;a("#"+a(this).attr("id")+h).fadeOut(i,function(){a(this).remove()})}});if(typeof(settings.onClearQueue)=="function"){a(this).bind("uploadifyClearQueue",settings.onClearQueue)}var c=[];a(this).bind("uploadifyError",{action:settings.onError},function(l,h,k,j){if(l.data.action(l,h,k,j)!==false){var i=new Array(h,k,j);c.push(i);a("#"+a(this).attr("id")+h+" .percentage").text(" - "+j.type+" Error");a("#"+a(this).attr("id")+h).addClass("uploadifyError")}});a(this).bind("uploadifyProgress",{action:settings.onProgress,toDisplay:settings.displayData},function(j,h,i,k){if(j.data.action(j,h,i,k)!==false){a("#"+a(this).attr("id")+h+"ProgressBar").css("width",k.percentage+"%");if(j.data.toDisplay=="percentage"){displayData=" - "+k.percentage+"%"}if(j.data.toDisplay=="speed"){displayData=" - "+k.speed+"KB/s"}if(j.data.toDisplay==null){displayData=" "}a("#"+a(this).attr("id")+h+" .percentage").text(displayData)}});a(this).bind("uploadifyComplete",{action:settings.onComplete},function(k,h,j,i,l){if(k.data.action(k,h,j,unescape(i),l)!==false){a("#"+a(this).attr("id")+h+" .percentage").text(" - Completed");a("#"+a(this).attr("id")+h).fadeOut(250,function(){a(this).remove()})}});if(typeof(settings.onAllComplete)=="function"){a(this).bind("uploadifyAllComplete",{action:settings.onAllComplete},function(h,i){if(h.data.action(h,i)!==false){c=[]}})}})},uploadifySettings:function(f,j,c){var g=false;a(this).each(function(){if(f=="scriptData"&&j!=null){if(c){var i=j}else{var i=a.extend(settings.scriptData,j)}var l="";for(var k in i){l+="&"+k+"="+escape(i[k])}j=l.substr(1)}g=document.getElementById(a(this).attr("id")+"Uploader").updateSettings(f,j)});if(j==null){if(f=="scriptData"){var b=unescape(g).split("&");var e=new Object();for(var d=0;d<b.length;d++){var h=b[d].split("=");e[h[0]]=h[1]}g=e}return g}},uploadifyUpload:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").startFileUpload(b,false)})},uploadifyCancel:function(b){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").cancelFileUpload(b,true,false)})},uploadifyClearQueue:function(){a(this).each(function(){document.getElementById(a(this).attr("id")+"Uploader").clearFileUploadQueue(false)})}})})(jQuery)};
|