| Index
» Projekty
» phpMyEdit
» Fórum
» Get a Custom button to do anything? |
 |
aeiche
Založený: 06.04.2007
Príspevky: 10
Zaslal: 2007-04-17 21:49
Návrat hore
Odpovedať s citátom
|
Hi There,
PME is a cool script, I love using it since I found it. I'm new so I apologize if I missed something obvious. I'm trying to give my buttons a custom label. with the CVS version, everything works fine in generation, but the button doesn't seem to do anything once it's out there. You push it and it returns to the form not having submitted anything.
Here's my code:
| Kód: |
$opts['buttons']['A']['up'] = array(
array(
'name' => 'saveadd',
'value' => 'List Me!',
'css' => 'pme-save',
'js_validation' => true,
'disabled' => false,
),
'cancel'); |
('down' code is the same)
Looking at the PME class, it seems like the value of the saveadd button has to be 'Save' in order for it to do anything.
I know that I can do it with a language file, but is that the only option? This would be much easier.
Any help would be greatly appreciated!
Thanks
-Aaron
|
nepto
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2007-07-07 19:27
Návrat hore
Odpovedať s citátom
|
If you would like to change regular action (Like Save is), you need to to this in language file.
You can create own lagnauge file, which will include regular distribution language file and will override certain strings.
Customs button functionality is for adding *new* custom buttons, not for changing existing ones.
_________________ Ondrej Jombik (Nepto)
Visit my
homepage
, review my recent
CV
or
projects
and give me some
feedback
.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|