flashcam-rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Flashcam
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -9,7 +9,6 @@
9
9
  // add flash to div
10
10
  opts.id = this.id; // add id of plugin to the options structure
11
11
  data = opts; // pass options to jquery internal data field to make them available to the outside world
12
- data.path = decodeURIComponent(data.path); // convert URI back to normal string
13
12
 
14
13
  $('#'+opts.id).html(opts.noFlashFound); // inject no flash found message
15
14
 
@@ -31,7 +30,7 @@
31
30
  opts[key] = encodeURIComponent(opts[key]);
32
31
  };
33
32
 
34
- swfobject.embedSWF(data.path + 'flashcam.swf', opts.id, newWidth, newHeight, '11.4', false, opts, params);
33
+ swfobject.embedSWF('/assets/flashcam.swf', opts.id, newWidth, newHeight, '11.4', false, opts, params);
35
34
  });
36
35
  };
37
36
 
@@ -47,7 +46,6 @@
47
46
  $.fn.flashcam.defaults = {
48
47
  width:320,
49
48
  height:240,
50
- path:'',
51
49
  noFlashFound:'<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>'
52
50
  };
53
51
  })(jQuery);
@@ -1 +1 @@
1
- function FC_onError(e,t){$.flashcam.FC_onError(e,t)}function FC_showPrompt(){$.flashcam.FC_showPrompt()}(function(e){e.fn.flashcam=function(t){var n=e.extend({},e.fn.flashcam.defaults,t);return this.each(function(){n.id=this.id;data=n;data.path=decodeURIComponent(data.path);e("#"+n.id).html(n.noFlashFound);e.flashcam.FC_onError=data.onError;e.flashcam.FC_showPrompt=data.showPrompt;var t=n.width;var r=n.height;var i={menu:"false",wmode:"direct"};for(var s in n){n[s]=encodeURIComponent(n[s])}swfobject.embedSWF(data.path+"flashcam.swf",n.id,t,r,"11.4",false,n,i)})};e.flashcam={};e.flashcam.version=function(){return e("#"+data.id).get(0).FC_version()};e.fn.flashcam.defaults={width:320,height:240,path:"",noFlashFound:'<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>'}})(jQuery)
1
+ function FC_onError(e,t){$.flashcam.FC_onError(e,t)}function FC_showPrompt(){$.flashcam.FC_showPrompt()}(function(e){e.fn.flashcam=function(t){var n=e.extend({},e.fn.flashcam.defaults,t);return this.each(function(){n.id=this.id;data=n;e("#"+n.id).html(n.noFlashFound);e.flashcam.FC_onError=data.onError;e.flashcam.FC_showPrompt=data.showPrompt;var t=n.width;var r=n.height;var i={menu:"false",wmode:"direct"};for(var s in n){n[s]=encodeURIComponent(n[s])}swfobject.embedSWF("/assets/flashcam.swf",n.id,t,r,"11.4",false,n,i)})};e.flashcam={};e.flashcam.version=function(){return e("#"+data.id).get(0).FC_version()};e.fn.flashcam.defaults={width:320,height:240,noFlashFound:'<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>'}})(jQuery)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flashcam-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  segments:
95
95
  - 0
96
- hash: 3191973333555826671
96
+ hash: 222546776963721376
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  segments:
104
104
  - 0
105
- hash: 3191973333555826671
105
+ hash: 222546776963721376
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 1.8.24