beef-has_assets 0.7.9 → 0.7.10
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.10
|
data/beef-has_assets.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{beef-has_assets}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Steve England"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-23}
|
13
13
|
s.email = %q{steve@wearebeef.co.uk}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -315,18 +315,23 @@ var Holdable = Class.create({
|
|
315
315
|
|
316
316
|
var Renameable = Class.create(Holdable, {
|
317
317
|
firer: function(elem) {
|
318
|
+
|
319
|
+
// if there is already an input in here, bail
|
320
|
+
if(elem.down('input') || elem.hasClassName('no-folder'))
|
321
|
+
return;
|
322
|
+
|
318
323
|
this.text_input = new Element('input', { href: 'text', value: elem.innerHTML });
|
319
324
|
elem.update(this.text_input);
|
320
325
|
this.text_input.focus();
|
321
326
|
this.text_input.observe('blur', function() {
|
322
327
|
this.replace(this.value);
|
323
|
-
});
|
328
|
+
}.bind(this.text_input));
|
324
329
|
this.text_input.observe('change', function() {
|
325
330
|
asset_id = elem.id.split('-').last();
|
326
331
|
new Ajax.Request('/admin/assets/' + asset_id + '/rename_category' , {
|
327
332
|
parameters: { name: this.value }
|
328
333
|
});
|
329
|
-
});
|
334
|
+
}.bind(this.text_input));
|
330
335
|
}
|
331
336
|
});
|
332
337
|
var flickr_load_select = function(){
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beef-has_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 10
|
10
|
+
version: 0.7.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-23 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|