*/
applicableGroups: null,
+ /**
+ * Storage priority
+ *
+ * @type int
+ */
+ priority: null,
+
/**
* Returns the data from this object
*
return _.extend(data, {
applicableUsers: this.applicableUsers,
applicableGroups: this.applicableGroups,
+ priority: this.priority,
});
}
});
highlightInput(newElement);
$td.append(newElement);
});
+ var priorityEl = $('<input type="hidden" class="priority" value="' + parameters['priority'] + '" />');
+ $tr.append(priorityEl);
if (parameters['custom'] && $el.find('tbody tr.'+backendClass.replace(/\\/g, '\\\\')).length === 1) {
OC.addScript('files_external', parameters['custom']);
}
storage.applicableUsers = users;
storage.applicableGroups = groups;
+
+ storage.priority = $tr.find('input.priority').val();
}
return storage;
print_unescaped(json_encode($mount['applicable']['users'])); ?>'>
<input type="hidden" class="applicableUsers" style="width:20em;" value=""/>
</td>
+ <?php if (isset($mount['priority'])): ?>
+ <input type="hidden" class="priority" value="<?php p($mount['priority']) ?>" />
+ <?php endif; ?>
<?php endif; ?>
<td <?php if (isset($mount['mountpoint'])): ?>class="remove"
<?php else: ?>style="visibility:hidden;"