Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] Re: on_submit() Javascript function definition

Subject: COmanage Developers List

List archive

[comanage-dev] Re: on_submit() Javascript function definition


Chronological Thread 
  • From: Arlen Johnson <>
  • To: Scott Koranda <>
  • Cc:
  • Subject: [comanage-dev] Re: on_submit() Javascript function definition
  • Date: Thu, 27 Sep 2018 10:24:49 -0400
  • Ironport-phdr: 9a23:gHH3HBa811N78S3sPw+IsNv/LSx+4OfEezUN459isYplN5qZrs+zbnLW6fgltlLVR4KTs6sC17KJ9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa/bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhzsGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7WYNEUSndbXstJSiJPHI28YYsMAeQPM+lXoIvyqEcBoxalGQmhBvnixiNUinL436A31fkqHwHc3AwnGtIDqGjZrM/xNKgMV+C+0a3GzTLDb/NQwjf9747IeQ0mrP6WR7JwddTeyU80GgPellWQqZLqPymU1usRqWeb6/ZvVeWhim4osQFxpSWvxt82hobVgYIVz0nJ+CNky4g7It24TVR0Yd+iEJZIrCGaL4t2Td04Q2FppCk10LkGtoK8fCkEx5Qn3Rnfa+Gfc4SS/h3jU+ORLDFlj3xmYLKynwi+/Em8xuD+U8S03lVHoTFZntTJuX0A1B3e58eCR/dj4kus3DOC2gLd5+1YOUw4i6XWJ4Q8zrM0mZcfq1nPEy70lUnsgqKbdUMp8fWy5ev9eLXpvJqcOpd0ig7gNqQundSyAeEiPQgPW2iX4P281L7+8UHgT7RHjPM7nrXDvJDVIsQboaG5AwtL3Yo59xm/CDKm3MwZnXkBMl1FZAqKg5boNl3SIv31CPm/jle3nzt3wv3LMb7sD5TCI3XGjrvtYbNw5ktexQc90dxT/5dUBasAIPL3VE/xrtvYDhohPgOu2ebnDMty1oUFVGKUGq+ZML3dsUWJ5u0zOeaMYJMauDHzKvgq/f7uimI5mUcHcaa12psXbWi0Hu56LEWBfXrsntABHH8WsQo5SezlkluCXiRcZ3msRq4z+y80CJy9AIfHR4Ctm6CB3DylEpFMZ2BGDEyMHmnyd4WCRfgMdDyeLtV/nTMZSLjyA7MmgCqlsxPmg5lgNOPS9iRQ4Yng08J84eHavR43/D1wSc+a1jfeYXtzmzYhXTs72uhdpkx70VCFmfxxmfhVE/RI//NESAYxPJrXyPN1EdfvQkTKedLfGwXuecmvHTxkFoF5+NQJeUsoXoz61h0=

Hi, Scott -

It appears that that function is intended to live in each fields.inc file as a means of handling view-specific form manipulation. The call is found in 22 fields.inc files, but the function definition only exists in two (see ~/app/View/CmpEnrollmentConfigurations/fields.inc and ~/app/View/CoIdentifierAssignments/fields.inc).

Those other twenty files should either have that call removed from the submit button or a stub function should be placed in each file.

If you need the function, add it to the fields.inc file as in the CoIdentifierAssignments or CmpEnrollmentConfigurations example. (I'll note that the latter is really just a stub - so only one fields.inc file in ~/app/View makes use of this.)

Best wishes -
Arlen


On 9/27/18 8:56 AM, Scott Koranda wrote:
Hi,

Consider the file

~/app/View/CoEnrollmentFlows/fields.inc

At the bottom of that file one finds

<?php print $this->Form->submit($submit_label, array('onClick' =>
'on_submit()')); ?>

The Javascript function on_submit() is NOT defined in that file.

It is also not defined in any of the Javascript files under webroot:

$ find webroot -type f -exec grep -l 'on_submit' {} \;
$

Where is that function defined?

Thanks,

Scott



--
Arlen Johnson, Spherical Cow Group

https://sphericalcowgroup.com




Archive powered by MHonArc 2.6.19.

Top of Page