Mailinglist Archive: yast-devel (127 mails)

< Previous Next >
[yast-devel] WebYaST: javascript per-plugin library
  • From: Michal Zugec <mzugec@xxxxxxx>
  • Date: Fri, 26 Feb 2010 12:36:46 +0100
  • Message-id: <4B87B24E.3080300@xxxxxxx>
Hi!
I'd like to share my observation:
I needed to share my javascript code between two files (it was form
validation for new and edit action + some more)
I created
webyast-users-ui/plugins/users/public/javascripts/users_edit.js

and included it into my files with <%= javascript_include_tag
"users_edit.js" %>

It's important to use $pluginname as prefix to be unique in whole project!

That's it ...

Bye,
Michal

--
Best Regards,
Michal Zugec
Software developer
---------------------------------------------------------------------
SuSE CR, s.r.o. e-mail: mzugec@xxxxxxx
Lihovarska 1060/12 tel: +420 284 028 960
190 00 Praha 9 fax: +420 296 542 374
Czech Republic http://www.suse.cz/

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups