hobo 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/hobo
CHANGED
@@ -92,3 +92,9 @@ Dir.chdir(app_path) do
|
|
92
92
|
command("rake db:create:all")
|
93
93
|
end
|
94
94
|
end
|
95
|
+
|
96
|
+
puts <<-END
|
97
|
+
NOTE: If you intend to use the in-place-editors, the new form authenticity
|
98
|
+
features (CSRF protection) are not supported. You'll need to comment out the
|
99
|
+
'protect_from_forgery' declaration in app/controllers/application.rb
|
100
|
+
END
|
@@ -1,3 +1,13 @@
|
|
1
|
+
=== Release 0.6.4 ===
|
2
|
+
|
3
|
+
Fix: In-place-editors were not working with the new version of
|
4
|
+
Scriptaculous
|
5
|
+
|
6
|
+
The default fade effect on in-place-editors is now disabled
|
7
|
+
|
8
|
+
<ShowPage> now has a title
|
9
|
+
|
10
|
+
|
1
11
|
=== Release 0.6.3 ===
|
2
12
|
|
3
13
|
New feature: subsites, i.e. namespaced routes, plus support in the
|
@@ -186,10 +186,12 @@ var Hobo = {
|
|
186
186
|
old = val
|
187
187
|
return (Hobo.fieldSetParam(el, val) + "&" + updateParams)
|
188
188
|
},
|
189
|
-
highlightcolor: '#ffffff',
|
190
|
-
highlightendcolor: Hobo.backgroundColor(el),
|
191
189
|
onFailure: function(resp) { alert(resp.responseText); el.innerHTML = old },
|
192
|
-
evalScripts: true
|
190
|
+
evalScripts: true,
|
191
|
+
htmlResponse: false,
|
192
|
+
ajaxOptions: { method: "put" },
|
193
|
+
onEnterHover: null,
|
194
|
+
onLeaveHover: null
|
193
195
|
}
|
194
196
|
Object.extend(opts, options)
|
195
197
|
var ipe = new Ajax.InPlaceEditor(el, Hobo.putUrl(el), opts)
|
@@ -383,19 +385,6 @@ var Hobo = {
|
|
383
385
|
Hobo.applyEvents(id)
|
384
386
|
},
|
385
387
|
|
386
|
-
rgbColorToHex: function(color) {
|
387
|
-
parts = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)/.exec(color)
|
388
|
-
function hexPart(s) {
|
389
|
-
var res = (s * 1).toString(16)
|
390
|
-
return res.length == 1 ? '0' + res : res
|
391
|
-
}
|
392
|
-
if (parts) {
|
393
|
-
return '#' + hexPart(parts[1]) + hexPart(parts[2]) + hexPart(parts[3])
|
394
|
-
} else {
|
395
|
-
return color
|
396
|
-
}
|
397
|
-
},
|
398
|
-
|
399
388
|
getStyle: function(el, styleProp) {
|
400
389
|
if (el.currentStyle)
|
401
390
|
var y = el.currentStyle[styleProp];
|
@@ -404,10 +393,6 @@ var Hobo = {
|
|
404
393
|
return y;
|
405
394
|
},
|
406
395
|
|
407
|
-
backgroundColor: function(el) {
|
408
|
-
return Hobo.rgbColorToHex(Hobo.getStyle(el, 'background-color'))
|
409
|
-
},
|
410
|
-
|
411
396
|
partFor: function(el) {
|
412
397
|
while (el) {
|
413
398
|
if (el.id && hoboParts[el.id]) { return el }
|
@@ -441,12 +426,6 @@ Element.findContaining = function(el, tag) {
|
|
441
426
|
return null;
|
442
427
|
}
|
443
428
|
|
444
|
-
// Fix scriptaculous - don't remove <p> tags please!
|
445
|
-
Ajax.InPlaceEditor.prototype.convertHTMLLineBreaks = function(string) {
|
446
|
-
return string.replace(/<br>/gi, "\n").replace(/<br\/>/gi, "\n");
|
447
|
-
}
|
448
|
-
|
449
|
-
|
450
429
|
origEnterEditMode = Ajax.InPlaceEditor.prototype.enterEditMode
|
451
430
|
Ajax.InPlaceEditor.prototype.enterEditMode = function(evt) {
|
452
431
|
origEnterEditMode.bind(this)(evt)
|
@@ -454,16 +433,6 @@ Ajax.InPlaceEditor.prototype.enterEditMode = function(evt) {
|
|
454
433
|
return false
|
455
434
|
}
|
456
435
|
|
457
|
-
// Fix Safari in-place-editor bug
|
458
|
-
Ajax.InPlaceEditor.prototype.removeForm = function() {
|
459
|
-
if(this.form) {
|
460
|
-
if (this.form.parentNode) {
|
461
|
-
try { Element.remove(this.form); } catch (e) {}
|
462
|
-
}
|
463
|
-
this.form = null;
|
464
|
-
}
|
465
|
-
}
|
466
|
-
|
467
436
|
// Silence errors from IE :-(
|
468
437
|
Field.scrollFreeActivate = function(field) {
|
469
438
|
setTimeout(function() {
|
@@ -123,7 +123,7 @@
|
|
123
123
|
this.send(refl.name) if Hobo.simple_has_many_association?(refl)
|
124
124
|
end.compact
|
125
125
|
%>
|
126
|
-
<PageForShow merge>
|
126
|
+
<PageForShow merge title="#{name :no_wrapper => true}">
|
127
127
|
<body class="show_page #{type_name.underscore}" param/>
|
128
128
|
<content_header param>
|
129
129
|
<heading param><type_name/><if test="&this.respond_to? :name">: <editor:name/></if></heading>
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: hobo
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.6.
|
7
|
-
date: 2007-11-
|
6
|
+
version: 0.6.4
|
7
|
+
date: 2007-11-14 00:00:00 +00:00
|
8
8
|
summary: The web app builder for Rails
|
9
9
|
require_paths:
|
10
10
|
- lib
|