aboutsummaryrefslogtreecommitdiffstats
path: root/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
diff options
context:
space:
mode:
authorSeshu-Kumar-M <seshu.kumar.m@huawei.com>2016-09-23 21:53:10 +0800
committerSeshu-Kumar-M <seshu.kumar.m@huawei.com>2016-09-23 21:53:10 +0800
commit81c53dc73c8c05d034bea5114e36929261e97496 (patch)
tree0a537863e6419d4e6207d44ce2427cfdbab8ff76 /openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
parent985b2108a6437173d4364238c13a98d13d1c7083 (diff)
formatting the code, removing unnecessary imports and URL patterns correction
Change-Id: Id160a255d4acb4b901ca33965080b76d38810be1 Signed-off-by: Seshu-Kumar-M <seshu.kumar.m@huawei.com>
Diffstat (limited to 'openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js')
-rw-r--r--openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js b/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
index 198960ce..aed34c3d 100644
--- a/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
+++ b/openo-portal/portal-extsys/src/main/webapp/extsys/vnfm/js/loadi18n_nsoc.js
@@ -13,26 +13,26 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-function loadPropertiesSideMenu(lang, fileNamePrefix, filePath){
- jQuery.i18n.properties({
- language:lang,
- name:fileNamePrefix,
- path:filePath,
- mode:'map',
- callback: function() {
- var i18nItems = $("[name_i18n=com_zte_nfv_nsoc_i18n]");
- for(var i=0;i<i18nItems.length;i++) {
- var $item = $(i18nItems.eq(i));
- var itemId = $item.attr("id");
- var itemTitle = $item.attr("title");
- if(typeof(itemTitle) != "undefined") {
- $item.attr("title", $.i18n.prop(itemId));
- } else {
- $item.text($.i18n.prop(itemId));
- }
- }
- }
- });
+function loadPropertiesSideMenu(lang, fileNamePrefix, filePath) {
+ jQuery.i18n.properties({
+ language: lang,
+ name: fileNamePrefix,
+ path: filePath,
+ mode: 'map',
+ callback: function () {
+ var i18nItems = $("[name_i18n=com_zte_nfv_nsoc_i18n]");
+ for (var i = 0; i < i18nItems.length; i++) {
+ var $item = $(i18nItems.eq(i));
+ var itemId = $item.attr("id");
+ var itemTitle = $item.attr("title");
+ if (typeof(itemTitle) != "undefined") {
+ $item.attr("title", $.i18n.prop(itemId));
+ } else {
+ $item.text($.i18n.prop(itemId));
+ }
+ }
+ }
+ });
}
var lang = getLanguage();
loadPropertiesSideMenu(lang, 'nfv-nso-iui-i18n', 'i18n/'); \ No newline at end of file