Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 90e9523a

Von Thomas Heck vor mehr als 11 Jahren hinzugefügt

  • ID 90e9523a36cf7a739995f55594e33e98c725e510
  • Vorgänger 22519cf6
  • Nachfolger b69669f3

CustomerVendor: namespace-Aufrufe entfernt

Unterschiede anzeigen:

SL/Controller/CustomerVendor.pm
732 732
       WHERE salesman';
733 733
    my $business_ids = [
734 734
      map(
735
        { $_->{id} }
735
        { $_->{id}; }
736 736
        selectall_hashref_query($::form, $dbh, $query)
737 737
      )
738 738
    ];
......
771 771
  $self->{template_args} ||= {};
772 772

  
773 773
  $::request->{layout}->add_javascripts('autocomplete_customer.js');
774
  $::request->{layout}->add_javascripts('kivi.CustomerVendor.js');
774 775
}
775 776

  
776 777
1;
js/kivi.CustomerVendor.js
1 1
namespace('kivi.CustomerVendor', function(ns) {
2 2

  
3
  var kivi = namespace('kivi');
4

  
5 3
  this.selectShipto = function(params) {
6 4
    var shiptoId = $('#shipto_shipto_id').val();
7 5

  
templates/webpages/customer_vendor/form.html
67 67
  [%- END %]
68 68

  
69 69
  [%- IF ( SELF.cv.id ) %]
70
    <input type="button" class="submit" onclick="namespace('kivi.CustomerVendor').showHistoryWindow([% SELF.cv.id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
70
    <input type="button" class="submit" onclick="kivi.CustomerVendor.showHistoryWindow([% SELF.cv.id %]);" name="history" id="history" value="[% 'history' | $T8 %]">
71 71
  [%- END %]
72 72

  
73 73
</form>
templates/webpages/customer_vendor/tabs/billing.html
88 88
        [% L.input_tag('cv.street', SELF.cv.street, size = 35, maxlength = 75) %]
89 89
        <span id="billing_map"></span>
90 90
        <script type="text/javascript">
91
          namespace('kivi.CustomerVendor').showMapWidget('cv_', $('#billing_map'));
91
          kivi.CustomerVendor.showMapWidget('cv_', $('#billing_map'));
92 92
        </script>
93 93
      </td>
94 94
    </tr>
templates/webpages/customer_vendor/tabs/contacts.html
18 18
            empty_title = LxERP.t8('New contact'),
19 19
            value_key = 'cp_id',
20 20
            title_key = 'full_name',
21
            onchange = "namespace('kivi.CustomerVendor').selectContact({onFormSet: function(){contactsMapWidget.testInputs();}});",
21
            onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){contactsMapWidget.testInputs();}});",
22 22
          )
23 23
        %]
24 24
      </td>
......
159 159
        [% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40, maxlength = 75) %]
160 160
        <span id="contact_map"></span>
161 161
        <script type="text/javascript">
162
        var contactsMapWidget = namespace('kivi.CustomerVendor').showMapWidget('contact_cp_', $('#contact_map'));
162
        var contactsMapWidget = kivi.CustomerVendor.showMapWidget('contact_cp_', $('#contact_map'));
163 163
        </script>
164 164
      </td>
165 165
    </tr>
templates/webpages/customer_vendor/tabs/deliveries.html
16 16
            value_key = 'shipto_id',
17 17
            title_key = 'displayable_id',
18 18
            with_empty = 1,
19
            onchange = "namespace('kivi.CustomerVendor').selectDelivery();"
19
            onchange = "kivi.CustomerVendor.selectDelivery();"
20 20
          )
21 21
        %]
22 22
      </td>
......
30 30
          L.date_tag(
31 31
            'delivery_from',
32 32
            FORM.delivery_from,
33
            onchange => "namespace('kivi.CustomerVendor').selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
33
            onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
34 34
          )
35 35
        %]
36 36
      </td>
......
43 43
          L.date_tag(
44 44
            'delivery_to',
45 45
            FORM.delivery_to,
46
            onchange => "namespace('kivi.CustomerVendor').selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
46
            onchange => "kivi.CustomerVendor.selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
47 47
          )
48 48
        %]
49 49
      </td>
templates/webpages/customer_vendor/tabs/shipto.html
16 16
             title_key = 'displayable_id',
17 17
             with_empty = 1,
18 18
             empty_title = LxERP.t8('New shipto'),
19
             onchange = "namespace('kivi.CustomerVendor').selectShipto({onFormSet: function(){shiptoMapWidget.testInputs();}});",
19
             onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){shiptoMapWidget.testInputs();}});",
20 20
           )
21 21
        %]
22 22
      </td>
......
47 47

  
48 48
        <span id="shipto_map"></span>
49 49
        <script type="text/javascript">
50
          var shiptoMapWidget = namespace('kivi.CustomerVendor').showMapWidget('shipto_shipto', $('#shipto_map'));
50
          var shiptoMapWidget = kivi.CustomerVendor.showMapWidget('shipto_shipto', $('#shipto_map'));
51 51
        </script>
52 52
      </td>
53 53
    </tr>

Auch abrufbar als: Unified diff