{I" class:ETI"ProcessedAsset; FI"logical_path; TI"(type_station/editables/edit_page.js; FI" pathname; TI"n/Users/richardadams/github/type_station/app/assets/javascripts/type_station/editables/edit_page.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+€÷TI"length; TiçI"digest; TI"%458ae4c5ef2680c3da63bebe920ef5ef; FI"source; TI"ç(function() { var buildFields, deletePage, move; move = function(element, direction) { return $.ajax({ type: "PATCH", url: element.data('ts-url'), dataType: 'json', contentType: 'application/json', data: JSON.stringify({ direction: direction }), success: function(data, status) { return window.location.reload(); } }); }; deletePage = function(element) { return $.ajax({ type: "DELETE", url: element.data('ts-url'), dataType: 'json', contentType: 'application/json', data: {}, success: function(data, status) { return window.location.reload(); } }); }; buildFields = function(element) { var field, input, inputs, label, model, modelValues, o, select, tsFieldTypes, tsFields, _i, _len; tsFields = element.data('tsFields'); tsFieldTypes = {}; inputs = ''; model = window.TS.getModel(element.data('ts-url')); modelValues = element.data('ts-data')['ts_values']; for (_i = 0, _len = tsFields.length; _i < _len; _i++) { field = tsFields[_i]; tsFieldTypes[field.name] = field.type; label = ""; input = (function() { var _j, _k, _len1, _len2, _ref, _ref1; switch (field.type) { case "text": return ""; case "textarea": return ""; case "select": select = ""; return select; case "multiple_select": select = ""; return select; } })(); inputs += "