base/app/assets/javascripts/social_stream.wall.js.erb in social_stream-0.23.2 vs base/app/assets/javascripts/social_stream.wall.js.erb in social_stream-0.23.3
- old
+ new
@@ -1,7 +1,9 @@
-//= require social_stream.timeline
+//= require jquery.watermark
//
+//= require social_stream.timeline
+
SocialStream.Wall = (function(SS, $, undefined){
var initCallbacks = [];
var addInitCallback = function(callback){
initCallbacks.push(callback);
@@ -21,10 +23,14 @@
$('#masterSubmitButton').click(function(){
$('#wrapper_activities_header form:visible').submit();
});
}
+ var initPostWatermark = function(){
+ $("#input_activities").watermark(I18n.t('post.input'), "#666");
+ }
+
var initFormSelector = function(){
$('.activity_form_selector').click(function(){
$('.activity_form_selector').removeClass('selected');
$(this).addClass('selected');
$('#wrapper_activities_header form').hide();
@@ -127,9 +133,10 @@
});
}
addInitCallback(initFirstForm);
addInitCallback(initFormButton);
+ addInitCallback(initPostWatermark );
addInitCallback(initFormSelector);
addInitCallback(initSecuritySelect);
addInitCallback(activateAntiRebounds);
return {