variable arrays?
I'm trying to edit this function for a Photoshop extension to include multiple variable names and multiple variable values. Any help is greatly appreciated. Thanks!
function variablesAll()
{
$('.variableTable').children('.singleVariable').each(function ()
{
var typeSelection = $(this).find(".variableSelect").val();
var variableName = "#MSRP"
var variableValue = $(this).find(".MSRPValue input").val();
var obj = {
kind: typeSelection,
key: variableName,
value: variableValue
}
csInterface.evalScript( 'variableUpdater(' + JSON.stringify(obj) + ')' );
});
}
$("#content").on("click", ".refreshAllVars", function ()
{
variablesAll();
});
