Tidy names of javascript functions in setting handling
This commit is contained in:
@@ -178,7 +178,7 @@ var rc = {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
remove_field: function(id, line) {
|
remove_stringlist_field: function(id, line) {
|
||||||
$("#settings_"+id+"_line"+line).remove();
|
$("#settings_"+id+"_line"+line).remove();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
{foreach from=$value item=line name=settings}
|
{foreach from=$value item=line name=settings}
|
||||||
<div id="settings_{$id}_line{$smarty.foreach.settings.iteration}">
|
<div id="settings_{$id}_line{$smarty.foreach.settings.iteration}">
|
||||||
<input type="text" name="{$id}[]" value="{$line}" class="setting settings_field_string" />
|
<input type="text" name="{$id}[]" value="{$line}" class="setting settings_field_string" />
|
||||||
<input type="button" value="-" class="settings_field_remove" onclick="rc.settings.remove_field('{$id}', '{$smarty.foreach.settings.iteration}')" />
|
<input type="button" value="-" class="settings_field_remove" onclick="rc.settings.remove_stringlist_field('{$id}', '{$smarty.foreach.settings.iteration}')" />
|
||||||
</div>
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user