This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.fix_tinymce_word_pastes(text) | |
text = text.gsub(%r{<p><!--\[if gte mso([\s\S]*?)--></p>}i, ""); | |
text = text.gsub(%r{<!--\[if gte mso([\s\S]*?)-->}i, ""); | |
text = text.gsub(%r{<p><!-- \/\* Font Definitions([\s\S]*?)--></p>}i, ""); | |
text = text.gsub(%r{<!-- \/\* Font Definitions([\s\S]*?)-->}i, ""); | |
text = text.gsub(%r{<p><!--\[endif\]--></p>}i, ""); | |
text = text.gsub(%r{<!--\[endif\]-->}i, ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> Booting Mongrel | |
=> Rails 2.3.2 application starting on http://0.0.0.0:3006 | |
** [NewRelic] Cannot find newrelic.yml file at /home/blogage/blogage/blogage/blogage_portal/config/newrelic.yml. | |
** [NewRelic] Using /home/blogage/blogage/blogage/blogage_portal/vendor/plugins/newrelic_rpm/newrelic.yml file. | |
** [NewRelic] Signup at rpm.newrelic.com to get a newrelic.yml file configured for a free Lite account. | |
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:636:in `report_activate_error': Could not find RubyGem twitter4r (= 0.3.0) (Gem::LoadError) | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate' | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem' | |
from /home/blogage/blogage/blogage/base/lib/queue/twitter_job.rb:1 | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accepted: | |
329413-image-scaling | |
329435-ads-iframe | |
439029-flash-and-faceboxes | |
454293-long-message-titles | |
958104-pretty-modals-2.3 | |
ad_spaces | |
anonymous-comments-form | |
blog_search_results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Effect.Parallel([ | |
new Effect.BlindDown(area, {scaleFrom: 100, scaleTo: new_area_height_percentage }), | |
new Effect.Fade(element, { sync: true }), | |
new Effect.Appear(area.getElementsBySelector('.editor').first(), { sync: true, | |
afterSetup: function() { | |
console.log(this.element); | |
} | |
}) | |
], { ..... } | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.observe('click', function(e, el) { | |
if (el = e.findElement('input[type='submit']')) { | |
do_what_you_wanna_do(el) | |
e.stop(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function exchangeSubmits() { | |
$("live_buttons").hide(); | |
$("disabled_buttons").show(); | |
} | |
document.observe('click', function(e, el) { | |
if (el = e.findElement("input[type='submit']")) { | |
exchangeSubmits(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Error; | |
document.observe("dom:loaded", function() { | |
Error = { | |
alert: function(text) { | |
alert(text); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.observe('mouseover', function(e, el) { | |
if (el = e.findElement('tr.YOURCLASS-OR-SOMEOTHER-SELCTOR')) { | |
new Effect.Parallel([ | |
new Effect.Move(element, { sync: true, x: 0, y: -30, mode: 'relative' }), | |
new Effect.Opacity(element, { sync: true, from: 0, to: 1 }) | |
], { | |
duration: 0.5 | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Editor = Class.create({ | |
attach_to: function(element) { | |
this.content_container = element.select("[function=content_container]").first(); | |
console.log("attaching"); | |
Object.extend(element, this); | |
}, | |
show_editor: function() { | |
console.log("general showing"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.observe("dom:loaded", function() { | |
var customsPage = Class.create({ | |
initialize: function(page, draggable_obj) { | |
if(draggable_obj) | |
this.draggableObject = new Draggable(draggable_obj); | |
Object.extend(page, this); |
OlderNewer