params = @ui.qualityProfileParameters.map(->
key: jQuery(@).prop('name'), value: jQuery(@).val() || jQuery(@).prop('placeholder')).get()
+ paramsHash = _.reduce((params.map (param) -> param.key + '=' + param.value), ((hash, param) -> hash + ';' + param), '')
+
if @model
profileKey = @model.get('qProfile')
severity = @ui.qualityProfileSeverity.val()
profile_key: profileKey
rule_key: @rule.get('key')
severity: severity
- params: params
+ params: paramsHash
.done =>
if @model
@model.set severity: severity, params: params
<th><h3>{{key}}</h3></th>
<td>
{{#eq type 'TEXT'}}
- <textarea class="width100" rows="3" name="{{key}}"placeholder="{{default}}">{{value}}</textarea>
+ <textarea class="width100" rows="3" name="{{key}}" placeholder="{{defaultValue}}">{{value}}</textarea>
{{else}}
- <input type="text" name="{{key}}" value="{{value}}" placeholder="{{default}}">
+ <input type="text" name="{{key}}" value="{{value}}" placeholder="{{defaultValue}}">
{{/eq}}
<div class="note">{{description}}</div>
{{#if extra}}