define('app/views/image_list_item', [
    'text!app/templates/image_list_item.html','ember'],
    /**
     *
     * Image List Item View
     *
     * @returns Class
     */
    function(image_list_item_html) {
        return Ember.View.extend({
                tagName:'li',
                
                starImage: function() {
                    var payload = {
                        'action': 'star'
                    };
                    var backend_id = this.image.backend.id
                    var image_id = this.image.id;
                    $.ajax({
                        url: '/backends/' + backend_id + '/images/' + image_id,
                        type: "POST",
                        data: JSON.stringify(payload),
                        contentType: "application/json",
                        headers: { "cache-control": "no-cache" },
                        dataType: "json"
                    });    
                },
                
                didInsertElement: function(){
                    $('#images-list').listview('refresh');
                    try{
                        $('#images-list .ember-checkbox').checkboxradio();    
                    } catch(e){}
                    
                },

                launchImage: function(){
                    var AddView = Mist.MachineAddView.create();
                    AddView.selectProvider(this.image.backend);
                    AddView.selectImage(this.image);
                    $('#images .dialog-add').panel('open');
                },

                template: Ember.Handlebars.compile(image_list_item_html),
        });

    }
);

define('app/views/image_list_item', [
    'text!app/templates/image_list_item.html','ember'],
    /**
     *
     * Image List Item View
     *
     * @returns Class
     */
    function(image_list_item_html) {
        return Ember.View.extend({
                tagName:'li',
                
                starImage: function() {
                    var payload = {
                        'action': 'star'
                    };
                    var backend_id = this.image.backend.id
                    var image_id = this.image.id;
                    var that = this;
                    $.ajax({
                        url: '/backends/' + backend_id + '/images/' + image_id,
                        type: "POST",
                        data: JSON.stringify(payload),
                        contentType: "application/json",
                        headers: { "cache-control": "no-cache" },
                        dataType: "json",
                        success: function (){
                            var backend = Mist.backendsController.getBackendById(backend_id);
                            if (backend.images.content.indexOf(that.image) == -1) {
                                if (image.star == false) {
                                    backend.images.content.unshiftObject(that.image);
                                }
                            }
                        }
                    });
                },
                
                didInsertElement: function(){
                    $('#images-list').listview('refresh');
                    try{
                        $('#images-list .ember-checkbox').checkboxradio();    
                    } catch(e){}
                    
                },

                launchImage: function(){
                    var AddView = Mist.MachineAddView.create();
                    AddView.selectProvider(this.image.backend);
                    AddView.selectImage(this.image);
                    $('#images .dialog-add').panel('open');
                },

                template: Ember.Handlebars.compile(image_list_item_html),
        });

    }
);

Fix star image from advanced search in javascript
Fix star image from advanced search in javascript
