~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/templates/inline-picker.pt

  • Committer: Steve Kowalik
  • Date: 2011-08-07 04:05:52 UTC
  • mto: This revision was merged to the branch mainline in revision 13626.
  • Revision ID: stevenk@ubuntu.com-20110807040552-mwnxo0flmhvl35e8
Correct the notification based on review comments, and remove request{,ed}
from the function names, switching to create{,d}.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    <button class="lazr-btn yui3-activator-act yui3-activator-hidden">
6
6
      Edit
7
7
    </button>
8
 
 
9
 
    <a tal:condition="view/help_link"
10
 
       tal:attributes="href view/help_link"
11
 
       target="help"
12
 
       class="sprite maybe">&nbsp;
13
 
       <span class="invisible-link">Driver help</span>
14
 
    </a>
15
 
 
16
8
    <noscript tal:condition="view/can_write">
17
9
      <a tal:attributes="href view/edit_url;
18
10
                         title view/edit_title"
19
11
         class="sprite edit"></a>
20
 
      <a tal:condition="view/help_link"
21
 
         tal:attributes="href view/help_link"
22
 
         target="help"
23
 
         class="sprite maybe">&nbsp;
24
 
         <span class="invisible-link">Driver help</span>
25
 
      </a>
26
12
    </noscript>
27
13
    <div class="yui3-activator-message-box yui3-activator-hidden"></div>
28
14
</span>
29
 
 
30
15
<script tal:condition="view/can_write"
31
16
        tal:content="structure string:
32
 
LPS.use('lp.app.picker', 'lp.client', function(Y) {
 
17
LPS.use('lp.app.picker', function(Y) {
33
18
    if (Y.UA.ie) {
34
19
        return;
35
20
    }
36
21
 
37
 
    var picker_config = ${view/json_config}
38
 
    picker_config.validate_callback = Y.lp.app.picker.public_private_warning;
39
22
    Y.on('load', function(e) {
40
23
      Y.lp.app.picker.addPickerPatcher(
41
24
        ${view/json_vocabulary_name},
42
25
        ${view/json_resource_uri},
43
26
        ${view/json_attribute},
44
27
        ${view/json_content_box_id},
45
 
        picker_config);
 
28
        ${view/json_config});
46
29
      }, window);
47
30
});
48
31
"/>