~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/widgets/popup.py

[r=wgrant][bug=812253] Fix case where picker displays "null" if used
 a second time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
        :return: A string that will be passed to Y.Node.create()
139
139
                 so it needs to be contained in a single HTML element.
140
140
        """
141
 
        return simplejson.dumps(None)
 
141
        return None
142
142
 
143
143
    @property
144
144
    def vocabulary_name(self):
157
157
 
158
158
    @property
159
159
    def header_text(self):
160
 
        return simplejson.dumps(self.header or self.vocabulary.displayname)
 
160
        return self.header or self.vocabulary.displayname
161
161
 
162
162
    @property
163
163
    def step_title_text(self):
164
 
        return simplejson.dumps(self.step_title or self.vocabulary.step_title)
 
164
        return self.step_title or self.vocabulary.step_title
165
165
 
166
166
    @property
167
167
    def input_id(self):
248
248
 
249
249
    @property
250
250
    def extra_no_results_message(self):
251
 
        return simplejson.dumps("<strong>Didn't find the project you were "
 
251
        return ("<strong>Didn't find the project you were "
252
252
                "looking for? "
253
253
                '<a href="%s/+affects-new-product">Register it</a>.</strong>'
254
254
                % canonical_url(self.context.context))