~nskaggs/ubuntu-rssreader-app/fix-db-path

« back to all changes in this revision

Viewing changes to ubuntu-rssreader-app.qml

  • Committer: Tarmac
  • Author(s): Joey Chan
  • Date: 2013-09-19 07:34:07 UTC
  • mfrom: (67.1.1 ubuntu-rssreader-app)
  • Revision ID: tarmac-20130919073407-bvgt8v9y9rlff4dk
add confirm/cancel buttons for edit topic. Fixes: https://bugs.launchpad.net/bugs/1224881.

Approved by Roman Shchekin, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        pageStack.push(editFeed) ;
88
88
    }
89
89
 
 
90
                                                    //  change the topic name if the name changed by management
 
91
    function changeTopicName(topicId, newName) {
 
92
        repeater.changeTopicName(topicId, newName)
 
93
    }
 
94
 
90
95
    PageStack {
91
96
        id: pageStack
92
97
 
216
221
                function reloadSaved() {
217
222
                    repeater.itemAt(repeater.model - 1).reload()
218
223
                }
 
224
 
 
225
                function changeTopicName(topicId, newName) {
 
226
                    for(var i = 0; i < repeater.count; i++) {
 
227
                        if (repeater.itemAt(i).topicId == topicId) {
 
228
                            repeater.itemAt(i).title = newName
 
229
                            break
 
230
                        }
 
231
                    }
 
232
                }
219
233
            } // Repeater
220
234
        }
221
235