Ticket.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 06:16:10 +0000 (14:16 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 06:16:10 +0000 (14:16 +0800)
Ticket.vala

Ticket.bjs
Ticket.vala

index 769dfe3..d1dada1 100644 (file)
          "items" : [
           {
            "id" : "clmodel",
-           "| void loadClassifications" : "  ( ) {\n\n    var rt = RooTicket.singleton();\n    // rt.loadProjects();\n    \n    _this.classification_id.loading = true;\n\n    this.el.clear();                                    \n    Gtk.TreeIter iter;\n    var el = this.el;\n    \n    el.append(out iter);\n\n    \n    el.set_value(iter, 0, \"\");\n    el.set_value(iter, 1, \"-- select a project --\");\n    if (id == \"\") {\n\t    _this.classification_id.el.set_active_iter(iter);\n    }\n    \n    var projects = rt.classifications;\n    foreach(var project in projects) {\n    \n        el.append(out iter);\n        \n        el.set_value(iter, 0, project.id);\n        el.set_value(iter, 1,  project.display_name );\n    //    if (id == project.id) {\n\t// \t   _this.classification_id.el.set_active_iter(iter);\n\t//    }   \n        \n    }\n    \n    _this.classification_id.loading = false;\n     //this.el.set_sort_column_id(0, Gtk.SortType.ASCENDING);          \n                                     \n}\n",
+           "| void loadClassifications" : "  ( ) {\n\n    var rt = RooTicket.singleton();\n    // rt.loadProjects();\n    \n    _this.classification_id.loading = true;\n\n    this.el.clear();                                    \n    Gtk.TreeIter iter;\n    var el = this.el;\n    \n    el.append(out iter);\n\n    \n    el.set_value(iter, 0, \"\");\n    el.set_value(iter, 1, \"-- select a project --\");\n  //  if (id == \"\") {\n\t    _this.classification_id.el.set_active_iter(iter);\n//    }\n    \n    var projects = rt.classifications;\n    foreach(var project in projects) {\n    \n        el.append(out iter);\n        \n        el.set_value(iter, 0, project.id);\n        el.set_value(iter, 1,  project.display_name );\n    //    if (id == project.id) {\n\t// \t   _this.classification_id.el.set_active_iter(iter);\n\t//    }   \n        \n    }\n    \n    _this.classification_id.loading = false;\n     //this.el.set_sort_column_id(0, Gtk.SortType.ASCENDING);          \n                                     \n}\n",
            "* pack" : "set_model",
            "xtype" : "ListStore",
            "$ columns" : "typeof(string),typeof(string)",
index ca29e6c..307ab7f 100644 (file)
@@ -1001,9 +1001,9 @@ public class Ticket : Object
             
             el.set_value(iter, 0, "");
             el.set_value(iter, 1, "-- select a project --");
-            if (id == "") {
+          //  if (id == "") {
                    _this.classification_id.el.set_active_iter(iter);
-            }
+        //    }
             
             var projects = rt.classifications;
             foreach(var project in projects) {