PATH:
home
/
letacommog
/
letaweb
/
scripts
/
editor
/
modules
define(['module/base','module/base_structure'],function(base,base_structure) { return createModuleDefinition([base,base_structure], function($q,pageEdit,pageEdit_layout) { this.initializeData = { }; this.controller = function($scope, $moduleInstance) { }; this.loadElement = function(element) { this._loadElement(element); this.checkEmptyBox(); }; this.checkEmptyBox = function() { var element = this.getElement(); element.children('.box').each(function(i) { pageEdit_layout.scanEmptyRow(this); if(jQuery(this).children().length == 0) { var dumprow = pageEdit_layout.create_row_helper(); jQuery(this).append(dumprow); } }); element.children('.box').children('.' + pageEdit_layout.row_class).each(function(i) { pageEdit_layout.createRow(this); }); }; this.insert = function(dropInfo) { var insert_point = dropInfo.node; var pos = dropInfo.direction; var insertPlacement = this.createInsertPlacement(insert_point, pos, dropInfo); this.element = insertPlacement; var defered = $q.defer(); var e = this.insertBox(); this.loadElement(insertPlacement); defered.resolve(e); return defered.promise; }; this.insertBox = function() { var element = this.getElement(); element = $(element); var data = this.initializeData; var box = jQuery('<div class="box"/>'); element.append(box); var dumprow = pageEdit_layout.create_row_helper(); box.append(dumprow); return element; }; this.getStructure= function() { var s = this._getStructure(); var element = this.getElement(); element = jQuery(element); s.boxes = {}; element.children('.box').each(function(i) { var zones_structure = pageEdit.getInnerZoneStructure(this); s.boxes = zones_structure.rows; }); return s; }; }) });
[+]
..
[-] productlist.js
[edit]
[-] facebookvideo.js
[edit]
[-] newslist.js
[edit]
[-] image.js
[edit]
[-] video.js
[edit]
[-] button.js
[edit]
[-] zone.js
[edit]
[-] text.js
[edit]
[-] newscategory.js
[edit]
[-] googlemap.js
[edit]
[-] base_structure.js
[edit]
[-] contactform.js
[edit]
[-] spacer.js
[edit]
[-] infobox.js
[edit]
[-] html.js
[edit]
[-] testmodule.js
[edit]
[-] facebookcomment.js
[edit]
[-] iframe.js
[edit]
[-] twitterfeed.js
[edit]
[-] recentnews.js
[edit]
[-] audio_player.js
[edit]
[-] slick.js
[edit]
[-] newsdetail.js
[edit]
[-] facebookpost.js
[edit]
[-] pagezone.js
[edit]
[-] panigation.js
[edit]
[-] row.js
[edit]
[-] __custom_module_template.js
[edit]
[-] carousel.js
[edit]
[-] icon.js
[edit]
[-] typedtext.js
[edit]
[-] newscomment.js
[edit]
[-] box.js
[edit]
[-] base_custom.js
[edit]
[-] wordpress.js
[edit]
[-] base.js
[edit]
[-] column.js
[edit]
[-] fancytext.js
[edit]
[-] recentproduct.js
[edit]
[-] statcounter.js
[edit]
[-] tab.js
[edit]
[-] bootstrap_slider.js
[edit]
[-] ihover.js
[edit]
[-] line.js
[edit]
[-] blogger.js
[edit]
[-] slideshow.js
[edit]
[-] title.js
[edit]
[-] facebookpage.js
[edit]
[-] share_buttons.js
[edit]
[-] facebooklike.js
[edit]
[-] infobanner.js
[edit]
[-] rssfeed.js
[edit]
[-] flash.js
[edit]
[-] countdown.js
[edit]
[-] facebooksend.js
[edit]
[-] mailchimp.js
[edit]
[-] infotable.js
[edit]
[-] navbar.js
[edit]
[-] cycleslider.js
[edit]
[-] modal.js
[edit]
[-] embed.js
[edit]
[-] alert.js
[edit]
[-] progress_bar.js
[edit]
[-] accordion.js
[edit]
[-] youtube.js
[edit]
[-] social_buttons.js
[edit]
[-] productcategory.js
[edit]
[-] menu.js
[edit]
[-] pricetable.js
[edit]
[-] productdetail.js
[edit]
[-] gallery.js
[edit]