New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

j-forms

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j-forms - npm Package Compare versions

Comparing version 0.0.47 to 0.0.49

@@ -57,3 +57,3 @@ var widgets = require('./widgets'),

{
res.write('<label for="id_' + this.name + '">' + this.get_label() + '</label>');
res.write('<label class="field_label" for="id_' + this.name + '">' + this.get_label() + '</label>');
},

@@ -77,3 +77,3 @@ render_label_str : function()

{
res.write('<label for="id_' + this.name + '"><span>' + this.get_label() + '</span>');
res.write('<label class="field" for="id_' + this.name + '"><span class="field_label">' + this.get_label() + '</span>');
this.render_error(res);

@@ -80,0 +80,0 @@ this.render(res);

@@ -510,2 +510,7 @@ var Class = require('sji')

return new fields.DateField(options);
if(mongoose_field.options.type.name == 'Html')
{
options.widget = widgets.RichTextAreaWidget;
return new fields.StringField(options);
}
if(mongoose_field.options.type.name == 'Text')

@@ -512,0 +517,0 @@ {

@@ -53,3 +53,13 @@ var util = require('util');

mongoose.SchemaTypes.Text = Text;
var Html = function Html(path,options) {
Html.super_.call(this,path,options);
};
util.inherits(Html,Text);
exports.Html = Html;
mongoose.Types.Html = String;
mongoose.SchemaTypes.Html = Html;
};
{
"name": "j-forms",
"description": "jewish forms creation from fields or from mongoose models",
"version": "0.0.47",
"version": "0.0.49",
"author": "Ishai Jaffe <ishai@empeeric.com>",

@@ -6,0 +6,0 @@ "dependencies": {

@@ -84,2 +84,17 @@

var RichTextAreaWidget = exports.RichTextAreaWidget = TextAreaWidget.extend({
init: function(options)
{
this._super(options);
this.attrs.class.push('ckeditor');
this.static.js.push('/node-forms/ckeditor/ckeditor.js');
},
render:function(res)
{
res.write('<div style="width:930px; padding-top:31px;">');
this._super(res);
res.write('</div>');
}
});
var DateWidget = exports.DateWidget = InputWidget.extend({

@@ -86,0 +101,0 @@ init: function(options)

Sorry, the diff of this file is not supported yet