Example #1
0
 .then((data) => {
     data = JSON.parse(data);
     modal.open(row.dataset.lkyTemplate, {
         data: data.data,
         closeBtn: true
     }, callback);
     cb();
     if (row.dataset.lkyJavascript) {
         js = row.dataset.lkyJavascript;
     }
 });
Example #2
0
 media.selected((mediaObject) => {
     return modal
         .open('cms/cms/image', {
             node: mediaObject.node,
             media: mediaObject.media
         }, MediaModalController)
         .then((result) => {
             if (!result && result !== -1) {
                 return;
             }
             mediaObject.set(result !== -1 ? result : null);
             api.update('/me', {
                 avatar: result !== -1 ? result.id : null
             });
         });
 });
Example #3
0
ModalController.open = (media, node) => {
      return modal.open('cms/cms/image', {
            node: node,
            media: media
      }, ModalController);
};