EditSubjectView.js revision a500a8ecaba8363492aa1f4a62d5af939b2a91e6
556348850810d80a9e758b5a747982cfc6a3e731nd * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1fc594205bd58583a2660536729eb684f5cb7932nd * Copyright (c) 2014 ForgeRock AS. All rights reserved.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * The contents of this file are subject to the terms
031b91a62d25106ae69d4693475c79618dd5e884fielding * of the Common Development and Distribution License
031b91a62d25106ae69d4693475c79618dd5e884fielding * (the License). You may not use this file except in
031b91a62d25106ae69d4693475c79618dd5e884fielding * compliance with the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding * You can obtain a copy of the License at
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * See the License for the specific language governing
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * permission and limitations under the License.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * When distributing Covered Code, include this CDDL
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * Header Notice in each file and include the License file
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * If applicable, add the following below the CDDL Header,
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * with the fields enclosed by brackets [] replaced by
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * your own identifying information:
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd * "Portions Copyrighted [year] [name of copyright owner]"
938c687542a2f620cc7e781ddba4f3911dc1320dyoshiki * @author JKigwana
938c687542a2f620cc7e781ddba4f3911dc1320dyoshiki/*global window, define, $, form2js, _, js2form, document, console */
938c687542a2f620cc7e781ddba4f3911dc1320dyoshikidefine("org/forgerock/openam/ui/policy/EditSubjectView", [
2b1ca4f3e09956e86d7f7c5b44f2c6f5351d54dbyoshiki "org/forgerock/commons/ui/common/main/AbstractView",
208651a016b098f4fa1f6279559f104d70f1632dtakashi "org/forgerock/commons/ui/common/main/EventManager",
2b1ca4f3e09956e86d7f7c5b44f2c6f5351d54dbyoshiki "org/forgerock/commons/ui/common/main/Configuration"
938c687542a2f620cc7e781ddba4f3911dc1320dyoshiki], function(AbstractView, uiUtils, eventManager, constants, conf) {
events: {
data: {},
var self = this;
this.$el.append(uiUtils.fillTemplateWithData("templates/policy/EditSubjectTemplate.html", this.data));
this.delegateEvents();
if (itemData) {
var html = uiUtils.fillTemplateWithData("templates/policy/ListItem.html", {data:item.data().itemData});
this.delegateEvents();
changeInput: function(e) {
initSelectize: function() {
var self = this,
$(this).selectize({
persist: false,
changeType: function(e) {
e.stopPropagation();
var self = this,
itemData = {},
schema = {},
selectize = false,
returnVal += '\n'+ uiUtils.fillTemplateWithData("templates/policy/ConditionAttrString.html", {data:itemData[key], title:key, id:count});
returnVal += '\n'+ uiUtils.fillTemplateWithData("templates/policy/ConditionAttrArray.html", {data:itemData[key], title:key, id:count, tempData:self.weekdays});
count++;
return returnVal;
if (itemData) {
setTimeout( function() {
if(selectize){
setTimeout( function() {
}, delay);
return EditSubjectView;