Bläddra i källkod

[collectionmanager] Add other field types

Abraham Elmahrek 11 år sedan
förälder
incheckning
dbcb249285

+ 64 - 6
apps/collectionmanager/static/js/collections.js

@@ -13,12 +13,70 @@ var SOURCE_TYPES = [
 ];
 
 var FIELD_TYPES = [
-  'text_general',
-  'string',
-  'int',
-  'float',
-  'boolean',
-  'date'
+  "alphaOnlySort",
+  "ancestor_path",
+  "boolean",
+  "currency",
+  "date",
+  "descendent_path",
+  "double",
+  "float",
+  "int",
+  "location",
+  "location_rpt",
+  "long",
+  "lowercase",
+  "pdate",
+  "pdouble",
+  "pfloat",
+  "pint",
+  "plong",
+  "point",
+  "random",
+  "string",
+  "tdate",
+  "tdouble",
+  "text_ar",
+  "text_bg",
+  "text_ca",
+  "text_char_norm",
+  "text_cjk",
+  "text_cz",
+  "text_da",
+  "text_de",
+  "text_el",
+  "text_en",
+  "text_en_splitting",
+  "text_en_splitting_tight",
+  "text_es",
+  "text_eu",
+  "text_fa",
+  "text_fi",
+  "text_fr",
+  "text_ga",
+  "text_general",
+  "text_general_rev",
+  "text_gl",
+  "text_greek",
+  "text_hi",
+  "text_hu",
+  "text_hy",
+  "text_id",
+  "text_it",
+  "text_ja",
+  "text_lv",
+  "text_nl",
+  "text_no",
+  "text_pt",
+  "text_ro",
+  "text_ru",
+  "text_sv",
+  "text_th",
+  "text_tr",
+  "text_ws",
+  "tfloat",
+  "tint",
+  "tlong"
 ];
 
 var FIELD_SEPARATORS = [

+ 1 - 1
apps/collectionmanager/static/js/lib.js

@@ -38,7 +38,7 @@ var Collection = function(name) {
   };
 
   self.newField = function() {
-    self.addField('', '');
+    self.addField('', 'text_general');
   };
 
   self.setData = function(data_json) {