PATH:
home
/
letacommog
/
letaweb
/
scripts
/* Angular Dialog Module */ angular.module("template/dialog/window.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/window.html", "<div modal-render=\"{{$isRendered}}\" tabindex=\"-1\" role=\"dialog\" class=\"modal-nd modal-dialog\"\n" + " uib-modal-animation-class=\"fade\"\n" + " ng-class=\"{in: animate,size: size ? 'modal-' + size : ''\ }\" ng-style=\"{'z-index': 1050 + index*10}\" ng-click=\"close($event)\">\n" + " <div class=\"modal-content\" uib-modal-transclude></div></div>\n" + ""); }]); angular.module("template/dialog/add_new_block.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/add_new_block.html", "<div class=\"modal-body\">"+ "<div class=\"form-group text-center\">\n"+ "<button class=\"btn btn-primary\" ng-click=\"addTop()\">" + window.t("LBL_ADD_TO_TOP")+ "</button>\n"+ "<button class=\"btn btn-info\" ng-click=\"addBottom()\">"+ window.t("LBL_ADD_TO_BOTTOM")+"</button>\n"+ "<button class=\"btn btn-danger\" ng-click=\"$dismiss()\">"+ window.t("LBL_CANCEL")+"</button>\n"+ "</div>\n" + "</div>\n" + ""); }]); angular.module("template/dialog/add_new_zone.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/add_new_zone.html", "<div class=\"modal-body\">"+ "<div class=\"form-group text-center\">\n"+ "<button class=\"btn btn-primary\" ng-click=\"addTop()\">" + window.t("LBL_ADD_TO_HEADER")+ "</button>\n"+ "<button class=\"btn btn-info\" ng-click=\"addBottom()\">"+ window.t("LBL_ADD_TO_BODY")+"</button>\n"+ "<button class=\"btn btn-info\" ng-click=\"addBottom()\">"+ window.t("LBL_ADD_TO_FOOTER")+"</button>\n"+ "<button class=\"btn btn-danger\" ng-click=\"$dismiss()\">"+ window.t("LBL_CANCEL")+"</button>\n"+ "</div>\n" + "</div>\n" + ""); }]); angular.module("template/dialog/add_new_column.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/add_new_column.html", "<div class=\"modal-body\">"+ "<div class=\"form-group text-center\">\n"+ "<button class=\"btn btn-primary\" ng-click=\"addTop()\">"+ window.t("LBL_ADD_TO_LEFT")+"</button>\n"+ "<button class=\"btn btn-info\" ng-click=\"addBottom()\">"+ window.t("LBL_ADD_TO_RIGHT")+"</button>\n"+ "<button class=\"btn btn-danger\" ng-click=\"$dismiss()\">"+ window.t("LBL_CANCEL")+"</button>\n"+ "</div>\n" + "</div>\n" + ""); }]); angular.module("template/dialog/window_nd.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/window_nd.html", "<div modal-render=\"{{$isRendered}}\" tabindex=\"-1\" role=\"dialog\" class=\"modal modal-nd\"\n" + " modal-animation-class=\"fade\"\n" + " ng-class=\"{in: animate}\" ng-style=\"{'z-index': 1050 + index*10, display: 'inline-table'}\" ng-click=\"close($event)\">\n" + " <div class=\"modal-dialog\" ng-class=\"size ? 'modal-' + size : ''\"><div class=\"modal-content\" modal-transclude></div></div>\n" + "</div>\n" + ""); }]); angular.module("template/dialog/confirm.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/confirm.html", "<div class=\"modal-header\" header-draggable>\n" + "<button class=\"close\" ng-click=\"$close()\"><span aria-hidden=\"true\">×</span><span class=\"sr-only\">Close</span></button>"+ "<h4>{{title}}</h4>"+ "</div>"+ " <div class=\"modal-body\" fix-body-height> " + "<div>{{message}}</div>" + "</div>"+ "<div class=\"modal-footer\">"+ "<button class=\"btn btn-primary\" ng-click=\"ok()\">"+window.t('LBL_OK')+"</button>"+ "<button class=\"btn btn-warning\" ng-click=\"$dismiss()\">"+window.t('LBL_CANCEL')+"</button>"+ ""); }]); angular.module("template/dialog/confirm2.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/confirm2.html", "<div class=\"modal-header\" header-draggable>\n" + "<button class=\"close\" ng-click=\"$close()\"><span aria-hidden=\"true\">×</span><span class=\"sr-only\">Close</span></button>"+ "<h4>{{title}}</h4>"+ "</div>"+ " <div class=\"modal-body\" fix-body-height> " + "<div>{{message}}</div>" + "</div>"+ "<div class=\"modal-footer\">"+ "<button class=\"btn btn-primary\" ng-click=\"ok(1)\">"+window.t('LBL_YES')+"</button>"+ "<button class=\"btn btn-warning\" ng-click=\"ok(2)\">"+window.t('LBL_NO')+"</button>"+ "<button class=\"btn btn-danger\" ng-click=\"$dismiss()\">"+window.t('LBL_CANCEL')+"</button>"+ ""); }]); angular.module("template/dialog/message.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("template/dialog/message.html", "<div class=\"modal-header\" header-draggable>\n" + "<button class=\"close\" ng-click=\"$close()\"><span aria-hidden=\"true\">×</span><span class=\"sr-only\">Close</span></button>"+ "<h4>{{title}}</h4>"+ "</div>"+ " <div class=\"modal-body\" fix-body-height> " + "<div ng-bind-html=\"message\"></div>" + "</div>"+ "<div class=\"modal-footer\">"+ "<button class=\"btn btn-primary\" ng-click=\"$dismiss()\">"+window.t('LBL_CLOSE')+"</button>"+ ""); }]); angular.module('ui.dialog', ['ui.bootstrap','template/dialog/add_new_zone.html','template/dialog/window.html','template/dialog/add_new_block.html','template/dialog/add_new_column.html','template/dialog/message.html','template/dialog/confirm2.html','template/dialog/confirm.html']) .provider('$dialog', function () { var $uibModalProvider = { $get: ['$injector', '$rootScope', '$q', '$http', '$templateCache', '$controller', '$uibModal','$sce', function ($injector, $rootScope, $q, $http, $templateCache, $controller, $uibModal,$sce) { $dialog = {}; $dialog._open = function(options) { options = options || {}; options.animation = options.animation ||false; var dialogInstance = $uibModal.open(options); dialogInstance.rendered.then(function() { $(window).trigger('resize.dialog'); }); return dialogInstance; }; $dialog.open = function(options) { options = options || {}; return $dialog._open($.extend({}, options,{ controller : function($scope,$uibModalInstance) { if(angular.isDefined(options.controller)) { $controller(options.controller, {$scope:$scope,$uibModalInstance:$uibModalInstance,$modalInstance:$uibModalInstance}); } } })); }; $dialog.message = function(options) { var options = options || {}; return $dialog.open({ templateUrl: options.templateUrl || 'template/dialog/message.html', controller : function($scope,$uibModalInstance) { try{ $scope.message = $sce.trustAsHtml(options.message); } catch(e) { $scope.message = options.message; } $scope.title = (options.title); if(angular.isDefined(options.controller)) { $controller(options.controller, {$scope:$scope,$uibModalInstance:$uibModalInstance,$modalInstance:$uibModalInstance}); } } }); }; $dialog.confirm = function(options) { var options = options || {}; return $dialog.open({ templateUrl: options.templateUrl || 'template/dialog/confirm.html', controller : function($scope,$uibModalInstance) { $scope.message = options.message; $scope.title = options.title; $scope.ok = function() { $uibModalInstance.close(1); }; if(angular.isDefined(options.controller)) { $controller(options.controller, {$scope:$scope,$uibModalInstance:$uibModalInstance,$modalInstance:$uibModalInstance}); } } }); }; $dialog.addNewBlock = function() { return $dialog.open({ templateUrl: 'template/dialog/add_new_block.html', controller : function($scope,$uibModalInstance) { $scope.addTop = function(result) { $uibModalInstance.close(1); }; $scope.addBottom = function() { $uibModalInstance.close(2); }; } }); }; $dialog.addNewZone = function() { return $dialog.open({ templateUrl: 'template/dialog/add_new_zone.html', controller : function($scope,$uibModalInstance) { $scope.addTop = function(result) { $uibModalInstance.close(1); }; $scope.addBottom = function() { $uibModalInstance.close(2); }; } }); }; $dialog.addNewColumn = function() { return $dialog.open({ templateUrl: 'template/dialog/add_new_column.html', controller : function($scope,$uibModalInstance) { $scope.addTop = function(result) { $uibModalInstance.close(1); }; $scope.addBottom = function() { $uibModalInstance.close(2); }; } }); }; $dialog.confirm2 = function(options) { var options = options || {}; return $dialog.open({ templateUrl: options.templateUrl || 'template/dialog/confirm2.html', controller : function($scope,$uibModalInstance) { $scope.message = options.message; $scope.title = options.title; $scope.ok = function(result) { $uibModalInstance.close(result); }; if(angular.isDefined(options.controller)) { $controller(options.controller, {$scope:$scope,$uibModalInstance:$uibModalInstance,$modalInstance:$uibModalInstance}); } } }); }; return $dialog; }] } return $uibModalProvider; }) .directive('headerDraggable',function($window) { function link(scope, element, attrs) { var modal = $(element).parents('.modal-dialog:first'); modal.draggable( { handle:element }) } return {link:link}; }) .directive('fixBodyHeight',function($window) { function link(scope, element, attrs) { var w = angular.element($window); var fixed = attrs.fixBodyHeight; function resize() { var window_height = $(window).height(); var offset = $(element).offset(); var top = offset.top; if(top < 0) top = 84; top -= $(window).scrollTop(); var titlebar = $(element).prev(); var footer = $(element).next(); var h = window_height - top - footer.outerHeight() - titlebar.outerHeight() - 10; if(fixed = 'absolute') { $(element).css('height', h); } else $(element).css('max-height', h); }; w.bind('resize.dialog', function () { resize(); }); } return {link:link}; }) function randomString() { var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var string_length = 8; var randomstring = ''; for (var i=0; i<string_length; i++) { var rnum = Math.floor(Math.random() * chars.length); randomstring += chars.substring(rnum,rnum+1); } return randomstring; }
[+]
..
[+]
sample_images
[-] ssultils.js
[edit]
[-] dialog.js
[edit]
[-] colorpicker.js
[edit]
[-] script.js
[edit]
[+]
libraries
[-] ui.dbfilter-editing.js
[edit]
[-] stgrid.js
[edit]
[-] ui.category-editing.js
[edit]
[-] forms.js
[edit]
[-] player.swf
[edit]
[-] language.js
[edit]
[-] im.js
[edit]
[-] terms_en.js
[edit]
[-] skinutils.js
[edit]
[-] create_page.js
[edit]
[-] ihover.js
[edit]
[-] builder.js
[edit]
[-] ui.tab-content.js
[edit]
[-] admin.js
[edit]
[-] ui.tab-editing.js
[edit]
[-] login.js
[edit]
[-] popup.js
[edit]
[-] ecommerce.js
[edit]
[-] stEditor.js
[edit]
[-] colorutils.js
[edit]
[-] livedemo.js
[edit]
[-] palette.js
[edit]
[+]
editor